public enum ServiceScope extends java.lang.Enum<ServiceScope>
Enum Constant and Description |
---|
APPLICATION
Available in local application, i.e.
|
APPLICATION_GLOBAL
Global application scope.
|
APPLICATION_NETWORK
Application network scope (any platform with which a secret is shared and application tag must be shared).
|
COMPONENT
Available in component and all direct and indirect subcomponents.
|
COMPONENT_ONLY
Available in component itself.
|
DEFAULT
Marker for default scope to be replaced automatically according to context;
for required services (search scope): the default scope is 'platform' for system services and 'application' for non-system services,
for provided services (publication scope): the default scope is always platform.
|
GLOBAL
Global scope (any reachable platform including those with unrestricted services).
|
NETWORK
Network scope (any platform with which a secret is shared).
|
NONE
None component scope (nothing will be searched, forces required service creation).
|
PARENT
Available in immediate parent and all direct and indirect subcomponents.
|
PLATFORM
Available in all components on the local platform.
|
Modifier and Type | Field and Description |
---|---|
static java.util.Set<ServiceScope> |
GLOBAL_SCOPES
The global scopes.
|
static java.util.Set<ServiceScope> |
LOCAL_SCOPES
The scopes local to a platform.
|
static java.util.Set<ServiceScope> |
NETWORK_SCOPES
The network scopes.
|
Modifier and Type | Method and Description |
---|---|
static ServiceScope |
getEnum(java.lang.String val)
Get the enum per string.
|
boolean |
isGlobal()
Check if the scope is global.
|
boolean |
isLocal()
Check if the scope not remote.
|
boolean |
isNetwork()
Check if the scope is a network scope.
|
static ServiceScope |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ServiceScope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServiceScope DEFAULT
public static final ServiceScope NONE
public static final ServiceScope PARENT
public static final ServiceScope COMPONENT_ONLY
public static final ServiceScope COMPONENT
public static final ServiceScope APPLICATION
public static final ServiceScope PLATFORM
public static final ServiceScope APPLICATION_NETWORK
public static final ServiceScope NETWORK
public static final ServiceScope APPLICATION_GLOBAL
public static final ServiceScope GLOBAL
public static final java.util.Set<ServiceScope> LOCAL_SCOPES
public static final java.util.Set<ServiceScope> GLOBAL_SCOPES
public static final java.util.Set<ServiceScope> NETWORK_SCOPES
public static ServiceScope[] values()
for (ServiceScope c : ServiceScope.values()) System.out.println(c);
public static ServiceScope valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean isLocal()
public boolean isGlobal()
public boolean isNetwork()
public static ServiceScope getEnum(java.lang.String val)
val
- The value.