public class DefaultNWorkspace extends AbstractNWorkspace implements NWorkspaceExt
| Modifier and Type | Field and Description |
|---|---|
protected NBootOptionsInfo |
callerBootOptionsInfo |
NApp |
currentApp
using currentApp so that we can change NApp when calling embedded apps
|
Map<String,String> |
env |
static NId |
RUNTIME_ID |
static String |
RUNTIME_VERSION |
static String |
RUNTIME_VERSION_STRING |
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 |
static String |
WEAK_ADMIN_PASSWORD |
| Constructor and Description |
|---|
DefaultNWorkspace(NBootOptionsInfo callerBootOptionsInfo,
NBootOptions info) |
addInstallListener, addPropertyListener, addRepositoryListener, addWorkspaceListener, callWith, close, installListeners, isSharedInstance, propertyListeners, removeInstallListener, removePropertyListener, removeRepositoryListener, removeWorkspaceListener, repositoryListeners, runWith, setSharedInstance, share, workspaceListenersclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitof, ofcall, get, of, runpublic 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 String RUNTIME_VERSION_STRING
public static final NId RUNTIME_ID
public static final String WEAK_ADMIN_PASSWORD
protected NBootOptionsInfo callerBootOptionsInfo
public NApp currentApp
public DefaultNWorkspace(NBootOptionsInfo callerBootOptionsInfo, NBootOptions info)
public Map<String,String> getSysEnv()
getSysEnv in interface NWorkspaceExtpublic NApp getApp()
getApp in interface NWorkspaceExtpublic NBootOptionsInfo getCallerBootOptionsInfo()
getCallerBootOptionsInfo in interface NWorkspaceExtpublic NWorkspaceStore store()
store in interface NWorkspaceExtpublic void loadRuntimeRepositories(NRepositorySelectorList expected)
protected NDescriptor _applyParentDescriptors(NDescriptor descriptor)
protected NDescriptor _resolveEffectiveDescriptor(NDescriptor descriptor, NDescriptorEffectiveConfig effectiveNDescriptorConfig)
public String toString()
toString in class AbstractNWorkspaceprotected NWorkspaceArchetypeComponent initializeWorkspace(String archetype)
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 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 uuid()
uuid in interface NWorkspacepublic String name()
name in interface NWorkspacepublic String digestName()
digestName in interface NWorkspacepublic NVersion apiVersion()
apiVersion in interface NWorkspacepublic NVersion bootVersion()
bootVersion in interface NWorkspacepublic NId apiId()
apiId in interface NWorkspacepublic NId appId()
appId in interface NWorkspacepublic NId runtimeId()
runtimeId in interface NWorkspacepublic NPath location()
location in interface NWorkspacepublic NSession createSession()
createSession in interface NWorkspacepublic 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 NScopedValue<NSession> sessionScopes()
sessionScopes in interface NWorkspaceExtpublic DefaultNRepositoryModel getRepositoryModel()
getRepositoryModel in interface NWorkspaceExtpublic List<NRepository> repositories()
repositories in interface NWorkspacepublic NOptional<NRepository> findRepositoryById(String repositoryNameOrId)
findRepositoryById in interface NWorkspacepublic NOptional<NRepository> findRepositoryByName(String repositoryNameOrId)
findRepositoryByName in interface NWorkspacepublic NOptional<NRepository> getRepository(String repositoryNameOrId)
getRepository in interface NWorkspacepublic NWorkspace removeRepository(String repositoryId)
removeRepository in interface NWorkspacepublic NWorkspace removeAllRepositories()
removeAllRepositories in interface NWorkspacepublic NRepository addRepository(NRepositorySpec options)
addRepository in interface NWorkspacepublic NRepository addRepository(String repositoryNamedUrl)
addRepository in interface NWorkspacepublic DefaultNWorkspaceLocationModel getLocationsModel()
public Map<String,Object> properties()
properties in interface NWorkspacepublic NOptional<Object> getProperty(String property)
getProperty in interface NWorkspacepublic <T> NOptional<T> getProperty(Class<T> propertyTypeAndName)
getProperty in interface NWorkspacepublic <T> T getOrComputeProperty(Class<T> property, Supplier<T> supplier)
getOrComputeProperty in interface NWorkspacepublic <T> T getOrComputeProperty(String property, Supplier<T> supplier)
getOrComputeProperty in interface NWorkspacepublic NWorkspace setProperty(String property, Object value)
setProperty in interface NWorkspacepublic String pid()
pid 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 NStoreStrategy storeStrategy()
storeStrategy in interface NWorkspacepublic NStoreStrategy repositoryStoreStrategy()
repositoryStoreStrategy in interface NWorkspacepublic NOsFamily storeLayout()
storeLayout in interface NWorkspacepublic Map<NStoreType,String> storeLocations()
storeLocations 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> homeLocations()
homeLocations in interface NWorkspacepublic NPath getHomeLocation(NHomeLocation location)
getHomeLocation in interface NWorkspacepublic NPath workspaceLocation()
workspaceLocation in interface NWorkspacepublic NWorkspace setStoreLocation(NStoreType folderType, String location)
setStoreLocation in interface NWorkspacepublic NWorkspace storeStrategy(NStoreStrategy strategy)
storeStrategy in interface NWorkspacepublic NWorkspace storeLayout(NOsFamily storeLayout)
storeLayout in interface NWorkspacepublic NWorkspace setHomeLocation(NHomeLocation homeType, String location)
setHomeLocation in interface NWorkspacepublic NOptional<String> findSysCommand(String commandName)
findSysCommand 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> allImports()
allImports in interface NWorkspacepublic NWorkspaceStoredConfig storedConfig()
storedConfig 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<NRepositorySpec> defaultRepositories()
defaultRepositories in interface NWorkspacepublic Set<String> availableArchetypes()
availableArchetypes in interface NWorkspacepublic NPath resolveRepositoryPath(String repositoryLocation)
resolveRepositoryPath in interface NWorkspacepublic NIndexStoreFactory indexStoreClientFactory()
indexStoreClientFactory in interface NWorkspacepublic String javaCommand()
javaCommand in interface NWorkspacepublic String javaOptions()
javaOptions 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> configMap()
configMap in interface NWorkspacepublic NOptional<NLiteral> getConfigProperty(String property)
getConfigProperty in interface NWorkspacepublic NWorkspace setConfigProperty(String property, String value)
setConfigProperty in interface NWorkspacepublic List<NCommandFactoryConfig> commandFactories()
commandFactories 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 bootOptions()
bootOptions in interface NWorkspacepublic ClassLoader bootClassLoader()
bootClassLoader in interface NWorkspacepublic List<URL> bootClassWorldURLs()
bootClassWorldURLs in interface NWorkspacepublic List<String> bootRepositories()
bootRepositories in interface NWorkspacepublic Instant creationStartTime()
creationStartTime in interface NWorkspacepublic Instant creationFinishTime()
creationFinishTime in interface NWorkspacepublic NDuration creationDuration()
creationDuration in interface NWorkspacepublic NClassLoaderNode bootRuntimeClassLoaderNode()
bootRuntimeClassLoaderNode in interface NWorkspacepublic List<NClassLoaderNode> bootExtensionClassLoaderNodes()
bootExtensionClassLoaderNodes in interface NWorkspacepublic NWorkspaceTerminalOptions bootTerminal()
bootTerminal in interface NWorkspacepublic void runApplication(NApplicationHandleMode handleMode)
runApplication in interface NWorkspacepublic void runBootCommand()
runBootCommand in interface NWorkspaceBaseCopyright © 2026 vpc open source initiative. All rights reserved.