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, getInstallListeners, getPropertyListeners, getRepositoryListeners, getWorkspaceListeners, isSharedInstance, removeInstallListener, removePropertyListener, removeRepositoryListener, removeWorkspaceListener, runWith, setSharedInstance, shareclone, 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 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 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> 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> 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> getProperties()
getProperties 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 getPid()
getPid 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 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 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> 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<NRepositorySpec> 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 List<String> getBootRepositories()
getBootRepositories in interface NWorkspacepublic Instant getCreationStartTime()
getCreationStartTime in interface NWorkspacepublic Instant getCreationFinishTime()
getCreationFinishTime in interface NWorkspacepublic NDuration getCreationDuration()
getCreationDuration in interface NWorkspacepublic NClassLoaderNode getBootRuntimeClassLoaderNode()
getBootRuntimeClassLoaderNode in interface NWorkspacepublic List<NClassLoaderNode> getBootExtensionClassLoaderNodes()
getBootExtensionClassLoaderNodes in interface NWorkspacepublic NWorkspaceTerminalOptions getBootTerminal()
getBootTerminal 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.