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 Detail

      • 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 registration
        isEmbedded - 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