Enum Class PermissionAllowed
- All Implemented Interfaces:
Serializable
,Comparable<PermissionAllowed>
,Constable
if allowed or disallowed
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionnormal assignment if alloweddisallow underneath an inherited allow to limit the scope of the allow -
Method Summary
Modifier and TypeMethodDescriptionstatic PermissionAllowed
fromDisallowedBoolean
(boolean disallowed) convert from disallowed boolean to the enumabstract boolean
if disallowedstatic PermissionAllowed
Returns the enum constant of this class with the specified name.static PermissionAllowed[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALLOWED
normal assignment if allowed -
DISALLOWED
disallow underneath an inherited allow to limit the scope of the allow
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
isDisallowed
public abstract boolean isDisallowed()if disallowed- Returns:
- true or false
-
fromDisallowedBoolean
convert from disallowed boolean to the enum- Parameters:
disallowed
-- Returns:
- the permission allowed
-