Package com.flower.docs.domain.security
Enum Roles
- java.lang.Object
-
- java.lang.Enum<Roles>
-
- com.flower.docs.domain.security.Roles
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADMIN
The role for an administratorDELEGATION_MANAGER
The role that allows to create the delegation from anyone to anyoneDOCUMENT_CREATOR
The role that allows to have insert tabFUNCTIONAL_ADMIN
OWNER
Contextual role for owner ofComponent
SCOPE_MANAGER
The role for a scope managerSECURITY_ADMIN
SYSTEM_ADMIN
The role for a system administratorUSER
The role for a simple user
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Roles
fromValue(java.lang.String value)
java.lang.String
value()
static Roles
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Roles[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
USER
public static final Roles USER
The role for a simple user
-
SCOPE_MANAGER
public static final Roles SCOPE_MANAGER
The role for a scope manager
-
FUNCTIONAL_ADMIN
public static final Roles FUNCTIONAL_ADMIN
-
SECURITY_ADMIN
public static final Roles SECURITY_ADMIN
-
ADMIN
public static final Roles ADMIN
The role for an administrator
-
SYSTEM_ADMIN
public static final Roles SYSTEM_ADMIN
The role for a system administrator
-
OWNER
public static final Roles OWNER
Contextual role for owner ofComponent
- See Also:
Data.getOwner()
-
DOCUMENT_CREATOR
public static final Roles DOCUMENT_CREATOR
The role that allows to have insert tab
-
DELEGATION_MANAGER
public static final Roles DELEGATION_MANAGER
The role that allows to create the delegation from anyone to anyone
-
-
Method Detail
-
values
public static Roles[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Roles c : Roles.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Roles valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
value
public java.lang.String value()
-
fromValue
public static Roles fromValue(java.lang.String value)
-
-