Record Class AuthAccountRequest
java.lang.Object
java.lang.Record
com.cloudforge.core.manager.auth.AuthAccountRequest
- Record Components:
username- required by both backendsemail- optionalrole- one ofadmin/manager/viewerinitialPassword- required byLocalH2AuthBackend(local accounts have no other way to get a password); ignored byCognitoAuthBackend, which always generates and returns its own temporary password onAuthAccount.temporaryPassword()regardless of what's passed heresuppressInvite- Cognito-only —truefor a migration's bulk-created accounts (the temporary password is relayed to the admin instead),falsefor a single ad-hoc "Add User" from the panel (let Cognito email its own invite). Ignored byLocalH2AuthBackend.linkedAccountId- optional cross-backend link to record at creation time — seeAuthAccount.linkedAccountId()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionemail()Returns the value of theemailrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinitialPasswordrecord component.Returns the value of thelinkedAccountIdrecord component.role()Returns the value of therolerecord component.booleanReturns the value of thesuppressInviterecord component.final StringtoString()Returns a string representation of this record class.username()Returns the value of theusernamerecord component.
-
Constructor Details
-
AuthAccountRequest
public AuthAccountRequest(String username, String email, String role, String initialPassword, boolean suppressInvite, String linkedAccountId) Creates an instance of aAuthAccountRequestrecord class.- Parameters:
username- the value for theusernamerecord componentemail- the value for theemailrecord componentrole- the value for therolerecord componentinitialPassword- the value for theinitialPasswordrecord componentsuppressInvite- the value for thesuppressInviterecord componentlinkedAccountId- the value for thelinkedAccountIdrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
username
-
email
-
role
-
initialPassword
Returns the value of theinitialPasswordrecord component.- Returns:
- the value of the
initialPasswordrecord component
-
suppressInvite
public boolean suppressInvite()Returns the value of thesuppressInviterecord component.- Returns:
- the value of the
suppressInviterecord component
-
linkedAccountId
Returns the value of thelinkedAccountIdrecord component.- Returns:
- the value of the
linkedAccountIdrecord component
-