@Controller @RequestMapping("/my-account") public class AccountPageController extends AbstractSearchPageController
Controller for home page
  • Field Details

  • Constructor Details

    • AccountPageController

      public AccountPageController()
  • Method Details

    • 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 Collection<CountryData> getCountries()
    • getTitles

      @ModelAttribute("titles") public Collection<TitleData> getTitles()
    • getCountryDataMap

      @ModelAttribute("countryDataMap") public Map<String,CountryData> getCountryDataMap()
    • getCountryAddressForm

      @RequestMapping(value="/addressform", method=GET) public String getCountryAddressForm(@RequestParam("addressCode") String addressCode, @RequestParam("countryIsoCode") String countryIsoCode, org.springframework.ui.Model model)
    • 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

      @RequestMapping(value="/order/{orderCode:.*}/getReadOnlyProductVariantMatrix", method=GET) public String getProductVariantMatrixForResponsive(@PathVariable("orderCode") String orderCode, @RequestParam("productCode") String productCode, org.springframework.ui.Model model)
    • profile

      @RequestMapping(value="/profile", method=GET) public String profile(org.springframework.ui.Model model) throws CMSItemNotFoundException
      Throws:
      CMSItemNotFoundException
    • findTitleForCode

      protected TitleData findTitleForCode(List<TitleData> titles, String code)
    • 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

      protected AddressForm 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

      @PostMapping("/remove-address/{addressCode:.*}") public String removeAddress(@PathVariable("addressCode") String addressCode, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)
    • setDefaultAddress

      @RequestMapping(value="/set-default-address/{addressCode:.*}", method=GET) public String setDefaultAddress(@PathVariable("addressCode") String addressCode, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)
    • paymentDetails

      @RequestMapping(value="/payment-details", method=GET) public String paymentDetails(org.springframework.ui.Model model) throws CMSItemNotFoundException
      Throws:
      CMSItemNotFoundException
    • setDefaultPaymentDetails

      @RequestMapping(value="/set-default-payment-details", method=POST) public String setDefaultPaymentDetails(@RequestParam String paymentInfoId)
    • 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

      @RequestMapping(value="/consents/give/{consentTemplateId}/{version}", method=POST) public String giveConsent(@PathVariable String consentTemplateId, @PathVariable Integer version, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)
    • 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:
      CMSItemNotFoundException
      javax.servlet.ServletException