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
,Serializable
,Cloneable
A console user, either a registry employee or a registrar partner.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
User.Builder<T extends User,
B extends User.Builder<T, B>> 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
FieldsFields inherited from class google.registry.model.ImmutableObject
hashCode
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionUser.Builder
<? extends User, ?> static void
grantIapPermission
(String emailAddress, Optional<String> groupEmailAddress, CloudTasksUtils cloudTasksUtils, ServiceConnection connection, IamClient iamClient) Grants the user permission to pass IAP.boolean
Whether the user has the registry lock permission on any registrar or globally.boolean
static void
revokeIapPermission
(String emailAddress, Optional<String> groupEmailAddress, CloudTasksUtils cloudTasksUtils, ServiceConnection connection, IamClient iamClient) Revoke the user's permission to pass IAP.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
-
Field Details
-
IAP_SECURED_WEB_APP_USER_ROLE
- See Also:
-
-
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
-
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
-