public abstract class AbstractNutsSearchCommand extends DefaultNutsQueryBaseOptions<NutsSearchCommand> implements NutsSearchCommand
| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
arch |
protected Comparator |
comparator |
protected Boolean |
defaultVersions |
protected NutsDescriptorFilter |
descriptorFilter |
protected boolean |
distinct |
protected String |
execType |
protected NutsIdFilter |
idFilter |
protected List<NutsId> |
ids |
protected boolean |
includeBasePackage |
protected NutsInstallStatusFilter |
installStatus |
protected boolean |
latest |
protected List<NutsId> |
lockedIds |
protected List<String> |
packaging |
protected boolean |
printResult |
protected List<String> |
scripts |
protected boolean |
sorted |
protected NutsVersion |
targetApiVersion |
dependencyFiltersession, ws| Constructor and Description |
|---|
AbstractNutsSearchCommand(NutsWorkspace ws) |
addRepositoryFilter, addScope, addScope, addScopes, addScopes, clearScopes, copyFromDefaultNutsQueryBaseOptions, getDependencyFilter, getDisplayOptions, getLocation, getOptional, getRepositoryFilter, getScope, isContent, isDependencies, isEffective, isFailFast, isInlineDependencies, removeScope, removeScope, removeScopes, removeScopes, setContent, setDefaultLocation, setDependencies, setDependencyFilter, setDependencyFilter, setEffective, setFailFast, setInlineDependencies, setLocation, setOptional, setRepository, setRepositoryFilter, setScope, setScope, setScope_LOG, _LOGOP, checkSession, configure, configure, copyFromWorkspaceCommandBase, copySession, getCommandName, getSession, getWorkspace, invalidateResult, setSession, setWsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddRepositoryFilter, addScope, addScope, addScopes, addScopes, clearScopes, configure, copy, copySession, getDependencyFilter, getLocation, getOptional, getRepositoryFilter, getScope, isContent, isDependencies, isEffective, isFailFast, isInlineDependencies, removeScope, removeScope, setContent, setDefaultLocation, setDependencies, setDependencyFilter, setDependencyFilter, setEffective, setFailFast, setInlineDependencies, setLocation, setOptional, setRepository, setRepositoryFilter, setSession, toFetchgetSessionconfigure, configureLastprotected Comparator comparator
protected NutsDescriptorFilter descriptorFilter
protected NutsIdFilter idFilter
protected boolean latest
protected boolean distinct
protected boolean includeBasePackage
protected boolean sorted
protected Boolean defaultVersions
protected String execType
protected NutsVersion targetApiVersion
protected boolean printResult
protected NutsInstallStatusFilter installStatus
public AbstractNutsSearchCommand(NutsWorkspace ws)
public NutsSearchCommand clearIds()
clearIds in interface NutsSearchCommandpublic NutsSearchCommand addId(String id)
addId in interface NutsSearchCommandpublic NutsSearchCommand addId(NutsId id)
addId in interface NutsSearchCommandpublic NutsSearchCommand addIds(String... values)
addIds in interface NutsSearchCommandpublic NutsSearchCommand addIds(NutsId... value)
addIds in interface NutsSearchCommandpublic NutsSearchCommand removeId(String id)
removeId in interface NutsSearchCommandpublic NutsSearchCommand removeId(NutsId id)
removeId in interface NutsSearchCommandpublic boolean isRuntime()
isRuntime in interface NutsSearchCommandpublic NutsSearchCommand setRuntime(boolean enable)
setRuntime in interface NutsSearchCommandpublic boolean isCompanion()
isCompanion in interface NutsSearchCommandpublic NutsSearchCommand setCompanion(boolean enable)
setCompanion in interface NutsSearchCommandpublic boolean isExtension()
isExtension in interface NutsSearchCommandpublic NutsSearchCommand setExtension(boolean enable)
setExtension in interface NutsSearchCommandpublic boolean isExec()
isExec in interface NutsSearchCommandpublic NutsSearchCommand setExec(boolean enable)
setExec in interface NutsSearchCommandpublic boolean isApplication()
isApplication in interface NutsSearchCommandpublic NutsSearchCommand setApplication(boolean enable)
setApplication in interface NutsSearchCommandpublic boolean isLib()
isLib in interface NutsSearchCommandpublic NutsSearchCommand setLib(boolean enable)
setLib in interface NutsSearchCommandpublic NutsSearchCommand addScript(String value)
addScript in interface NutsSearchCommandpublic NutsSearchCommand removeScript(String value)
removeScript in interface NutsSearchCommandpublic NutsSearchCommand addScripts(Collection<String> value)
addScripts in interface NutsSearchCommandpublic NutsSearchCommand addScripts(String... value)
addScripts in interface NutsSearchCommandpublic NutsSearchCommand clearScripts()
clearScripts in interface NutsSearchCommandpublic String[] getScripts()
getScripts in interface NutsSearchCommandpublic NutsSearchCommand clearArchs()
clearArchs in interface NutsSearchCommandpublic NutsSearchCommand addLockedIds(String... values)
addLockedIds in interface NutsSearchCommandpublic NutsSearchCommand addLockedIds(NutsId... values)
addLockedIds in interface NutsSearchCommandpublic NutsSearchCommand clearLockedIds()
clearLockedIds in interface NutsSearchCommandpublic NutsSearchCommand addArch(String value)
addArch in interface NutsSearchCommandpublic NutsSearchCommand removeArch(String value)
removeArch in interface NutsSearchCommandpublic NutsSearchCommand addArchs(Collection<String> values)
addArchs in interface NutsSearchCommandpublic NutsSearchCommand addArchs(String... values)
addArchs in interface NutsSearchCommandpublic NutsSearchCommand clearPackagings()
clearPackagings in interface NutsSearchCommandpublic NutsSearchCommand addPackagings(Collection<String> values)
addPackagings in interface NutsSearchCommandpublic NutsSearchCommand addPackagings(String... values)
addPackagings in interface NutsSearchCommandpublic NutsSearchCommand addPackaging(String value)
addPackaging in interface NutsSearchCommandpublic NutsSearchCommand removePackaging(String value)
removePackaging in interface NutsSearchCommandpublic NutsSearchCommand addLockedId(NutsId id)
addLockedId in interface NutsSearchCommandpublic NutsSearchCommand removeLockedId(NutsId id)
removeLockedId in interface NutsSearchCommandpublic NutsSearchCommand removeLockedId(String id)
removeLockedId in interface NutsSearchCommandpublic NutsSearchCommand addLockedId(String id)
addLockedId in interface NutsSearchCommandpublic NutsId[] getLockedIds()
getLockedIds in interface NutsSearchCommandpublic NutsSearchCommand sort(Comparator comparator)
sort in interface NutsSearchCommandpublic NutsSearchCommand copyFrom(NutsSearchCommand other)
copyFrom in interface NutsSearchCommandpublic NutsSearchCommand copyFrom(NutsFetchCommand other)
copyFrom in interface NutsSearchCommandpublic NutsId[] getIds()
getIds in interface NutsSearchCommandpublic boolean isSorted()
isSorted in interface NutsSearchCommandpublic NutsSearchCommand setSorted(boolean sort)
setSorted in interface NutsSearchCommandpublic NutsDescriptorFilter getDescriptorFilter()
getDescriptorFilter in interface NutsSearchCommandpublic NutsSearchCommand setDescriptorFilter(NutsDescriptorFilter filter)
setDescriptorFilter in interface NutsSearchCommandpublic NutsSearchCommand setDescriptorFilter(String filter)
setDescriptorFilter in interface NutsSearchCommandpublic NutsIdFilter getIdFilter()
getIdFilter in interface NutsSearchCommandpublic NutsSearchCommand setIdFilter(NutsIdFilter filter)
setIdFilter in interface NutsSearchCommandpublic NutsSearchCommand setIdFilter(String filter)
setIdFilter in interface NutsSearchCommandpublic String[] getArch()
getArch in interface NutsSearchCommandpublic String[] getPackaging()
getPackaging in interface NutsSearchCommandpublic Comparator getComparator()
getComparator in interface NutsSearchCommandpublic boolean isDistinct()
isDistinct in interface NutsSearchCommandpublic NutsSearchCommand setDistinct(boolean distinct)
setDistinct in interface NutsSearchCommandpublic NutsVersion getTargetApiVersion()
getTargetApiVersion in interface NutsSearchCommandpublic NutsSearchCommand setTargetApiVersion(NutsVersion targetApiVersion)
setTargetApiVersion in interface NutsSearchCommandpublic boolean isBasePackage()
isBasePackage in interface NutsSearchCommandpublic NutsSearchCommand setBasePackage(boolean includeBasePackage)
setBasePackage in interface NutsSearchCommandpublic boolean isLatest()
isLatest in interface NutsSearchCommandpublic NutsSearchCommand setLatest(boolean enable)
setLatest in interface NutsSearchCommandpublic NutsResultList<NutsId> getResultIds()
getResultIds in interface NutsSearchCommandpublic NutsResultList<NutsDependencies> getResultDependencies()
getResultDependencies in interface NutsSearchCommandpublic NutsResultList<NutsDependency> getResultInlineDependencies()
getResultInlineDependencies in interface NutsSearchCommandpublic NutsResultList<NutsDefinition> getResultDefinitions()
getResultDefinitions in interface NutsSearchCommandpublic ClassLoader getResultClassLoader()
getResultClassLoader in interface NutsSearchCommandpublic ClassLoader getResultClassLoader(ClassLoader parent)
getResultClassLoader in interface NutsSearchCommandpublic String getResultNutsPath()
getResultNutsPath in interface NutsSearchCommandpublic String getResultClassPath()
getResultClassPath in interface NutsSearchCommandpublic Boolean getDefaultVersions()
getDefaultVersions in interface NutsSearchCommandpublic NutsSearchCommand setDefaultVersions(Boolean acceptDefaultVersion)
setDefaultVersions in interface NutsSearchCommandacceptDefaultVersion - acceptDefaultVersionthis instancepublic NutsResultList<String> getResultPaths()
getResultPaths in interface NutsSearchCommandpublic NutsResultList<String> getResultPathNames()
getResultPathNames in interface NutsSearchCommandpublic NutsResultList<Instant> getResultInstallDates()
getResultInstallDates in interface NutsSearchCommandpublic NutsResultList<String> getResultInstallUsers()
getResultInstallUsers in interface NutsSearchCommandpublic NutsResultList<String> getResultInstallFolders()
getResultInstallFolders in interface NutsSearchCommandpublic NutsResultList<String> getResultStoreLocations(NutsStoreLocation location)
getResultStoreLocations in interface NutsSearchCommandpublic NutsResultList<String[]> getResultStrings(String[] columns)
getResultStrings in interface NutsSearchCommandpublic NutsResultList<String> getResultNames()
getResultNames in interface NutsSearchCommandpublic NutsResultList<String> getResultOses()
getResultOses in interface NutsSearchCommandpublic NutsResultList<NutsExecutionEntry> getResultExecutionEntries()
getResultExecutionEntries in interface NutsSearchCommandpublic NutsResultList<String> getResultOsdists()
getResultOsdists in interface NutsSearchCommandpublic NutsResultList<String> getResultPackagings()
getResultPackagings in interface NutsSearchCommandpublic NutsResultList<String> getResultPlatforms()
getResultPlatforms in interface NutsSearchCommandpublic NutsResultList<String> getResultArchs()
getResultArchs in interface NutsSearchCommandpublic boolean isPrintResult()
isPrintResult in interface NutsSearchCommandpublic NutsSearchCommand setPrintResult(boolean printResult)
setPrintResult in interface NutsSearchCommandpublic NutsInstallStatusFilter getInstallStatus()
getInstallStatus in interface NutsSearchCommandpublic NutsSearchCommand setInstallStatus(NutsInstallStatusFilter installStatus)
setInstallStatus in interface NutsSearchCommandpublic String getExecType()
public boolean configureFirst(NutsCommandLine cmdLine)
configureFirst in interface NutsCommandLineConfigurableconfigureFirst in class DefaultNutsQueryBaseOptions<NutsSearchCommand>public String toString()
toString in class DefaultNutsQueryBaseOptions<NutsSearchCommand>public NutsSearchCommand run()
run in interface NutsSearchCommandrun in interface NutsWorkspaceCommandpublic Iterator<NutsDefinition> getResultDefinitionIteratorBase(boolean content, boolean effective)
protected <T> NutsCollectionResult<T> buildCollectionResult(Iterator<T> o)
protected String resolveFindIdBase()
public NutsResultList<String> getResultStatuses()
protected abstract Iterator<NutsId> getResultIdIteratorBase(Boolean forceInlineDependencies)
protected NutsCollectionResult<NutsId> getResultIdsBase(boolean sort)
protected <T> NutsResultList<T> postProcessResult(IteratorBuilder<T> a)
protected NutsSession getSearchSession()
protected Iterator<NutsId> applyPrintDecoratorIterOfNutsId(Iterator<NutsId> curr, boolean print)
public NutsSearchCommand setId(String id)
setId in interface NutsSearchCommandpublic NutsSearchCommand setId(NutsId id)
setId in interface NutsSearchCommandpublic NutsSearchCommand setIds(String... ids)
setIds in interface NutsSearchCommandpublic NutsSearchCommand setIds(NutsId... ids)
setIds in interface NutsSearchCommandCopyright © 2021 vpc open source initiative. All rights reserved.