Class AbstractRegisterPageController

    • Field Detail

      • CHECKOUT_ORDER_CONFIRMATION_CMS_PAGE_LABEL

        protected static final java.lang.String CHECKOUT_ORDER_CONFIRMATION_CMS_PAGE_LABEL
        See Also:
        Constant Field Values
      • consentFacade

        protected de.hybris.platform.commercefacades.consent.ConsentFacade consentFacade
    • Constructor Detail

      • AbstractRegisterPageController

        public AbstractRegisterPageController()
    • Method Detail

      • getCmsPage

        protected abstract AbstractPageModel getCmsPage()
                                                 throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
        Throws:
        de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      • 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()
      • getDefaultRegistrationPage

        protected java.lang.String getDefaultRegistrationPage​(org.springframework.ui.Model model)
                                                       throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
        Throws:
        de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      • 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 de.hybris.platform.cms2.exceptions.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:
        de.hybris.platform.cms2.exceptions.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 de.hybris.platform.cms2.exceptions.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:
        de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      • handleRegistrationError

        protected java.lang.String handleRegistrationError​(org.springframework.ui.Model model)
                                                    throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
        Throws:
        de.hybris.platform.cms2.exceptions.CMSItemNotFoundException