public class DefaultNWorkspace extends AbstractNWorkspace implements NWorkspaceExt
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultNWorkspace.InstallStrategy0 |
| Modifier and Type | Field and Description |
|---|---|
NLog |
LOG |
static NId |
RUNTIME_ID |
static String |
RUNTIME_VERSION |
static Pattern |
UNIX_USER_DIRS_PATTERN |
static String |
VERSION_COMMAND_ALIAS_CONFIG |
static String |
VERSION_COMMAND_ALIAS_CONFIG_FACTORY |
static NVersion |
VERSION_INSTALL_INFO_CONFIG |
static NVersion |
VERSION_REPOSITORY_CONFIG |
static String |
VERSION_REPOSITORY_REF |
static NVersion |
VERSION_SDK_LOCATION |
static String |
VERSION_USER_CONFIG |
static String |
VERSION_WS_CONFIG_API |
static NVersion |
VERSION_WS_CONFIG_BOOT |
static String |
VERSION_WS_CONFIG_MAIN |
static String |
VERSION_WS_CONFIG_RUNTIME |
static String |
VERSION_WS_CONFIG_SECURITY |
callerBootOptionsInfo| Constructor and Description |
|---|
DefaultNWorkspace(NBootOptionsInfo callerBootOptionsInfo,
NBootOptions info) |
addInstallListener, addRepositoryListener, addUserPropertyListener, addWorkspaceListener, callWith, close, getInstallListeners, getRepositoryListeners, getUserPropertyListeners, getWorkspaceListeners, isSharedInstance, removeInstallListener, removeRepositoryListener, removeUserPropertyListener, removeWorkspaceListener, runBootCommand, runWith, setSharedInstance, shareclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitof, ofcall, get, of, runpublic static final Pattern UNIX_USER_DIRS_PATTERN
public static final NVersion VERSION_INSTALL_INFO_CONFIG
public static final NVersion VERSION_SDK_LOCATION
public static final NVersion VERSION_REPOSITORY_CONFIG
public static final String VERSION_REPOSITORY_REF
public static final String VERSION_WS_CONFIG_API
public static final NVersion VERSION_WS_CONFIG_BOOT
public static final String VERSION_WS_CONFIG_MAIN
public static final String VERSION_WS_CONFIG_RUNTIME
public static final String VERSION_WS_CONFIG_SECURITY
public static final String VERSION_COMMAND_ALIAS_CONFIG
public static final String VERSION_COMMAND_ALIAS_CONFIG_FACTORY
public static final String VERSION_USER_CONFIG
public static final String RUNTIME_VERSION
public static final NId RUNTIME_ID
public NLog LOG
public DefaultNWorkspace(NBootOptionsInfo callerBootOptionsInfo, NBootOptions info)
public NWorkspaceStore store()
store in interface NWorkspaceExtprotected NDescriptor _applyParentDescriptors(NDescriptor descriptor)
protected NDescriptor _resolveEffectiveDescriptor(NDescriptor descriptor, NDescriptorEffectiveConfig effectiveNDescriptorConfig)
public int getSupportLevel(NSupportLevelContext criteria)
getSupportLevel in interface NComponentgetSupportLevel in class AbstractNWorkspacepublic String toString()
toString in class AbstractNWorkspaceprotected NWorkspaceArchetypeComponent initializeWorkspace(String archetype)
public void installOrUpdateImpl(NDefinition def, String[] args, boolean resolveInstaller, boolean updateDefaultVersion, DefaultNWorkspace.InstallStrategy0 strategy0, boolean requireDependencies, NId[] forIds, NDependencyScope scope)
protected boolean loadWorkspace(List<String> excludedExtensions, String[] excludedRepositories)
public NText getWelcomeText()
getWelcomeText in interface NWorkspaceExtpublic NText getHelpText()
getHelpText in interface NWorkspaceExtpublic NText resolveDefaultHelp(Class<?> clazz)
resolveDefaultHelp in interface NWorkspaceExtpublic NText getLicenseText()
getLicenseText in interface NWorkspaceExtpublic NId resolveEffectiveId(NDescriptor descriptor)
resolveEffectiveId in interface NWorkspaceExtpublic NIdType resolveNutsIdType(NId id)
resolveNutsIdType in interface NWorkspaceExtpublic NInstallerComponent getInstaller(NDefinition nutToInstall)
getInstaller in interface NWorkspaceExtpublic void requireImpl(NDefinition def, boolean withDependencies, NId[] forId)
requireImpl in interface NWorkspaceExtpublic void installImpl(NDefinition def, String[] args, boolean updateDefaultVersion)
installImpl in interface NWorkspaceExtpublic void updateImpl(NDefinition def, String[] args, boolean updateDefaultVersion)
updateImpl in interface NWorkspaceExtpublic void uninstallImpl(NDefinition def, String[] args, boolean runInstaller, boolean deleteFiles, boolean eraseFiles, boolean traceBeforeEvent)
uninstallImpl in interface NWorkspaceExtpublic boolean requiresRuntimeExtension()
NutsConstants.ENV_KEY_EXCLUDE_RUNTIME_EXTENSION is forced to
falserequiresRuntimeExtension in interface NWorkspaceExtpublic NDescriptor resolveEffectiveDescriptor(NDescriptor descriptor)
resolveEffectiveDescriptor in interface NWorkspacepublic NDescriptor resolveEffectiveDescriptor(NDescriptor descriptor, NDescriptorEffectiveConfig effectiveNDescriptorConfig)
resolveEffectiveDescriptor in interface NWorkspacepublic NInstalledRepository getInstalledRepository()
getInstalledRepository in interface NWorkspaceExtpublic NInstallStatus getInstallStatus(NId id, boolean checkDependencies)
getInstallStatus in interface NWorkspaceExtpublic NExecutionContextBuilder createExecutionContext()
createExecutionContext in interface NWorkspaceExtpublic void deployBoot(NId id, boolean withDependencies)
deployBoot in interface NWorkspaceExtpublic NSession defaultSession()
defaultSession in interface NWorkspaceExtpublic NWorkspaceModel getModel()
getModel in interface NWorkspaceExtpublic String getUuid()
getUuid in interface NWorkspacepublic String getName()
getName in interface NWorkspacepublic String getDigestName()
getDigestName in interface NWorkspacepublic NVersion getApiVersion()
getApiVersion in interface NWorkspacepublic NVersion getBootVersion()
getBootVersion in interface NWorkspacepublic NId getApiId()
getApiId in interface NWorkspacepublic NId getAppId()
getAppId in interface NWorkspacepublic NId getRuntimeId()
getRuntimeId in interface NWorkspacepublic NPath getLocation()
getLocation in interface NWorkspacepublic NSession createSession()
createSession in interface NWorkspacepublic DefaultNWorkspaceEnvManagerModel getEnvModel()
getEnvModel in interface NWorkspaceExtpublic DefaultCustomCommandsModel getCommandModel()
getCommandModel in interface NWorkspaceExtpublic DefaultNWorkspaceConfigModel getConfigModel()
getConfigModel in interface NWorkspaceExtpublic DefaultImportModel getImportModel()
getImportModel in interface NWorkspaceExtpublic String getInstallationDigest()
getInstallationDigest in interface NWorkspaceExtpublic void setInstallationDigest(String value)
setInstallationDigest in interface NWorkspaceExtpublic NExtensions extensions()
extensions in interface NWorkspacepublic NSession currentSession()
currentSession in interface NWorkspacepublic Stack<NSession> sessionScopes()
sessionScopes in interface NWorkspaceExtpublic DefaultNRepositoryModel getRepositoryModel()
getRepositoryModel in interface NWorkspaceExtpublic List<NRepository> getRepositories()
getRepositories in interface NWorkspacepublic NOptional<NRepository> findRepositoryById(String repositoryNameOrId)
findRepositoryById in interface NWorkspacepublic NOptional<NRepository> findRepositoryByName(String repositoryNameOrId)
findRepositoryByName in interface NWorkspacepublic NOptional<NRepository> findRepository(String repositoryNameOrId)
findRepository in interface NWorkspacepublic NWorkspace removeRepository(String repositoryId)
removeRepository in interface NWorkspacepublic NWorkspace removeAllRepositories()
removeAllRepositories in interface NWorkspacepublic NRepository addRepository(NAddRepositoryOptions options)
addRepository in interface NWorkspacepublic NRepository addRepository(String repositoryNamedUrl)
addRepository in interface NWorkspacepublic DefaultNWorkspaceLocationModel getLocationsModel()
public DefaultNPlatformModel getSdkModel()
public Map<String,Object> getProperties()
getProperties in interface NWorkspacepublic NOptional<NLiteral> getProperty(String property)
getProperty in interface NWorkspacepublic NWorkspace setProperty(String property, Object value)
setProperty in interface NWorkspacepublic NOsFamily getOsFamily()
getOsFamily in interface NEnvContextgetOsFamily in interface NWorkspacepublic String getHostName()
getHostName in interface NWorkspacepublic String getPid()
getPid in interface NWorkspacepublic Set<NShellFamily> getShellFamilies()
getShellFamilies in interface NEnvContextgetShellFamilies in interface NWorkspacepublic NShellFamily getShellFamily()
getShellFamily in interface NEnvContextgetShellFamily in interface NWorkspacepublic NId getDesktopEnvironment()
getDesktopEnvironment in interface NEnvContextgetDesktopEnvironment in interface NWorkspacepublic Set<NId> getDesktopEnvironments()
getDesktopEnvironments in interface NEnvContextgetDesktopEnvironments in interface NWorkspacepublic NDesktopEnvironmentFamily getDesktopEnvironmentFamily()
getDesktopEnvironmentFamily in interface NEnvContextgetDesktopEnvironmentFamily in interface NWorkspacepublic Set<NDesktopEnvironmentFamily> getDesktopEnvironmentFamilies()
getDesktopEnvironmentFamilies in interface NEnvContextgetDesktopEnvironmentFamilies in interface NWorkspacepublic NId getPlatform()
getPlatform in interface NEnvContextgetPlatform in interface NWorkspacepublic NId getOs()
getOs in interface NEnvContextgetOs in interface NWorkspacepublic NId getOsDist()
getOsDist in interface NEnvContextgetOsDist in interface NWorkspacepublic NId getArch()
getArch in interface NEnvContextgetArch in interface NWorkspacepublic NArchFamily getArchFamily()
getArchFamily in interface NEnvContextgetArchFamily in interface NWorkspacepublic boolean isGraphicalDesktopEnvironment()
isGraphicalDesktopEnvironment in interface NEnvContextisGraphicalDesktopEnvironment in interface NWorkspacepublic NSupportMode getDesktopIntegrationSupport(NDesktopIntegrationItem item)
getDesktopIntegrationSupport in interface NEnvContextgetDesktopIntegrationSupport in interface NWorkspacepublic Path getDesktopPath()
getDesktopPath in interface NWorkspacepublic void addLauncher(NLauncherOptions launcher)
addLauncher in interface NWorkspacepublic List<String> buildEffectiveCommand(String[] cmd, NRunAs runAsMode, Set<NDesktopEnvironmentFamily> de, Function<String,String> sysWhich, Boolean gui, String rootName, String userName, String[] executorOptions)
buildEffectiveCommand in interface NWorkspacepublic NPath getHomeLocation(NStoreType folderType)
getHomeLocation in interface NWorkspacepublic DefaultNWorkspaceLocationModel getLocationModel()
getLocationModel in interface NWorkspaceExtpublic NPath getStoreLocation(NStoreType folderType)
getStoreLocation in interface NWorkspacepublic NPath getStoreLocation(NId id, NStoreType folderType)
getStoreLocation in interface NWorkspacepublic NPath getStoreLocation(NStoreType folderType, String repositoryIdOrName)
getStoreLocation in interface NWorkspacepublic NPath getStoreLocation(NId id, NStoreType folderType, String repositoryIdOrName)
getStoreLocation in interface NWorkspacepublic NPath getStoreLocation(NLocationKey nLocationKey)
getStoreLocation in interface NWorkspacepublic NStoreStrategy getStoreStrategy()
getStoreStrategy in interface NWorkspacepublic NStoreStrategy getRepositoryStoreStrategy()
getRepositoryStoreStrategy in interface NWorkspacepublic NOsFamily getStoreLayout()
getStoreLayout in interface NWorkspacepublic Map<NStoreType,String> getStoreLocations()
getStoreLocations in interface NWorkspacepublic String getDefaultIdFilename(NId id)
getDefaultIdFilename in interface NWorkspacepublic NPath getDefaultIdBasedir(NId id)
getDefaultIdBasedir in interface NWorkspacepublic String getDefaultIdContentExtension(String packaging)
getDefaultIdContentExtension in interface NWorkspacepublic String getDefaultIdExtension(NId id)
getDefaultIdExtension in interface NWorkspacepublic Map<NHomeLocation,String> getHomeLocations()
getHomeLocations in interface NWorkspacepublic NPath getHomeLocation(NHomeLocation location)
getHomeLocation in interface NWorkspacepublic NPath getWorkspaceLocation()
getWorkspaceLocation in interface NWorkspacepublic NWorkspace setStoreLocation(NStoreType folderType, String location)
setStoreLocation in interface NWorkspacepublic NWorkspace setStoreStrategy(NStoreStrategy strategy)
setStoreStrategy in interface NWorkspacepublic NWorkspace setStoreLayout(NOsFamily storeLayout)
setStoreLayout in interface NWorkspacepublic NWorkspace setHomeLocation(NHomeLocation homeType, String location)
setHomeLocation in interface NWorkspacepublic boolean addPlatform(NPlatformLocation location)
addPlatform in interface NWorkspacepublic boolean updatePlatform(NPlatformLocation oldLocation, NPlatformLocation newLocation)
updatePlatform in interface NWorkspacepublic boolean removePlatform(NPlatformLocation location)
removePlatform in interface NWorkspacepublic NOptional<NPlatformLocation> findPlatformByName(NPlatformFamily platformType, String locationName)
findPlatformByName in interface NWorkspacepublic NOptional<NPlatformLocation> findPlatformByPath(NPlatformFamily platformType, NPath path)
findPlatformByPath in interface NWorkspacepublic NOptional<NPlatformLocation> findPlatformByVersion(NPlatformFamily platformType, String version)
findPlatformByVersion in interface NWorkspacepublic NOptional<NPlatformLocation> findPlatform(NPlatformLocation location)
findPlatform in interface NWorkspacepublic NOptional<NPlatformLocation> findPlatformByVersion(NPlatformFamily platformType, NVersionFilter requestedVersion)
findPlatformByVersion in interface NWorkspacepublic NStream<NPlatformLocation> searchSystemPlatforms(NPlatformFamily platformFamily)
searchSystemPlatforms in interface NWorkspacepublic NStream<NPlatformLocation> searchSystemPlatforms(NPlatformFamily platformFamily, NPath path)
searchSystemPlatforms in interface NWorkspacepublic NOptional<NPlatformLocation> resolvePlatform(NPlatformFamily platformFamily, NPath path, String preferredName)
resolvePlatform in interface NWorkspacepublic NOptional<NPlatformLocation> findPlatform(NPlatformFamily platformFamily, Predicate<NPlatformLocation> filter)
findPlatform in interface NWorkspacepublic NStream<NPlatformLocation> findPlatforms(NPlatformFamily platformFamily, Predicate<NPlatformLocation> filter)
findPlatforms in interface NWorkspacepublic NStream<NPlatformLocation> findPlatforms()
findPlatforms in interface NWorkspacepublic NWorkspace addDefaultPlatforms(NPlatformFamily type)
addDefaultPlatforms in interface NWorkspacepublic NWorkspace addDefaultPlatform(NPlatformFamily type)
addDefaultPlatform in interface NWorkspacepublic NOptional<String> getSysEnv(String name)
getSysEnv in interface NEnvContextgetSysEnv in interface NWorkspacepublic Map<String,String> getSysEnv()
getSysEnv in interface NEnvContextgetSysEnv in interface NWorkspacepublic NStream<NPlatformLocation> findPlatforms(NPlatformFamily type)
findPlatforms in interface NWorkspacepublic NWorkspace addImports(String... importExpressions)
addImports in interface NWorkspacepublic NWorkspace clearImports()
clearImports in interface NWorkspacepublic NWorkspace removeImports(String... importExpressions)
removeImports in interface NWorkspacepublic NWorkspace updateImports(String[] imports)
updateImports in interface NWorkspacepublic boolean isImportedGroupId(String groupId)
isImportedGroupId in interface NWorkspacepublic Set<String> getAllImports()
getAllImports in interface NWorkspacepublic NWorkspaceStoredConfig getStoredConfig()
getStoredConfig in interface NWorkspacepublic boolean isReadOnly()
isReadOnly in interface NWorkspacepublic boolean saveConfig(boolean force)
saveConfig in interface NWorkspacepublic boolean saveConfig()
saveConfig in interface NWorkspacepublic NWorkspaceBootConfig loadBootConfig(String _ws, boolean global, boolean followLinks)
loadBootConfig in interface NWorkspacepublic boolean isSupportedRepositoryType(String repositoryType)
isSupportedRepositoryType in interface NWorkspacepublic List<NAddRepositoryOptions> getDefaultRepositories()
getDefaultRepositories in interface NWorkspacepublic Set<String> getAvailableArchetypes()
getAvailableArchetypes in interface NWorkspacepublic NPath resolveRepositoryPath(String repositoryLocation)
resolveRepositoryPath in interface NWorkspacepublic NIndexStoreFactory getIndexStoreClientFactory()
getIndexStoreClientFactory in interface NWorkspacepublic String getJavaCommand()
getJavaCommand in interface NWorkspacepublic String getJavaOptions()
getJavaOptions in interface NWorkspacepublic boolean isSystemWorkspace()
isSystemWorkspace in interface NWorkspacepublic List<String> getDependencySolverNames()
getDependencySolverNames in interface NWorkspaceExtpublic NDependencySolver createDependencySolver(String name)
createDependencySolver in interface NWorkspaceExtpublic Map<String,String> getConfigMap()
getConfigMap in interface NWorkspacepublic NOptional<NLiteral> getConfigProperty(String property)
getConfigProperty in interface NWorkspacepublic NWorkspace setConfigProperty(String property, String value)
setConfigProperty in interface NWorkspacepublic List<NCommandFactoryConfig> getCommandFactories()
getCommandFactories in interface NWorkspacepublic void addCommandFactory(NCommandFactoryConfig commandFactoryConfig)
addCommandFactory in interface NWorkspacepublic void removeCommandFactory(String commandFactoryId)
removeCommandFactory in interface NWorkspacepublic boolean removeCommandFactoryIfExists(String commandFactoryId)
removeCommandFactoryIfExists in interface NWorkspacepublic boolean commandExists(String command)
commandExists in interface NWorkspacepublic boolean commandFactoryExists(String factoryId)
commandFactoryExists in interface NWorkspacepublic boolean addCommand(NCommandConfig command)
addCommand in interface NWorkspacepublic boolean updateCommand(NCommandConfig command)
updateCommand in interface NWorkspacepublic void removeCommand(String command)
removeCommand in interface NWorkspacepublic boolean removeCommandIfExists(String name)
removeCommandIfExists in interface NWorkspacepublic NCustomCmd findCommand(String name, NId forId, NId forOwner)
findCommand in interface NWorkspacepublic NCustomCmd findCommand(String name)
findCommand in interface NWorkspacepublic List<NCustomCmd> findAllCommands()
findAllCommands in interface NWorkspacepublic List<NCustomCmd> findCommandsByOwner(NId id)
findCommandsByOwner in interface NWorkspacepublic DefaultNBootModel getBootModel()
public boolean isFirstBoot()
isFirstBoot in interface NWorkspacepublic NOptional<NLiteral> getCustomBootOption(String... names)
getCustomBootOption in interface NWorkspacepublic NBootOptions getBootOptions()
getBootOptions in interface NWorkspacepublic ClassLoader getBootClassLoader()
getBootClassLoader in interface NWorkspacepublic List<URL> getBootClassWorldURLs()
getBootClassWorldURLs in interface NWorkspacepublic String getBootRepositories()
getBootRepositories in interface NWorkspacepublic Instant getCreationStartTime()
getCreationStartTime in interface NWorkspacepublic Instant getCreationFinishTime()
getCreationFinishTime in interface NWorkspacepublic Duration getCreationDuration()
getCreationDuration in interface NWorkspacepublic NClassLoaderNode getBootRuntimeClassLoaderNode()
getBootRuntimeClassLoaderNode in interface NWorkspacepublic List<NClassLoaderNode> getBootExtensionClassLoaderNode()
getBootExtensionClassLoaderNode in interface NWorkspacepublic NWorkspaceTerminalOptions getBootTerminal()
getBootTerminal in interface NWorkspaceCopyright © 2025 vpc open source initiative. All rights reserved.