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 AbstractSearchPageController
Controller for home page
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractSearchPageController
AbstractSearchPageController.SearchResultsData<RESULT>, AbstractSearchPageController.ShowModeNested classes/interfaces inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
AbstractController.HttpNotFoundException -
Field Summary
FieldsFields inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractSearchPageController
MAX_PAGE_LIMITFields 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 TypeMethodDescriptionaccount(org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) addAddress(AddressForm addressForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) addAddress(org.springframework.ui.Model model) voidcloseAccount(javax.servlet.http.HttpServletRequest request) consentManagement(org.springframework.ui.Model model) doSelectSuggestedAddress(AddressForm addressForm, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) editAddress(AddressForm addressForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) editAddress(String addressCode, org.springframework.ui.Model model) editEmail(org.springframework.ui.Model model) editProfile(org.springframework.ui.Model model) protected TitleDatafindTitleForCode(List<TitleData> titles, String code) getAddressBook(org.springframework.ui.Model model) protected AddressValidatorprotected AddressVerificationFacadeprotected AddressVerificationResultHandlergetCountryAddressForm(String addressCode, String countryIsoCode, org.springframework.ui.Model model) protected EmailValidatorprotected I18NFacadeprotected PasswordValidatorprotected AddressFormgetProductVariantMatrixForResponsive(String orderCode, String productCode, org.springframework.ui.Model model) protected ProfileValidatorgiveConsent(String consentTemplateId, Integer version, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) order(String orderCode, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) orders(int page, AbstractSearchPageController.ShowMode showMode, String sortCode, org.springframework.ui.Model model) paymentDetails(org.springframework.ui.Model model) protected voidpopulateModelRegionAndCountry(org.springframework.ui.Model model, String countryIsoCode) profile(org.springframework.ui.Model model) removeAddress(String addressCode, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) removePaymentMethod(String paymentMethodId, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) setDefaultAddress(String addressCode, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) setDefaultPaymentDetails(String paymentInfoId) protected StringsetErrorMessagesAndCMSPage(org.springframework.ui.Model model, String cmsPageLabelOrId) protected voidsetUpAddressFormAfterError(AddressForm addressForm, org.springframework.ui.Model model) showCloseAccountPage(org.springframework.ui.Model model) updateEmail(UpdateEmailForm updateEmailForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) updatePassword(UpdatePasswordForm updatePasswordForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) updatePassword(org.springframework.ui.Model model) updateProfile(UpdateProfileForm updateProfileForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) withdrawConsent(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, refineFacetsMethods 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
-
Field Details
-
customerConsentDataStrategy
-
-
Constructor Details
-
AccountPageController
public AccountPageController()
-
-
Method Details
-
getPasswordValidator
-
getAddressValidator
-
getProfileValidator
-
getEmailValidator
-
getI18NFacade
-
getAddressVerificationFacade
-
getAddressVerificationResultHandler
-
getCountries
-
getTitles
-
getCountryDataMap
-
getCountryAddressForm
-
populateModelRegionAndCountry
protected void populateModelRegionAndCountry(org.springframework.ui.Model model, String countryIsoCode) -
account
@RequestMapping(method=GET) public 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 String orders(@RequestParam(value="page",defaultValue="0") int page, @RequestParam(value="show",defaultValue="Page") AbstractSearchPageController.ShowMode showMode, @RequestParam(value="sort",required=false) String sortCode, org.springframework.ui.Model model) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
order
@RequestMapping(value="/order/{orderCode:.*}", method=GET) public String order(@PathVariable("orderCode") String orderCode, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
getProductVariantMatrixForResponsive
-
profile
@RequestMapping(value="/profile", method=GET) public String profile(org.springframework.ui.Model model) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
findTitleForCode
-
editEmail
@RequestMapping(value="/update-email", method=GET) public String editEmail(org.springframework.ui.Model model) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
updateEmail
@RequestMapping(value="/update-email", method=POST) public 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 String setErrorMessagesAndCMSPage(org.springframework.ui.Model model, String cmsPageLabelOrId) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
editProfile
@RequestMapping(value="/update-profile", method=GET) public String editProfile(org.springframework.ui.Model model) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
updateProfile
@RequestMapping(value="/update-profile", method=POST) public 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 String updatePassword(org.springframework.ui.Model model) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
updatePassword
@RequestMapping(value="/update-password", method=POST) public 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 String getAddressBook(org.springframework.ui.Model model) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
addAddress
@RequestMapping(value="/add-address", method=GET) public String addAddress(org.springframework.ui.Model model) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
getPreparedAddressForm
-
addAddress
@RequestMapping(value="/add-address", method=POST) public 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 String editAddress(@PathVariable("addressCode") String addressCode, org.springframework.ui.Model model) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
editAddress
@RequestMapping(value="/edit-address/{addressCode:.*}", method=POST) public 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 String doSelectSuggestedAddress(AddressForm addressForm, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) -
removeAddress
-
setDefaultAddress
-
paymentDetails
@RequestMapping(value="/payment-details", method=GET) public String paymentDetails(org.springframework.ui.Model model) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
setDefaultPaymentDetails
-
removePaymentMethod
@RequestMapping(value="/remove-payment-method", method=POST) public String removePaymentMethod(@RequestParam("paymentInfoId") String paymentMethodId, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
consentManagement
@RequestMapping(value="/consents", method=GET) public String consentManagement(org.springframework.ui.Model model) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
giveConsent
-
withdrawConsent
@RequestMapping(value="/consents/withdraw/{consentCode}", method=POST) public String withdrawConsent(@PathVariable String consentCode, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
showCloseAccountPage
@RequestMapping(value="/close-account", method=GET) public 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
-