Class B2BRegistrationController
java.lang.Object
de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractPageController
de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractRegisterPageController
de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractLoginPageController
de.hybris.platform.b2bacceleratoraddon.controllers.secureportal.AbstractB2BRegistrationController
de.hybris.platform.b2bacceleratoraddon.controllers.secureportal.B2BRegistrationController
@RequestMapping("/register")
public class B2BRegistrationController
extends AbstractB2BRegistrationController
Registration page controller: Handles Get and Post request and dispatches relevant wortkflow facades and necessary
services
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
AbstractController.HttpNotFoundException -
Field Summary
Fields inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractLoginPageController
SPRING_SECURITY_LAST_USERNAMEFields inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractRegisterPageController
CHECKOUT_ORDER_CONFIRMATION_CMS_PAGE_LABEL, consentFacade, 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 B2BRegistrationDataprotected AbstractPageModelprotected StringReturn the name of the cms page to be used for the registration pageprotected org.springframework.validation.Validatorprotected StringReturn the name of the view to be used for the registration pageprotected StringgetSuccessRedirect(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) protected StringgetView()protected voidpopulateModelCmsContent(org.springframework.ui.Model model, ContentPageModel contentPageModel) Method that ensures the model is populated with all required CMS components in order to properly render the registration page.showRegistrationPage(javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model model) submitRegistration(RegistrationForm form, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpSession session, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) Methods inherited from class de.hybris.platform.b2bacceleratoraddon.controllers.secureportal.AbstractB2BRegistrationController
getCountries, getDefaultRegistrationPageMethods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractLoginPageController
getDefaultLoginPageMethods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractRegisterPageController
getAutoLoginStrategy, getDefaultRegistrationPage, getGuidCookieStrategy, getTitles, handleRegistrationError, processAnonymousCheckoutUserRequest, processRegisterUserRequestMethods 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
-
Constructor Details
-
B2BRegistrationController
public B2BRegistrationController()
-
-
Method Details
-
showRegistrationPage
@RequestMapping(method=GET) public String showRegistrationPage(javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model model) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
submitRegistration
@RequestMapping(method=POST) public String submitRegistration(RegistrationForm form, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpSession session, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
convertFormToData
- Parameters:
form- Form data as submitted by user- Returns:
- A DTO object built from the form instance
-
getRegistrationValidator
protected org.springframework.validation.Validator getRegistrationValidator()- Overrides:
getRegistrationValidatorin classAbstractRegisterPageController- Returns:
- the registrationValidator
-
getRegistrationView
Description copied from class:AbstractB2BRegistrationControllerReturn the name of the view to be used for the registration page- Specified by:
getRegistrationViewin classAbstractB2BRegistrationController
-
getRegistrationCmsPage
Description copied from class:AbstractB2BRegistrationControllerReturn the name of the cms page to be used for the registration page- Specified by:
getRegistrationCmsPagein classAbstractB2BRegistrationController
-
populateModelCmsContent
protected void populateModelCmsContent(org.springframework.ui.Model model, ContentPageModel contentPageModel) Description copied from class:AbstractB2BRegistrationControllerMethod that ensures the model is populated with all required CMS components in order to properly render the registration page.- Specified by:
populateModelCmsContentin classAbstractB2BRegistrationController
-
getView
- Specified by:
getViewin classAbstractRegisterPageController
-
getCmsPage
- Specified by:
getCmsPagein classAbstractRegisterPageController- Throws:
CMSItemNotFoundException
-
getSuccessRedirect
protected String getSuccessRedirect(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) - Specified by:
getSuccessRedirectin classAbstractRegisterPageController
-