Class UserRegistration
- java.lang.Object
-
- com.broadleafcommerce.auth.user.api.dto.UserRegistration
-
public class UserRegistration extends Object
Representation of a registration from the frontend- Author:
- Phillip Verheyden (phillipuniverse)
-
-
Constructor Summary
Constructors Constructor Description UserRegistration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)Map<String,Object>getAttributes()Client implementations may choose to utilize this field to accept and pass additional custom information as part of the user registration process.StringgetClientId()The application's client_id that this user is registering toStringgetEmail()Email addressStringgetFullName()Full name of the userStringgetPassword()StringgetPasswordConfirmation()Must match the givenpasswordBooleangetPreview()True if this registration is in a preview contextStringgetReturnTo()The location to which the user is forwarded after registrationStringgetUsername()UsernameStringgetUserType()The type of user to register this user as.inthashCode()voidsetAttributes(Map<String,Object> attributes)Client implementations may choose to utilize this field to accept and pass additional custom information as part of the user registration process.voidsetClientId(String clientId)The application's client_id that this user is registering tovoidsetEmail(String email)Email addressvoidsetFullName(String fullName)Full name of the uservoidsetPassword(String password)voidsetPasswordConfirmation(String passwordConfirmation)Must match the givenpasswordvoidsetPreview(Boolean preview)True if this registration is in a preview contextvoidsetReturnTo(String returnTo)The location to which the user is forwarded after registrationvoidsetUsername(String username)UsernamevoidsetUserType(String userType)The type of user to register this user as.StringtoString()
-
-
-
Method Detail
-
getUserType
public String getUserType()
The type of user to register this user as.- See Also:
UserType
-
getFullName
public String getFullName()
Full name of the user
-
getUsername
public String getUsername()
UsernameOnly used when
AuthRegistrationProperties.isEmailAsUsername()is disabled
-
getEmail
public String getEmail()
Email address
-
getPassword
public String getPassword()
- See Also:
PasswordRequestValidator
-
getPasswordConfirmation
public String getPasswordConfirmation()
Must match the givenpassword- See Also:
PasswordRequestValidator
-
getClientId
public String getClientId()
The application's client_id that this user is registering to
-
getReturnTo
public String getReturnTo()
The location to which the user is forwarded after registration
-
getPreview
public Boolean getPreview()
True if this registration is in a preview context
-
getAttributes
public Map<String,Object> getAttributes()
Client implementations may choose to utilize this field to accept and pass additional custom information as part of the user registration process. By default, these attributes are passed to other interested microservices viaUserCreationEvent.attributes.- See Also:
UserCreationEvent.attributes
-
setUserType
public void setUserType(String userType)
The type of user to register this user as.- See Also:
UserType
-
setFullName
public void setFullName(String fullName)
Full name of the user
-
setUsername
public void setUsername(String username)
UsernameOnly used when
AuthRegistrationProperties.isEmailAsUsername()is disabled
-
setEmail
public void setEmail(String email)
Email address
-
setPassword
public void setPassword(String password)
- See Also:
PasswordRequestValidator
-
setPasswordConfirmation
public void setPasswordConfirmation(String passwordConfirmation)
Must match the givenpassword- See Also:
PasswordRequestValidator
-
setClientId
public void setClientId(String clientId)
The application's client_id that this user is registering to
-
setReturnTo
public void setReturnTo(String returnTo)
The location to which the user is forwarded after registration
-
setPreview
public void setPreview(Boolean preview)
True if this registration is in a preview context
-
setAttributes
public void setAttributes(Map<String,Object> attributes)
Client implementations may choose to utilize this field to accept and pass additional custom information as part of the user registration process. By default, these attributes are passed to other interested microservices viaUserCreationEvent.attributes.- See Also:
UserCreationEvent.attributes
-
canEqual
protected boolean canEqual(Object other)
-
-