Class AbstractRegisterPageController

Direct Known Subclasses:
AbstractLoginPageController, CheckoutRegisterController, RegisterPageController

public abstract class AbstractRegisterPageController extends AbstractPageController
  • Field Details

  • Constructor Details

    • AbstractRegisterPageController

      public AbstractRegisterPageController()
  • Method Details

    • getCmsPage

      protected abstract AbstractPageModel getCmsPage() throws CMSItemNotFoundException
      Throws:
      CMSItemNotFoundException
    • getSuccessRedirect

      protected abstract String getSuccessRedirect(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
    • getView

      protected abstract String getView()
    • getRegistrationValidator

      protected org.springframework.validation.Validator getRegistrationValidator()
      Returns:
      the registrationValidator
    • getAutoLoginStrategy

      protected AutoLoginStrategy getAutoLoginStrategy()
      Returns:
      the autoLoginStrategy
    • getGuidCookieStrategy

      protected GUIDCookieStrategy getGuidCookieStrategy()
      Returns:
      GUIDCookieStrategy
    • getTitles

      @ModelAttribute("titles") public Collection<TitleData> getTitles()
    • getDefaultRegistrationPage

      protected String getDefaultRegistrationPage(org.springframework.ui.Model model) throws CMSItemNotFoundException
      Throws:
      CMSItemNotFoundException
    • processRegisterUserRequest

      protected String processRegisterUserRequest(String referer, RegisterForm form, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws CMSItemNotFoundException
      This method takes data from the registration form and create a new customer account and attempts to log in using the credentials of this new user.
      Returns:
      true if there are no binding errors or the account does not already exists.
      Throws:
      CMSItemNotFoundException
    • processAnonymousCheckoutUserRequest

      protected String processAnonymousCheckoutUserRequest(GuestForm form, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws CMSItemNotFoundException
      Anonymous checkout process. Creates a new guest customer and updates the session cart with this user. The session user will be anonymous and it's never updated with this guest user. If email is required, grab the email from the form and set it as uid with "guid|email" format.
      Throws:
      CMSItemNotFoundException
    • handleRegistrationError

      protected String handleRegistrationError(org.springframework.ui.Model model) throws CMSItemNotFoundException
      Throws:
      CMSItemNotFoundException