Class AbstractRegisterPageController

Direct Known Subclasses:
AbstractLoginPageController, TmaAbstractRegisterPageController

public abstract class AbstractRegisterPageController extends AbstractPageController
  • Field Details

    • CHECKOUT_ORDER_CONFIRMATION_CMS_PAGE_LABEL

      protected static final String CHECKOUT_ORDER_CONFIRMATION_CMS_PAGE_LABEL
      See Also:
    • consentFacade

      protected de.hybris.platform.commercefacades.consent.ConsentFacade consentFacade
    • customerConsentDataStrategy

      protected CustomerConsentDataStrategy customerConsentDataStrategy
  • Constructor Details

    • AbstractRegisterPageController

      public AbstractRegisterPageController()
  • Method Details

    • getCmsPage

      protected abstract AbstractPageModel getCmsPage() throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.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 de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.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 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 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 String handleRegistrationError(org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException