public abstract class AbstractNUpdateCmd extends NWorkspaceCmdBase<NUpdateCmd> implements NUpdateCmd
| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
args |
protected boolean |
enableInstall |
protected Instant |
expireTime |
protected NVersion |
forceBootAPIVersion |
protected List<NId> |
ids |
protected boolean |
includeOptional |
protected List<NId> |
lockedIds |
protected NRepositoryFilter |
repositoryFilter |
protected NWorkspaceUpdateResult |
result |
protected List<NDependencyScope> |
scopes |
protected boolean |
updateApi |
protected boolean |
updateCompanions |
protected boolean |
updateExtensions |
protected boolean |
updateInstalled |
protected boolean |
updateRuntime |
CUSTOM_SCORE, DEFAULT_SCORE, UNSUPPORTED_SCORE| Constructor and Description |
|---|
AbstractNUpdateCmd(NWorkspace workspace) |
_LOG, configure, copyFromWorkspaceCommandBase, getCommandName, invalidateResultclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckUpdates, configure, of, updateconfigure, configure, configureLastisValidScore, query, queryprotected boolean enableInstall
protected boolean updateApi
protected boolean updateRuntime
protected boolean updateExtensions
protected boolean updateInstalled
protected boolean updateCompanions
protected boolean includeOptional
protected NVersion forceBootAPIVersion
protected Instant expireTime
protected final List<NDependencyScope> scopes
protected NWorkspaceUpdateResult result
protected NRepositoryFilter repositoryFilter
public AbstractNUpdateCmd(NWorkspace workspace)
public int getScore(NScorableContext context)
getScore in interface NComponentgetScore in interface NScorablegetScore in class NWorkspaceCmdBase<NUpdateCmd>public List<NId> getIds()
getIds in interface NUpdateCmdpublic NUpdateCmd addId(String id)
addId in interface NUpdateCmdpublic NUpdateCmd addId(NId id)
addId in interface NUpdateCmdpublic NUpdateCmd addIds(String... ids)
addIds in interface NUpdateCmdpublic NUpdateCmd addIds(NId... ids)
addIds in interface NUpdateCmdpublic NUpdateCmd removeId(NId id)
removeId in interface NUpdateCmdpublic NUpdateCmd removeId(String id)
removeId in interface NUpdateCmdpublic NUpdateCmd addScope(NDependencyScope scope)
addScope in interface NUpdateCmdpublic NUpdateCmd addScopes(NDependencyScope... scopes)
addScopes in interface NUpdateCmdpublic NUpdateCmd addScopes(Collection<NDependencyScope> scopes)
addScopes in interface NUpdateCmdpublic boolean isOptional()
isOptional in interface NUpdateCmdpublic NUpdateCmd setOptional(boolean includeOptional)
setOptional in interface NUpdateCmdpublic List<String> getArgs()
getArgs in interface NUpdateCmdpublic NUpdateCmd addArg(String arg)
addArg in interface NUpdateCmdpublic NUpdateCmd clearArgs()
clearArgs in interface NUpdateCmdpublic NUpdateCmd addArgs(String... args)
addArgs in interface NUpdateCmdpublic NUpdateCmd addArgs(Collection<String> args)
addArgs in interface NUpdateCmdpublic List<NId> getLockedIds()
getLockedIds in interface NUpdateCmdpublic boolean isEnableInstall()
isEnableInstall in interface NUpdateCmdpublic NUpdateCmd setEnableInstall(boolean enableInstall)
setEnableInstall in interface NUpdateCmdpublic boolean isApi()
isApi in interface NUpdateCmdpublic boolean isInstalled()
isInstalled in interface NUpdateCmdpublic boolean isCompanions()
isCompanions in interface NUpdateCmdpublic boolean isRuntime()
isRuntime in interface NUpdateCmdpublic NUpdateCmd setApi(boolean enableMajorUpdates)
setApi in interface NUpdateCmdpublic NUpdateCmd setCompanions(boolean updateCompanions)
setCompanions in interface NUpdateCmdpublic boolean isExtensions()
isExtensions in interface NUpdateCmdpublic NUpdateCmd setExtensions(boolean updateExtensions)
setExtensions in interface NUpdateCmdpublic NVersion getApiVersion()
getApiVersion in interface NUpdateCmdpublic NUpdateCmd setApiVersion(NVersion value)
setApiVersion in interface NUpdateCmdpublic int getResultCount()
getResultCount in interface NUpdateCmdpublic NWorkspaceUpdateResult getResult()
getResult in interface NUpdateCmdpublic NUpdateCmd run()
run in interface NUpdateCmdrun in interface NWorkspaceCmdpublic NUpdateCmd checkUpdates(boolean applyUpdates)
checkUpdates in interface NUpdateCmdpublic NUpdateCmd setRuntime(boolean updateRuntime)
setRuntime in interface NUpdateCmdpublic NUpdateCmd setInstalled(boolean enable)
setInstalled in interface NUpdateCmdpublic NUpdateCmd setAll()
setAll in interface NUpdateCmdpublic NUpdateCmd clearIds()
clearIds in interface NUpdateCmdpublic NUpdateCmd addLockedId(NId id)
addLockedId in interface NUpdateCmdpublic NUpdateCmd addLockedId(String id)
addLockedId in interface NUpdateCmdpublic NUpdateCmd addLockedIds(NId... ids)
addLockedIds in interface NUpdateCmdpublic NUpdateCmd addLockedIds(String... ids)
addLockedIds in interface NUpdateCmdpublic NUpdateCmd clearLockedIds()
clearLockedIds in interface NUpdateCmdpublic NUpdateCmd clearScopes()
clearScopes in interface NUpdateCmdpublic boolean configureFirst(NCmdLine cmdLine)
configureFirst in interface NCmdLineConfigurableconfigureFirst in class NWorkspaceCmdBase<NUpdateCmd>public NRepositoryFilter getRepositoryFilter()
getRepositoryFilter in interface NUpdateCmdpublic NUpdateCmd setRepositoryFilter(NRepositoryFilter repositoryFilter)
setRepositoryFilter in interface NUpdateCmdCopyright © 2025 vpc open source initiative. All rights reserved.