Class User

All Implemented Interfaces:
Buildable, UnsafeSerializable, Serializable, Cloneable

@Embeddable @Entity public class User extends UpdateAutoTimestampEntity implements Buildable
A console user, either a registry employee or a registrar partner.
See Also:
  • Field Details

  • Constructor Details

    • User

      public User()
  • Method Details

    • grantIapPermission

      public static void grantIapPermission(String emailAddress, Optional<String> groupEmailAddress, @Nullable CloudTasksUtils cloudTasksUtils, @Nullable ServiceConnection connection, IamClient iamClient)
      Grants the user permission to pass IAP.

      Depending on if a console user group is set up, the permission is granted either individually or via group membership.

    • revokeIapPermission

      public static void revokeIapPermission(String emailAddress, Optional<String> groupEmailAddress, @Nullable CloudTasksUtils cloudTasksUtils, @Nullable ServiceConnection connection, IamClient iamClient)
      Revoke the user's permission to pass IAP.

      Depending on if a console user group is set up, the permission is revoked either individually or via group membership.

    • 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 User.Builder<? extends User,?> asBuilder()
      Specified by:
      asBuilder in interface Buildable