Interface UserRegistrationService<P extends User>
-
- All Known Implementing Classes:
DefaultUserRegistrationService
public interface UserRegistrationService<P extends User>Registers new users into the user data store- Author:
- Phillip Verheyden (phillipuniverse)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description PregisterUser(UserRegistration registration)Create and registers a new user from the given registration.PregisterUser(UserRegistration registration, boolean isEmbedded)Create and registers a new user from the given registrationPregisterUser(UserRegistration registration, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)Deprecated.in favor ofregisterUser(com.broadleafcommerce.auth.user.api.dto.UserRegistration, com.broadleafcommerce.data.tracking.core.context.ContextInfo), as context is no longer a requirement
-
-
-
Method Detail
-
registerUser
@Deprecated P registerUser(UserRegistration registration, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
Deprecated.in favor ofregisterUser(com.broadleafcommerce.auth.user.api.dto.UserRegistration, com.broadleafcommerce.data.tracking.core.context.ContextInfo), as context is no longer a requirementCreate and registers a new user from the given registration Deprecated because ContextInfo parameter is now ignored- Parameters:
registration- what the user filled out as their registrationcontext- ignored- Returns:
- the created user
- Throws:
com.broadleafcommerce.common.error.validation.ValidationException- if there were any validation failures- See Also:
RegistrationValidator
-
registerUser
P registerUser(UserRegistration registration)
Create and registers a new user from the given registration. Assumes this is for a Universal Login type registration form rather than embedded.- Parameters:
registration- what the user filled out as their registration- Returns:
- the created user
- Throws:
com.broadleafcommerce.common.error.validation.ValidationException- if there were any validation failures- See Also:
RegistrationValidator
-
registerUser
P registerUser(UserRegistration registration, boolean isEmbedded)
Create and registers a new user from the given registration- Parameters:
registration- what the user filled out as their registrationisEmbedded- Whether this is a request from an embedded form- Returns:
- the created user
- Throws:
com.broadleafcommerce.common.error.validation.ValidationException- if there were any validation failures- See Also:
RegistrationValidator
-
-