Package org.ctan.site.domain.account
Enum Class Role
- All Implemented Interfaces:
Serializable
,Comparable<Role>
,Constable
The enum
Role
contains the role for a user.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe fieldADMIN
contains the role as administrator.The fieldEDITOR
contains the role of an editor.The fieldMESSAGE_ADMIN
contains the the role of a user who may edit the messages.The fieldUPLOAD_MANAGER
contains the role of an upload manager. -
Method Summary
-
Enum Constant Details
-
ADMIN
The fieldADMIN
contains the role as administrator. -
EDITOR
The fieldEDITOR
contains the role of an editor. -
MESSAGE_ADMIN
The fieldMESSAGE_ADMIN
contains the the role of a user who may edit the messages. -
UPLOAD_MANAGER
The fieldUPLOAD_MANAGER
contains the role of an upload manager.
-
-
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
-