Package google.registry.model.console
Class User
- java.lang.Object
-
- google.registry.model.ImmutableObject
-
- google.registry.model.UpdateAutoTimestampEntity
-
- google.registry.model.console.User
-
- All Implemented Interfaces:
Buildable
,UnsafeSerializable
,java.io.Serializable
,java.lang.Cloneable
@Entity public class User extends UpdateAutoTimestampEntity implements Buildable
A console user, either a registry employee or a registrar partner.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
User.Builder
Builder for constructing immutableUser
objects.-
Nested classes/interfaces inherited from class google.registry.model.ImmutableObject
ImmutableObject.DoNotHydrate, ImmutableObject.IgnoredInDiffableMap, ImmutableObject.Insignificant
-
Nested classes/interfaces inherited from interface google.registry.model.Buildable
Buildable.GenericBuilder<S,B extends Buildable.GenericBuilder<?,?>>, Buildable.Overlayable<T>
-
-
Field Summary
-
Fields inherited from class google.registry.model.ImmutableObject
hashCode
-
-
Constructor Summary
Constructors Constructor Description User()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description User.Builder
asBuilder()
VKey<User>
createVKey()
java.lang.String
getEmailAddress()
java.lang.Long
getId()
UserRoles
getUserRoles()
boolean
hasAnyRegistryLockPermission()
Whether the user has the registry lock permission on any registrar or globally.boolean
hasRegistryLockPassword()
boolean
verifyRegistryLockPassword(java.lang.String registryLockPassword)
-
Methods inherited from class google.registry.model.UpdateAutoTimestampEntity
copyUpdateTimestamp, getUpdateTimestamp, resetUpdateTimestamp, setUpdateTimestamp
-
Methods inherited from class google.registry.model.ImmutableObject
clone, cloneEmptyToNull, equals, getSignificantFields, hashCode, toDiffableFieldMap, toHydratedString, toString, toStringHelper
-
-
-
-
Method Detail
-
getId
public java.lang.Long getId()
-
getEmailAddress
public java.lang.String getEmailAddress()
-
getUserRoles
public UserRoles getUserRoles()
-
hasRegistryLockPassword
public boolean hasRegistryLockPassword()
-
verifyRegistryLockPassword
public boolean verifyRegistryLockPassword(java.lang.String registryLockPassword)
-
hasAnyRegistryLockPermission
public boolean hasAnyRegistryLockPermission()
Whether the user has the registry lock permission on any registrar or globally.If so, they should be allowed to (re)set their registry lock password.
-
asBuilder
public User.Builder asBuilder()
-
createVKey
public VKey<User> createVKey()
- Overrides:
createVKey
in classImmutableObject
-
-