Class 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:
  • Constructor Details

    • UserBase

      public UserBase()
  • Method Details

    • getId

      public Long getId()
    • getEmailAddress

      public String getEmailAddress()
    • getRegistryLockEmailAddress

      public Optional<String> getRegistryLockEmailAddress()
    • getUserRoles

      public UserRoles getUserRoles()
    • hasRegistryLockPassword

      public boolean hasRegistryLockPassword()
    • verifyRegistryLockPassword

      public boolean verifyRegistryLockPassword(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 UserBase.Builder<? extends UserBase,?> asBuilder()
      Specified by:
      asBuilder in interface Buildable