Class ChineseMobileBindingController
java.lang.Object
de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractPageController
de.hybris.platform.chineseprofile.controllers.pages.ChineseMobileBindingController
@Controller
@Scope("tenant")
@RequestMapping("/mobile")
public class ChineseMobileBindingController
extends AbstractPageController
Handle customer's mobile number binding.
-
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.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, ROOT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbindMobileAfterRegister(org.springframework.ui.Model model, VerificationCodeForm form) bindMobileAfterRegister(org.springframework.ui.Model model, VerificationCodeForm form, org.springframework.validation.BindingResult bindingResult, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) bindMobileNumber(org.springframework.ui.Model model, VerificationCodeForm form) bindMobileNumber(org.springframework.ui.Model model, VerificationCodeForm form, org.springframework.validation.BindingResult bindingResult, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) voidinitBinder(org.springframework.web.bind.WebDataBinder binder) protected voidpopulateAttributes(org.springframework.ui.Model model) Populate some common data.verifyMobile(org.springframework.ui.Model model, VerificationCodeForm verificationCodeForm) verifyMobile(org.springframework.ui.Model model, VerificationCodeForm verificationCodeForm, org.springframework.validation.BindingResult bindingResult, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) 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
-
Constructor Details
-
ChineseMobileBindingController
public ChineseMobileBindingController()
-
-
Method Details
-
initBinder
@InitBinder public void initBinder(org.springframework.web.bind.WebDataBinder binder) -
bindMobileNumber
@RequestMapping(value="/binding", method=POST) public String bindMobileNumber(org.springframework.ui.Model model, VerificationCodeForm form) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
bindMobileNumber
@RequestMapping(value="/bind", method=POST) public String bindMobileNumber(org.springframework.ui.Model model, VerificationCodeForm form, org.springframework.validation.BindingResult bindingResult, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
bindMobileAfterRegister
@RequestMapping(value="/register/bind", method=GET) public String bindMobileAfterRegister(org.springframework.ui.Model model, VerificationCodeForm form) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
bindMobileAfterRegister
@RequestMapping(value="/register/bind", method=POST) public String bindMobileAfterRegister(org.springframework.ui.Model model, VerificationCodeForm form, org.springframework.validation.BindingResult bindingResult, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
verifyMobile
@RequestMapping(value="/unbind", method=GET) public String verifyMobile(org.springframework.ui.Model model, VerificationCodeForm verificationCodeForm) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
verifyMobile
@RequestMapping(value="/unbind", method=POST) public String verifyMobile(org.springframework.ui.Model model, VerificationCodeForm verificationCodeForm, org.springframework.validation.BindingResult bindingResult, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
populateAttributes
protected void populateAttributes(org.springframework.ui.Model model) throws CMSItemNotFoundException Populate some common data.- Throws:
CMSItemNotFoundException
-