public class AccountPageController
extends AbstractSearchPageController
| Modifier and Type | Field and Description |
|---|---|
protected CustomerConsentDataStrategy |
customerConsentDataStrategy |
| Constructor and Description |
|---|
AccountPageController() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
account(Model model,
RedirectAttributes redirectModel) |
java.lang.String |
addAddress(AddressForm addressForm,
BindingResult bindingResult,
Model model,
RedirectAttributes redirectModel) |
java.lang.String |
addAddress(Model model) |
void |
closeAccount(HttpServletRequest request) |
java.lang.String |
consentManagement(Model model) |
java.lang.String |
doSelectSuggestedAddress(AddressForm addressForm,
RedirectAttributes redirectModel) |
java.lang.String |
editAddress(AddressForm addressForm,
BindingResult bindingResult,
Model model,
RedirectAttributes redirectModel) |
java.lang.String |
editAddress(java.lang.String addressCode,
Model model) |
java.lang.String |
editEmail(Model model) |
java.lang.String |
editProfile(Model model) |
protected TitleData |
findTitleForCode(java.util.List<TitleData> titles,
java.lang.String code) |
java.lang.String |
getAddressBook(Model model) |
protected AddressValidator |
getAddressValidator() |
protected AddressVerificationFacade |
getAddressVerificationFacade() |
protected AddressVerificationResultHandler |
getAddressVerificationResultHandler() |
java.util.Collection<CountryData> |
getCountries() |
java.lang.String |
getCountryAddressForm(java.lang.String addressCode,
java.lang.String countryIsoCode,
Model model) |
java.util.Map<java.lang.String,CountryData> |
getCountryDataMap() |
protected EmailValidator |
getEmailValidator() |
protected I18NFacade |
getI18NFacade() |
protected PasswordValidator |
getPasswordValidator() |
protected AddressForm |
getPreparedAddressForm() |
java.lang.String |
getProductVariantMatrixForResponsive(java.lang.String orderCode,
java.lang.String productCode,
Model model) |
protected ProfileValidator |
getProfileValidator() |
java.util.Collection<TitleData> |
getTitles() |
java.lang.String |
giveConsent(java.lang.String consentTemplateId,
java.lang.Integer version,
RedirectAttributes redirectModel) |
java.lang.String |
order(java.lang.String orderCode,
Model model,
RedirectAttributes redirectModel) |
java.lang.String |
orders(int page,
ShowMode showMode,
java.lang.String sortCode,
Model model) |
java.lang.String |
paymentDetails(Model model) |
protected void |
populateModelRegionAndCountry(Model model,
java.lang.String countryIsoCode) |
java.lang.String |
profile(Model model) |
java.lang.String |
removeAddress(java.lang.String addressCode,
RedirectAttributes redirectModel) |
java.lang.String |
removePaymentMethod(java.lang.String paymentMethodId,
RedirectAttributes redirectAttributes) |
java.lang.String |
setDefaultAddress(java.lang.String addressCode,
RedirectAttributes redirectModel) |
java.lang.String |
setDefaultPaymentDetails(java.lang.String paymentInfoId) |
protected java.lang.String |
setErrorMessagesAndCMSPage(Model model,
java.lang.String cmsPageLabelOrId) |
protected void |
setUpAddressFormAfterError(AddressForm addressForm,
Model model) |
java.lang.String |
showCloseAccountPage(Model model) |
java.lang.String |
updateEmail(UpdateEmailForm updateEmailForm,
BindingResult bindingResult,
Model model,
RedirectAttributes redirectAttributes) |
java.lang.String |
updatePassword(Model model) |
java.lang.String |
updatePassword(UpdatePasswordForm updatePasswordForm,
BindingResult bindingResult,
Model model,
RedirectAttributes redirectAttributes) |
java.lang.String |
updateProfile(UpdateProfileForm updateProfileForm,
BindingResult bindingResult,
Model model,
RedirectAttributes redirectAttributes) |
java.lang.String |
withdrawConsent(java.lang.String consentCode,
RedirectAttributes redirectModel) |
protected CustomerConsentDataStrategy customerConsentDataStrategy
protected PasswordValidator getPasswordValidator()
protected AddressValidator getAddressValidator()
protected ProfileValidator getProfileValidator()
protected EmailValidator getEmailValidator()
protected I18NFacade getI18NFacade()
protected AddressVerificationFacade getAddressVerificationFacade()
protected AddressVerificationResultHandler getAddressVerificationResultHandler()
public java.util.Collection<CountryData> getCountries()
public java.util.Collection<TitleData> getTitles()
public java.util.Map<java.lang.String,CountryData> getCountryDataMap()
public java.lang.String getCountryAddressForm(java.lang.String addressCode,
java.lang.String countryIsoCode,
Model model)
protected void populateModelRegionAndCountry(Model model,
java.lang.String countryIsoCode)
public java.lang.String account(Model model,
RedirectAttributes redirectModel)
throws CMSItemNotFoundException
CMSItemNotFoundExceptionpublic java.lang.String orders(int page,
ShowMode showMode,
java.lang.String sortCode,
Model model)
throws CMSItemNotFoundException
CMSItemNotFoundExceptionpublic java.lang.String order(java.lang.String orderCode,
Model model,
RedirectAttributes redirectModel)
throws CMSItemNotFoundException
CMSItemNotFoundExceptionpublic java.lang.String getProductVariantMatrixForResponsive(java.lang.String orderCode,
java.lang.String productCode,
Model model)
public java.lang.String profile(Model model)
throws CMSItemNotFoundException
CMSItemNotFoundExceptionprotected TitleData findTitleForCode(java.util.List<TitleData> titles, java.lang.String code)
public java.lang.String editEmail(Model model)
throws CMSItemNotFoundException
CMSItemNotFoundExceptionpublic java.lang.String updateEmail(UpdateEmailForm updateEmailForm,
BindingResult bindingResult,
Model model,
RedirectAttributes redirectAttributes)
throws CMSItemNotFoundException
CMSItemNotFoundExceptionprotected java.lang.String setErrorMessagesAndCMSPage(Model model,
java.lang.String cmsPageLabelOrId)
throws CMSItemNotFoundException
CMSItemNotFoundExceptionpublic java.lang.String editProfile(Model model)
throws CMSItemNotFoundException
CMSItemNotFoundExceptionpublic java.lang.String updateProfile(UpdateProfileForm updateProfileForm,
BindingResult bindingResult,
Model model,
RedirectAttributes redirectAttributes)
throws CMSItemNotFoundException
CMSItemNotFoundExceptionpublic java.lang.String updatePassword(Model model)
throws CMSItemNotFoundException
CMSItemNotFoundExceptionpublic java.lang.String updatePassword(UpdatePasswordForm updatePasswordForm,
BindingResult bindingResult,
Model model,
RedirectAttributes redirectAttributes)
throws CMSItemNotFoundException
CMSItemNotFoundExceptionpublic java.lang.String getAddressBook(Model model)
throws CMSItemNotFoundException
CMSItemNotFoundExceptionpublic java.lang.String addAddress(Model model)
throws CMSItemNotFoundException
CMSItemNotFoundExceptionprotected AddressForm getPreparedAddressForm()
public java.lang.String addAddress(AddressForm addressForm,
BindingResult bindingResult,
Model model,
RedirectAttributes redirectModel)
throws CMSItemNotFoundException
CMSItemNotFoundExceptionprotected void setUpAddressFormAfterError(AddressForm addressForm,
Model model)
public java.lang.String editAddress(java.lang.String addressCode,
Model model)
throws CMSItemNotFoundException
CMSItemNotFoundExceptionpublic java.lang.String editAddress(AddressForm addressForm,
BindingResult bindingResult,
Model model,
RedirectAttributes redirectModel)
throws CMSItemNotFoundException
CMSItemNotFoundExceptionpublic java.lang.String doSelectSuggestedAddress(AddressForm addressForm,
RedirectAttributes redirectModel)
public java.lang.String removeAddress(java.lang.String addressCode,
RedirectAttributes redirectModel)
public java.lang.String setDefaultAddress(java.lang.String addressCode,
RedirectAttributes redirectModel)
public java.lang.String paymentDetails(Model model)
throws CMSItemNotFoundException
CMSItemNotFoundExceptionpublic java.lang.String setDefaultPaymentDetails(java.lang.String paymentInfoId)
public java.lang.String removePaymentMethod(java.lang.String paymentMethodId,
RedirectAttributes redirectAttributes)
throws CMSItemNotFoundException
CMSItemNotFoundExceptionpublic java.lang.String consentManagement(Model model)
throws CMSItemNotFoundException
CMSItemNotFoundExceptionpublic java.lang.String giveConsent(java.lang.String consentTemplateId,
java.lang.Integer version,
RedirectAttributes redirectModel)
public java.lang.String withdrawConsent(java.lang.String consentCode,
RedirectAttributes redirectModel)
throws CMSItemNotFoundException
CMSItemNotFoundExceptionpublic java.lang.String showCloseAccountPage(Model model)
throws CMSItemNotFoundException
CMSItemNotFoundExceptionpublic void closeAccount(HttpServletRequest request)
throws CMSItemNotFoundException,
ServletException
CMSItemNotFoundExceptionServletExceptionCopyright © 2018 SAP SE. All Rights Reserved.