Class AbstractRegisterPageController
- java.lang.Object
-
- de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
-
- de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractPageController
-
- de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractRegisterPageController
-
- Direct Known Subclasses:
AbstractLoginPageController
,CheckoutRegisterController
,RegisterPageController
public abstract class AbstractRegisterPageController extends AbstractPageController
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
AbstractController.HttpNotFoundException
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
CHECKOUT_ORDER_CONFIRMATION_CMS_PAGE_LABEL
protected ConsentFacade
consentFacade
protected CustomerConsentDataStrategy
customerConsentDataStrategy
-
Fields inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractPageController
CMS_PAGE_MODEL, CMS_PAGE_TITLE, PAGE_ROOT, REDIRECT_TO_LOGIN_FOR_CHECKOUT, REDIRECT_TO_MULTISTEP_CHECKOUT, REGISTRATION_CONSENT_ID, UTF_8
-
Fields inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
FORWARD_PREFIX, REDIRECT_PREFIX, ROOT
-
-
Constructor Summary
Constructors Constructor Description AbstractRegisterPageController()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected AutoLoginStrategy
getAutoLoginStrategy()
protected abstract AbstractPageModel
getCmsPage()
protected java.lang.String
getDefaultRegistrationPage(org.springframework.ui.Model model)
protected GUIDCookieStrategy
getGuidCookieStrategy()
protected org.springframework.validation.Validator
getRegistrationValidator()
protected abstract java.lang.String
getSuccessRedirect(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
java.util.Collection<TitleData>
getTitles()
protected abstract java.lang.String
getView()
protected java.lang.String
handleRegistrationError(org.springframework.ui.Model model)
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)
Anonymous checkout process.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)
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.-
Methods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractPageController
addRegistrationConsentDataToModel, checkRequestUrl, createMetaElement, decodeWithScheme, getBaseSiteService, getCheckoutRedirectUrl, getCmsPageService, getCmsPreviewService, getCmsSiteService, getConfigurationService, getConsentFacade, getContentPageForLabelOrId, getCurrencies, getCurrentCurrency, getCurrentLanguage, getCustomerFacade, getHostConfigService, getI18nService, getLanguages, getMessageSource, getPageTitleResolver, getRequestContextData, getSessionService, getSiteConfigService, getSiteName, getSiteUid, getStoreSessionFacade, getUser, getUserFacade, getViewForPage, getViewForPage, prepareNotFoundPage, setUpMetaData, setUpMetaDataForContentPage, storeCmsPageInModel, storeContentPageTitleInModel, storeContinueUrl, urlEncode
-
Methods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
addRequestToModel, getBean
-
-
-
-
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 ConsentFacade consentFacade
-
customerConsentDataStrategy
protected CustomerConsentDataStrategy customerConsentDataStrategy
-
-
Method Detail
-
getCmsPage
protected abstract AbstractPageModel getCmsPage() throws CMSItemNotFoundException
- Throws:
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 CMSItemNotFoundException
- Throws:
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 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
-
handleRegistrationError
protected java.lang.String handleRegistrationError(org.springframework.ui.Model model) throws CMSItemNotFoundException
- Throws:
CMSItemNotFoundException
-
-