Class AccountPageController
- java.lang.Object
-
- de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
-
- de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractPageController
-
- de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractSearchPageController
-
- de.hybris.platform.yacceleratorstorefront.controllers.pages.AccountPageController
-
@Controller @RequestMapping("/my-account") public class AccountPageController extends AbstractSearchPageControllerController for home page
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractSearchPageController
AbstractSearchPageController.SearchResultsData<RESULT>, AbstractSearchPageController.ShowMode
-
Nested classes/interfaces inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
AbstractController.HttpNotFoundException
-
-
Field Summary
Fields Modifier and Type Field Description protected CustomerConsentDataStrategycustomerConsentDataStrategy-
Fields inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractSearchPageController
MAX_PAGE_LIMIT
-
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 AccountPageController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringaccount(org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)java.lang.StringaddAddress(AddressForm addressForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)java.lang.StringaddAddress(org.springframework.ui.Model model)voidcloseAccount(javax.servlet.http.HttpServletRequest request)java.lang.StringconsentManagement(org.springframework.ui.Model model)java.lang.StringdoSelectSuggestedAddress(AddressForm addressForm, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)java.lang.StringeditAddress(AddressForm addressForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)java.lang.StringeditAddress(java.lang.String addressCode, org.springframework.ui.Model model)java.lang.StringeditEmail(org.springframework.ui.Model model)java.lang.StringeditProfile(org.springframework.ui.Model model)protected TitleDatafindTitleForCode(java.util.List<TitleData> titles, java.lang.String code)java.lang.StringgetAddressBook(org.springframework.ui.Model model)protected AddressValidatorgetAddressValidator()protected AddressVerificationFacadegetAddressVerificationFacade()protected AddressVerificationResultHandlergetAddressVerificationResultHandler()java.util.Collection<CountryData>getCountries()java.lang.StringgetCountryAddressForm(java.lang.String addressCode, java.lang.String countryIsoCode, org.springframework.ui.Model model)java.util.Map<java.lang.String,CountryData>getCountryDataMap()protected EmailValidatorgetEmailValidator()protected I18NFacadegetI18NFacade()protected PasswordValidatorgetPasswordValidator()protected AddressFormgetPreparedAddressForm()java.lang.StringgetProductVariantMatrixForResponsive(java.lang.String orderCode, java.lang.String productCode, org.springframework.ui.Model model)protected ProfileValidatorgetProfileValidator()java.util.Collection<TitleData>getTitles()java.lang.StringgiveConsent(java.lang.String consentTemplateId, java.lang.Integer version, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)java.lang.Stringorder(java.lang.String orderCode, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)java.lang.Stringorders(int page, AbstractSearchPageController.ShowMode showMode, java.lang.String sortCode, org.springframework.ui.Model model)java.lang.StringpaymentDetails(org.springframework.ui.Model model)protected voidpopulateModelRegionAndCountry(org.springframework.ui.Model model, java.lang.String countryIsoCode)java.lang.Stringprofile(org.springframework.ui.Model model)java.lang.StringremoveAddress(java.lang.String addressCode, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)java.lang.StringremovePaymentMethod(java.lang.String paymentMethodId, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)java.lang.StringsetDefaultAddress(java.lang.String addressCode, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)java.lang.StringsetDefaultPaymentDetails(java.lang.String paymentInfoId)protected java.lang.StringsetErrorMessagesAndCMSPage(org.springframework.ui.Model model, java.lang.String cmsPageLabelOrId)protected voidsetUpAddressFormAfterError(AddressForm addressForm, org.springframework.ui.Model model)java.lang.StringshowCloseAccountPage(org.springframework.ui.Model model)java.lang.StringupdateEmail(UpdateEmailForm updateEmailForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)java.lang.StringupdatePassword(UpdatePasswordForm updatePasswordForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)java.lang.StringupdatePassword(org.springframework.ui.Model model)java.lang.StringupdateProfile(UpdateProfileForm updateProfileForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)java.lang.StringwithdrawConsent(java.lang.String consentCode, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)-
Methods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractSearchPageController
calculateShowAll, calculateShowPaged, convertBreadcrumbsToFacets, createEmptyPagination, createPageableData, encodeSearchPageData, existsFacetValueWithName, getMaxSearchPageSize, getSearchPageSize, isShowAllAllowed, populateModel, processFacetData, processFacetDatas, refineFacets
-
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
-
-
-
-
Field Detail
-
customerConsentDataStrategy
protected CustomerConsentDataStrategy customerConsentDataStrategy
-
-
Method Detail
-
getPasswordValidator
protected PasswordValidator getPasswordValidator()
-
getAddressValidator
protected AddressValidator getAddressValidator()
-
getProfileValidator
protected ProfileValidator getProfileValidator()
-
getEmailValidator
protected EmailValidator getEmailValidator()
-
getI18NFacade
protected I18NFacade getI18NFacade()
-
getAddressVerificationFacade
protected AddressVerificationFacade getAddressVerificationFacade()
-
getAddressVerificationResultHandler
protected AddressVerificationResultHandler getAddressVerificationResultHandler()
-
getCountries
@ModelAttribute("countries") public java.util.Collection<CountryData> getCountries()
-
getTitles
@ModelAttribute("titles") public java.util.Collection<TitleData> getTitles()
-
getCountryDataMap
@ModelAttribute("countryDataMap") public java.util.Map<java.lang.String,CountryData> getCountryDataMap()
-
getCountryAddressForm
@RequestMapping(value="/addressform", method=GET) public java.lang.String getCountryAddressForm(@RequestParam("addressCode") java.lang.String addressCode, @RequestParam("countryIsoCode") java.lang.String countryIsoCode, org.springframework.ui.Model model)
-
populateModelRegionAndCountry
protected void populateModelRegionAndCountry(org.springframework.ui.Model model, java.lang.String countryIsoCode)
-
account
@RequestMapping(method=GET) public java.lang.String account(org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
orders
@RequestMapping(value="/orders", method=GET) public java.lang.String orders(@RequestParam(value="page",defaultValue="0") int page, @RequestParam(value="show",defaultValue="Page") AbstractSearchPageController.ShowMode showMode, @RequestParam(value="sort",required=false) java.lang.String sortCode, org.springframework.ui.Model model) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
order
@RequestMapping(value="/order/{orderCode:.*}", method=GET) public java.lang.String order(@PathVariable("orderCode") java.lang.String orderCode, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
getProductVariantMatrixForResponsive
@RequestMapping(value="/order/{orderCode:.*}/getReadOnlyProductVariantMatrix", method=GET) public java.lang.String getProductVariantMatrixForResponsive(@PathVariable("orderCode") java.lang.String orderCode, @RequestParam("productCode") java.lang.String productCode, org.springframework.ui.Model model)
-
profile
@RequestMapping(value="/profile", method=GET) public java.lang.String profile(org.springframework.ui.Model model) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
findTitleForCode
protected TitleData findTitleForCode(java.util.List<TitleData> titles, java.lang.String code)
-
editEmail
@RequestMapping(value="/update-email", method=GET) public java.lang.String editEmail(org.springframework.ui.Model model) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
updateEmail
@RequestMapping(value="/update-email", method=POST) public java.lang.String updateEmail(UpdateEmailForm updateEmailForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
setErrorMessagesAndCMSPage
protected java.lang.String setErrorMessagesAndCMSPage(org.springframework.ui.Model model, java.lang.String cmsPageLabelOrId) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
editProfile
@RequestMapping(value="/update-profile", method=GET) public java.lang.String editProfile(org.springframework.ui.Model model) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
updateProfile
@RequestMapping(value="/update-profile", method=POST) public java.lang.String updateProfile(UpdateProfileForm updateProfileForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
updatePassword
@RequestMapping(value="/update-password", method=GET) public java.lang.String updatePassword(org.springframework.ui.Model model) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
updatePassword
@RequestMapping(value="/update-password", method=POST) public java.lang.String updatePassword(UpdatePasswordForm updatePasswordForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
getAddressBook
@RequestMapping(value="/address-book", method=GET) public java.lang.String getAddressBook(org.springframework.ui.Model model) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
addAddress
@RequestMapping(value="/add-address", method=GET) public java.lang.String addAddress(org.springframework.ui.Model model) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
getPreparedAddressForm
protected AddressForm getPreparedAddressForm()
-
addAddress
@RequestMapping(value="/add-address", method=POST) public java.lang.String addAddress(AddressForm addressForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
setUpAddressFormAfterError
protected void setUpAddressFormAfterError(AddressForm addressForm, org.springframework.ui.Model model)
-
editAddress
@RequestMapping(value="/edit-address/{addressCode:.*}", method=GET) public java.lang.String editAddress(@PathVariable("addressCode") java.lang.String addressCode, org.springframework.ui.Model model) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
editAddress
@RequestMapping(value="/edit-address/{addressCode:.*}", method=POST) public java.lang.String editAddress(AddressForm addressForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
doSelectSuggestedAddress
@RequestMapping(value="/select-suggested-address", method=POST) public java.lang.String doSelectSuggestedAddress(AddressForm addressForm, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)
-
removeAddress
@RequestMapping(value="/remove-address/{addressCode:.*}", method={GET,POST}) public java.lang.String removeAddress(@PathVariable("addressCode") java.lang.String addressCode, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)
-
setDefaultAddress
@RequestMapping(value="/set-default-address/{addressCode:.*}", method=GET) public java.lang.String setDefaultAddress(@PathVariable("addressCode") java.lang.String addressCode, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)
-
paymentDetails
@RequestMapping(value="/payment-details", method=GET) public java.lang.String paymentDetails(org.springframework.ui.Model model) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
setDefaultPaymentDetails
@RequestMapping(value="/set-default-payment-details", method=POST) public java.lang.String setDefaultPaymentDetails(@RequestParam java.lang.String paymentInfoId)
-
removePaymentMethod
@RequestMapping(value="/remove-payment-method", method=POST) public java.lang.String removePaymentMethod(@RequestParam("paymentInfoId") java.lang.String paymentMethodId, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
consentManagement
@RequestMapping(value="/consents", method=GET) public java.lang.String consentManagement(org.springframework.ui.Model model) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
giveConsent
@RequestMapping(value="/consents/give/{consentTemplateId}/{version}", method=POST) public java.lang.String giveConsent(@PathVariable java.lang.String consentTemplateId, @PathVariable java.lang.Integer version, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)
-
withdrawConsent
@RequestMapping(value="/consents/withdraw/{consentCode}", method=POST) public java.lang.String withdrawConsent(@PathVariable java.lang.String consentCode, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
showCloseAccountPage
@RequestMapping(value="/close-account", method=GET) public java.lang.String showCloseAccountPage(org.springframework.ui.Model model) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
closeAccount
@RequestMapping(value="/close-account", method=POST) @ResponseStatus(OK) public void closeAccount(javax.servlet.http.HttpServletRequest request) throws CMSItemNotFoundException, javax.servlet.ServletException- Throws:
CMSItemNotFoundExceptionjavax.servlet.ServletException
-
-