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.secureportaladdon.controllers.AbstractB2BRegistrationController
-
- de.hybris.platform.secureportaladdon.controllers.B2BRegistrationController
-
@RequestMapping("/register") public class B2BRegistrationController extends AbstractB2BRegistrationControllerRegistration 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_USERNAME
-
Fields inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractRegisterPageController
CHECKOUT_ORDER_CONFIRMATION_CMS_PAGE_LABEL, consentFacade, 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 B2BRegistrationController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected B2BRegistrationDataconvertFormToData(RegistrationForm form)protected AbstractPageModelgetCmsPage()protected java.lang.StringgetRegistrationCmsPage()Return the name of the cms page to be used for the registration pageprotected org.springframework.validation.ValidatorgetRegistrationValidator()protected java.lang.StringgetRegistrationView()Return the name of the view to be used for the registration pageprotected java.lang.StringgetSuccessRedirect(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)protected java.lang.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.java.lang.StringshowRegistrationPage(javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model model)java.lang.StringsubmitRegistration(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.secureportaladdon.controllers.AbstractB2BRegistrationController
getCountries, getDefaultRegistrationPage
-
Methods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractLoginPageController
getDefaultLoginPage
-
Methods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractRegisterPageController
getAutoLoginStrategy, getDefaultRegistrationPage, getGuidCookieStrategy, getTitles, handleRegistrationError, processAnonymousCheckoutUserRequest, processRegisterUserRequest
-
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
-
-
-
-
Method Detail
-
showRegistrationPage
@RequestMapping(method=GET) public java.lang.String showRegistrationPage(javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model model) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
submitRegistration
@RequestMapping(method=POST) public java.lang.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
protected B2BRegistrationData convertFormToData(RegistrationForm form)
- 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
protected java.lang.String getRegistrationView()
Description copied from class:AbstractB2BRegistrationControllerReturn the name of the view to be used for the registration page- Specified by:
getRegistrationViewin classAbstractB2BRegistrationController
-
getRegistrationCmsPage
protected java.lang.String 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
protected java.lang.String getView()
- Specified by:
getViewin classAbstractRegisterPageController
-
getCmsPage
protected AbstractPageModel getCmsPage() throws CMSItemNotFoundException
- Specified by:
getCmsPagein classAbstractRegisterPageController- Throws:
CMSItemNotFoundException
-
getSuccessRedirect
protected java.lang.String getSuccessRedirect(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)- Specified by:
getSuccessRedirectin classAbstractRegisterPageController
-
-