- All Implemented Interfaces:
Serializable
,Comparable<PortalPrivilege.Role>
,Constable
- Enclosing class:
PortalPrivilege
Signifies the user role a privilege belongs to.
- Since:
- 100.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptiontoString()
Returns a string representing the PortalPrivilege.Role.static PortalPrivilege.Role
Returns the enum constant of this class with the specified name.static PortalPrivilege.Role[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ADMIN
Used for privileges related to portal administration.- Since:
- 100.0.0
-
PUBLISHER
Used for privileges related to publishing of services.- Since:
- 100.0.0
-
USER
Used for privileges related to creating and using content.- Since:
- 100.0.0
-
UNKNOWN
Role is unknown.- Since:
- 100.0.0
-
-
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
-
toString
Returns a string representing the PortalPrivilege.Role.- Overrides:
toString
in classEnum<PortalPrivilege.Role>
- Returns:
- a string representing the PortalPrivilege.Role
- Since:
- 100.0.0
-