Package google.registry.model.console
Enum Class GlobalRole
- All Implemented Interfaces:
Serializable
,Comparable<GlobalRole>
,Constable
Roles for registry employees that apply across all registrars.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe user is a registry full-time employee.The user has no global role, i.e.The user is a registry support agent.The user is a registry support lead. -
Method Summary
Modifier and TypeMethodDescriptionboolean
hasPermission
(ConsolePermission permission) static GlobalRole
Returns the enum constant of this class with the specified name.static GlobalRole[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
The user has no global role, i.e. they're a registrar partner. -
SUPPORT_AGENT
The user is a registry support agent. -
SUPPORT_LEAD
The user is a registry support lead. -
FTE
The user is a registry full-time employee.
-
-
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
-
hasPermission
-