Class AccountPageController

    • Constructor Detail

      • AccountPageController

        public AccountPageController()
    • Method Detail

      • getI18NFacade

        protected I18NFacade getI18NFacade()
      • 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
      • 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)
      • findTitleForCode

        protected TitleData findTitleForCode​(java.util.List<TitleData> titles,
                                             java.lang.String code)
      • 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
      • 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=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
      • 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)
      • 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
      • 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
      • 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