Package google.registry.model.console
Enum Class RegistrarRole
- All Implemented Interfaces:
Serializable
,Comparable<RegistrarRole>
,Constable
Roles for registrar partners that apply to only one registrar.
-
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 standard account manager at a registrar.The user is an account manager that can perform registry locks.The user is the primary contact at a registrar.The user is a technical contact of a registrar. -
Method Summary
Modifier and TypeMethodDescriptionboolean
hasPermission
(ConsolePermission permission) static RegistrarRole
Returns the enum constant of this class with the specified name.static RegistrarRole[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ACCOUNT_MANAGER
The user is a standard account manager at a registrar. -
ACCOUNT_MANAGER_WITH_REGISTRY_LOCK
The user is an account manager that can perform registry locks. -
TECH_CONTACT
The user is a technical contact of a registrar. -
PRIMARY_CONTACT
The user is the primary contact at a registrar.
-
-
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
-