public abstract class Scope
extends java.lang.Object
NSDefaults
instance.
This can be either USER
or SYSTEM
where the first
is only used for the current user and the latter is system wide.
A special Scope
is USER_BY_THIS_HOST
which is specific for
the current user but only on the host the program is currently running on.Modifier and Type | Class and Description |
---|---|
static class |
Scope.SystemScope
The system-wide scope for the local host
|
static class |
Scope.UserByHostScope
The scope for the current user on a specific host
|
static class |
Scope.UserScope
The scope for the current user on any host
|
Modifier and Type | Field and Description |
---|---|
static Scope.SystemScope |
SYSTEM
The system-wide scope for the local host
|
static Scope.UserScope |
USER
The scope for the current user on any host
|
static Scope.UserByHostScope |
USER_BY_THIS_HOST
The scope for the current user on the local host
|
Modifier and Type | Method and Description |
---|---|
static Scope.SystemScope |
getSystemScope() |
static Scope.UserByHostScope |
getUserByHostScope() |
static Scope.UserByHostScope |
getUserByHostScope(java.lang.String machineUUID)
Get the scope for the given machineUUID
|
static Scope.UserScope |
getUserScope() |
static Scope[] |
instances()
Get all earlier created instances
|
abstract boolean |
isByHost()
Determine if this scope is by host.
|
public static final Scope.SystemScope SYSTEM
public static final Scope.UserScope USER
public static final Scope.UserByHostScope USER_BY_THIS_HOST
public static Scope.SystemScope getSystemScope()
SYSTEM
public static Scope.UserScope getUserScope()
USER
public static Scope.UserByHostScope getUserByHostScope()
USER_BY_THIS_HOST
public static Scope.UserByHostScope getUserByHostScope(java.lang.String machineUUID)
machineUUID
- the machineUUIDpublic abstract boolean isByHost()
public static Scope[] instances()