Package org.exoplatform.portal.rest
Enum Class UserAccountRole
- All Implemented Interfaces:
Serializable,Comparable<UserAccountRole>,Constable
The role an administrator gives to an account at its creation. It is the
only client value that decides the account's memberships, among these three
fixed values: no client value names a group or a membership type.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn internal user holding the membership the platform requires to grant administration rightsA member of the platform externals group instead of the platform users groupA member of the platform users group, the membership every new account receives -
Method Summary
Modifier and TypeMethodDescriptionstatic UserAccountRolestatic UserAccountRoleReturns the enum constant of this class with the specified name.static UserAccountRole[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INTERNAL
A member of the platform users group, the membership every new account receives -
EXTERNAL
A member of the platform externals group instead of the platform users group -
ADMINISTRATOR
An internal user holding the membership the platform requires to grant administration rights
-
-
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
-
parse
- Parameters:
value- the role as sent by a client, case-insensitive- Returns:
- the role,
INTERNALwhen the value is blank - Throws:
IllegalArgumentException- with messageROLE:INVALIDwhen the value names none of the roles
-