public enum DistributionScope extends Enum<DistributionScope> implements Scope
| Enum Constant and Description |
|---|
LOCAL
Local service scope.
|
REMOTE
Remote service scope.
|
| Modifier and Type | Field and Description |
|---|---|
static DistributionScope |
DEFAULT
Default scope.
|
| Modifier and Type | Method and Description |
|---|---|
static DistributionScope |
get(String aId)
Get
DistributionScope by id. |
String |
getId()
Scope unique identifier.
|
static DistributionScope |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DistributionScope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DistributionScope LOCAL
public static final DistributionScope REMOTE
public static final DistributionScope DEFAULT
public static DistributionScope[] values()
for (DistributionScope c : DistributionScope.values()) System.out.println(c);
public static DistributionScope valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static final DistributionScope get(String aId)
DistributionScope by id. Default scope will be returned if scope with given id not found.aId - scope idDistributionScopeCopyright © 2013–2019 BB Corp. All rights reserved.