public abstract class AbstractNutsUpdateCommand extends NutsWorkspaceCommandBase<NutsUpdateCommand> implements NutsUpdateCommand
| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
args |
protected boolean |
enableInstall |
protected Instant |
expireTime |
protected NutsVersion |
forceBootAPIVersion |
protected List<NutsId> |
ids |
protected boolean |
includeOptional |
protected List<NutsId> |
lockedIds |
protected NutsWorkspaceUpdateResult |
result |
protected List<NutsDependencyScope> |
scopes |
protected boolean |
updateApi |
protected boolean |
updateCompanions |
protected boolean |
updateExtensions |
protected boolean |
updateInstalled |
protected boolean |
updateRuntime |
session, ws| Constructor and Description |
|---|
AbstractNutsUpdateCommand(NutsWorkspace ws) |
_LOG, _LOGOP, checkSession, configure, configure, copyFromWorkspaceCommandBase, copySession, getCommandName, getSession, getWorkspace, invalidateResult, setSession, setWsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckUpdates, configure, copySession, setSession, updategetSessionconfigure, configureLastprotected boolean enableInstall
protected boolean updateApi
protected boolean updateRuntime
protected boolean updateExtensions
protected boolean updateInstalled
protected boolean updateCompanions
protected boolean includeOptional
protected NutsVersion forceBootAPIVersion
protected Instant expireTime
protected final List<NutsDependencyScope> scopes
protected NutsWorkspaceUpdateResult result
public AbstractNutsUpdateCommand(NutsWorkspace ws)
public NutsId[] getIds()
getIds in interface NutsUpdateCommandpublic NutsUpdateCommand addId(String id)
addId in interface NutsUpdateCommandpublic NutsUpdateCommand addId(NutsId id)
addId in interface NutsUpdateCommandpublic NutsUpdateCommand addIds(String... ids)
addIds in interface NutsUpdateCommandpublic NutsUpdateCommand addIds(NutsId... ids)
addIds in interface NutsUpdateCommandpublic NutsUpdateCommand removeId(NutsId id)
removeId in interface NutsUpdateCommandpublic NutsUpdateCommand removeId(String id)
removeId in interface NutsUpdateCommandpublic NutsUpdateCommand addScope(NutsDependencyScope scope)
addScope in interface NutsUpdateCommandpublic NutsUpdateCommand addScopes(NutsDependencyScope... scopes)
addScopes in interface NutsUpdateCommandpublic NutsUpdateCommand addScopes(Collection<NutsDependencyScope> scopes)
addScopes in interface NutsUpdateCommandpublic boolean isOptional()
isOptional in interface NutsUpdateCommandpublic NutsUpdateCommand setOptional(boolean includeOptional)
setOptional in interface NutsUpdateCommandpublic String[] getArgs()
getArgs in interface NutsUpdateCommandpublic NutsUpdateCommand addArg(String arg)
addArg in interface NutsUpdateCommandpublic NutsUpdateCommand clearArgs()
clearArgs in interface NutsUpdateCommandpublic NutsUpdateCommand addArgs(String... args)
addArgs in interface NutsUpdateCommandpublic NutsUpdateCommand addArgs(Collection<String> args)
addArgs in interface NutsUpdateCommandpublic NutsId[] getLockedIds()
getLockedIds in interface NutsUpdateCommandpublic boolean isEnableInstall()
isEnableInstall in interface NutsUpdateCommandpublic NutsUpdateCommand setEnableInstall(boolean enableInstall)
setEnableInstall in interface NutsUpdateCommandpublic boolean isApi()
isApi in interface NutsUpdateCommandpublic boolean isInstalled()
isInstalled in interface NutsUpdateCommandpublic boolean isCompanions()
isCompanions in interface NutsUpdateCommandpublic boolean isRuntime()
isRuntime in interface NutsUpdateCommandpublic NutsUpdateCommand setApi(boolean enableMajorUpdates)
setApi in interface NutsUpdateCommandpublic NutsUpdateCommand setCompanions(boolean updateCompanions)
setCompanions in interface NutsUpdateCommandpublic boolean isExtensions()
isExtensions in interface NutsUpdateCommandpublic NutsUpdateCommand setExtensions(boolean updateExtensions)
setExtensions in interface NutsUpdateCommandpublic NutsVersion getApiVersion()
getApiVersion in interface NutsUpdateCommandpublic NutsUpdateCommand setApiVersion(NutsVersion value)
setApiVersion in interface NutsUpdateCommandpublic int getResultCount()
getResultCount in interface NutsUpdateCommandpublic NutsWorkspaceUpdateResult getResult()
getResult in interface NutsUpdateCommandpublic NutsUpdateCommand run()
run in interface NutsUpdateCommandrun in interface NutsWorkspaceCommandpublic NutsUpdateCommand checkUpdates(boolean applyUpdates)
checkUpdates in interface NutsUpdateCommandpublic NutsUpdateCommand setRuntime(boolean updateRuntime)
setRuntime in interface NutsUpdateCommandpublic NutsUpdateCommand setInstalled(boolean enable)
setInstalled in interface NutsUpdateCommandpublic NutsUpdateCommand setAll()
setAll in interface NutsUpdateCommandpublic NutsUpdateCommand clearIds()
clearIds in interface NutsUpdateCommandpublic NutsUpdateCommand addLockedId(NutsId id)
addLockedId in interface NutsUpdateCommandpublic NutsUpdateCommand addLockedId(String id)
addLockedId in interface NutsUpdateCommandpublic NutsUpdateCommand addLockedIds(NutsId... ids)
addLockedIds in interface NutsUpdateCommandpublic NutsUpdateCommand addLockedIds(String... ids)
addLockedIds in interface NutsUpdateCommandpublic NutsUpdateCommand clearLockedIds()
clearLockedIds in interface NutsUpdateCommandpublic NutsUpdateCommand clearScopes()
clearScopes in interface NutsUpdateCommandpublic boolean configureFirst(NutsCommandLine cmdLine)
configureFirst in interface NutsCommandLineConfigurableconfigureFirst in class NutsWorkspaceCommandBase<NutsUpdateCommand>Copyright © 2021 vpc open source initiative. All rights reserved.