Package google.registry.model.console
Class UserBase
java.lang.Object
google.registry.model.ImmutableObject
google.registry.model.UpdateAutoTimestampEntity
google.registry.model.console.UserBase
- All Implemented Interfaces:
Buildable
,UnsafeSerializable
,Serializable
,Cloneable
- Direct Known Subclasses:
User
@Embeddable
@MappedSuperclass
public class UserBase
extends UpdateAutoTimestampEntity
implements Buildable
A console user, either a registry employee or a registrar partner.
This class deliberately does not include an Id
so that any foreign-keyed fields can
refer to the proper parent entity's ID, whether we're storing this in the DB itself or as part of
another entity.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
UserBase.Builder<T extends UserBase,
B extends UserBase.Builder<T, B>> Builder for constructing immutableUserBase
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
-
Method Summary
Modifier and TypeMethodDescriptionUserBase.Builder
<? extends UserBase, ?> boolean
Whether the user has the registry lock permission on any registrar or globally.boolean
boolean
verifyRegistryLockPassword
(String registryLockPassword) Methods inherited from class google.registry.model.UpdateAutoTimestampEntity
copyUpdateTimestamp, getUpdateTimestamp, resetUpdateTimestamp, setUpdateTimestamp
Methods inherited from class google.registry.model.ImmutableObject
clone, cloneEmptyToNull, createVKey, equals, getSignificantFields, hashCode, toDiffableFieldMap, toHydratedString, toString, toStringHelper
-
Constructor Details
-
UserBase
public UserBase()
-
-
Method Details
-
getEmailAddress
-
getRegistryLockEmailAddress
-
getUserRoles
-
hasRegistryLockPassword
public boolean hasRegistryLockPassword() -
verifyRegistryLockPassword
-
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
-