Enum Class ACLType
- All Implemented Interfaces:
Serializable,Comparable<ACLType>,Constable
The ACL Type
- Author:
- andyh
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDefining permission - not reused anywhereAn ACL defined in its own right - there is no inheriance contextA single instance for global permissionsLayered typesOld style permissions that require a parent wlak to resolveShared permission, reused for inhertiance from defining permission -
Method Summary
Modifier and TypeMethodDescriptionstatic ACLTypegetACLTypeFromId(int id) Get the ACLType from the value stored in the DBabstract intgetId()Get the id for the ACLType stored in the DBstatic ACLTypeReturns the enum constant of this class with the specified name.static ACLType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OLD
Old style permissions that require a parent wlak to resolve -
DEFINING
Defining permission - not reused anywhere -
SHARED
Shared permission, reused for inhertiance from defining permission -
FIXED
An ACL defined in its own right - there is no inheriance context -
GLOBAL
A single instance for global permissions -
LAYERED
Layered types
-
-
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
-
getId
public abstract int getId()Get the id for the ACLType stored in the DB- Returns:
- int
-
getACLTypeFromId
Get the ACLType from the value stored in the DB- Parameters:
id- int- Returns:
- ACLType
-