public enum AccessPermission extends Enum<AccessPermission>
The possible types are:
Enum Constant and Description |
---|
ALLOWED
Allows execution of operations on digital asset.
|
NOT_ALLOWED
Prevents execution of operations on digital asset.
|
Modifier and Type | Method and Description |
---|---|
static AccessPermission |
convertBooleanToAccessPermission(Boolean booleanValue)
Converts a boolean value to an
AccessPermission . |
String |
getFlag()
Identifies this permission.
|
com.onwbp.base.text.UserMessage |
getLabel()
Returns a developer-friendly string label.
|
int |
getPriority()
Returns the permission's priority.
|
boolean |
isAllowed() |
boolean |
isNotAllowed() |
AccessPermission |
min(AccessPermission otherPermission)
Compares permissions and returns the permission with the highest priority.
|
static AccessPermission |
parse(String flag)
Parses the specified flag and returns the corresponding
AccessPermission instance. |
String |
toString() |
static AccessPermission |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AccessPermission[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AccessPermission ALLOWED
public static final AccessPermission NOT_ALLOWED
public static AccessPermission[] values()
for (AccessPermission c : AccessPermission.values()) System.out.println(c);
public static AccessPermission 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 AccessPermission parse(String flag)
AccessPermission
instance.public AccessPermission min(AccessPermission otherPermission)
otherPermission
- the additional permission used for comparisonpublic static AccessPermission convertBooleanToAccessPermission(Boolean booleanValue)
AccessPermission
.public String getFlag()
public com.onwbp.base.text.UserMessage getLabel()
public int getPriority()
public String toString()
toString
in class Enum<AccessPermission>
public boolean isAllowed()
public boolean isNotAllowed()