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,TmaAbstractRegisterPageController
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
AbstractController.HttpNotFoundException -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected de.hybris.platform.commercefacades.consent.ConsentFacadeprotected CustomerConsentDataStrategyFields 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_8Fields inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
FORWARD_PREFIX, REDIRECT_PREFIX, ROOT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AutoLoginStrategyprotected abstract AbstractPageModelprotected StringgetDefaultRegistrationPage(org.springframework.ui.Model model) protected GUIDCookieStrategyprotected org.springframework.validation.Validatorprotected abstract StringgetSuccessRedirect(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) protected abstract StringgetView()protected StringhandleRegistrationError(org.springframework.ui.Model model) protected StringprocessAnonymousCheckoutUserRequest(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 StringprocessRegisterUserRequest(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, urlEncodeMethods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
addRequestToModel, getBean
-
Field Details
-
CHECKOUT_ORDER_CONFIRMATION_CMS_PAGE_LABEL
- See Also:
-
consentFacade
protected de.hybris.platform.commercefacades.consent.ConsentFacade consentFacade -
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
-
getRegistrationValidator
protected org.springframework.validation.Validator getRegistrationValidator()- Returns:
- the registrationValidator
-
getAutoLoginStrategy
- Returns:
- the autoLoginStrategy
-
getGuidCookieStrategy
- Returns:
- GUIDCookieStrategy
-
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
-