Class AbstractRegisterPageController

    • Constructor Detail

      • AbstractRegisterPageController

        public AbstractRegisterPageController()
    • Method Detail

      • getSuccessRedirect

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

        protected abstract java.lang.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 java.util.Collection<TitleData> getTitles()
      • processRegisterUserRequest

        protected java.lang.String processRegisterUserRequest​(java.lang.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 java.lang.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