Class PasswordResetPageController
- java.lang.Object
-
- de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
-
- de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractPageController
-
- de.hybris.platform.yacceleratorstorefront.controllers.pages.PasswordResetPageController
-
@Controller @RequestMapping("/login/pw") public class PasswordResetPageController extends AbstractPageControllerController for the forgotten password pages. Supports requesting a password reset email as well as changing the password once you have got the token that was sent via email.
-
-
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_8
-
Fields inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
FORWARD_PREFIX, REDIRECT_PREFIX, ROOT
-
-
Constructor Summary
Constructors Constructor Description PasswordResetPageController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringchangePassword(@Valid UpdatePwdForm form, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)java.lang.StringexternalPasswordRequest(@Valid ForgottenPwdForm form, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)java.lang.StringgetChangePassword(java.lang.String token, org.springframework.ui.Model model)java.lang.StringgetExternalPasswordRequest(org.springframework.ui.Model model)java.lang.StringgetExternalPasswordRequestConf(org.springframework.ui.Model model)java.lang.StringgetPasswordRequest(org.springframework.ui.Model model)UpdatePasswordFormValidatorgetUpdatePasswordFormValidator()java.lang.StringpasswordRequest(@Valid ForgottenPwdForm form, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model)protected voidprepareErrorMessage(org.springframework.ui.Model model, java.lang.String page)Prepares the view to display an error message-
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
-
getPasswordRequest
@RequestMapping(value="/request", method=GET) public java.lang.String getPasswordRequest(org.springframework.ui.Model model) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
passwordRequest
@RequestMapping(value="/request", method=POST) public java.lang.String passwordRequest(@Valid @Valid ForgottenPwdForm form, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
getExternalPasswordRequest
@RequestMapping(value="/request/external", method=GET) public java.lang.String getExternalPasswordRequest(org.springframework.ui.Model model) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
getExternalPasswordRequestConf
@RequestMapping(value="/request/external/conf", method=GET) public java.lang.String getExternalPasswordRequestConf(org.springframework.ui.Model model) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
externalPasswordRequest
@RequestMapping(value="/request/external", method=POST) public java.lang.String externalPasswordRequest(@Valid @Valid ForgottenPwdForm form, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
getChangePassword
@RequestMapping(value="/change", method=GET) public java.lang.String getChangePassword(@RequestParam(required=false) java.lang.String token, org.springframework.ui.Model model) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
changePassword
@RequestMapping(value="/change", method=POST) public java.lang.String changePassword(@Valid @Valid UpdatePwdForm form, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
prepareErrorMessage
protected void prepareErrorMessage(org.springframework.ui.Model model, java.lang.String page) throws CMSItemNotFoundExceptionPrepares the view to display an error message- Throws:
CMSItemNotFoundException
-
getUpdatePasswordFormValidator
public UpdatePasswordFormValidator getUpdatePasswordFormValidator()
-
-