Package google.registry.model.console
Enum RegistrarRole
- java.lang.Object
-
- java.lang.Enum<RegistrarRole>
-
- google.registry.model.console.RegistrarRole
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<RegistrarRole>
public enum RegistrarRole extends java.lang.Enum<RegistrarRole>
Roles for registrar partners that apply to only one registrar.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description 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.PRIMARY_CONTACT
The user is the primary contact at a registrar.TECH_CONTACT
The user is a technical contact of a registrar.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasPermission(ConsolePermission permission)
static RegistrarRole
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static RegistrarRole[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACCOUNT_MANAGER
public static final RegistrarRole ACCOUNT_MANAGER
The user is a standard account manager at a registrar.
-
ACCOUNT_MANAGER_WITH_REGISTRY_LOCK
public static final RegistrarRole ACCOUNT_MANAGER_WITH_REGISTRY_LOCK
The user is an account manager that can perform registry locks.
-
TECH_CONTACT
public static final RegistrarRole TECH_CONTACT
The user is a technical contact of a registrar.
-
PRIMARY_CONTACT
public static final RegistrarRole PRIMARY_CONTACT
The user is the primary contact at a registrar.
-
-
Method Detail
-
values
public static RegistrarRole[] 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 (RegistrarRole c : RegistrarRole.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RegistrarRole 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
-
hasPermission
public boolean hasPermission(ConsolePermission permission)
-
-