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