Class ChineseAccountPageController


  • @Controller
    @Scope("tenant")
    @RequestMapping("/my-account")
    public class ChineseAccountPageController
    extends AccountPageController
    • Constructor Detail

      • ChineseAccountPageController

        public ChineseAccountPageController()
    • Method Detail

      • initBinder

        @InitBinder
        public void initBinder​(org.springframework.web.bind.WebDataBinder binder)
      • getCountryAddressForm

        @RequestMapping(value="/addressform",
                        method=GET)
        public java.lang.String getCountryAddressForm​(@RequestParam("addressCode")
                                                      java.lang.String addressCode,
                                                      @RequestParam("countryIsoCode")
                                                      java.lang.String country,
                                                      org.springframework.ui.Model model)
        Overrides:
        getCountryAddressForm in class AccountPageController
      • addAddress

        @RequestMapping(value="/add-address",
                        method=POST,
                        params="countryIso=CN")
        public java.lang.String addAddress​(@ModelAttribute("addressForm")
                                           ChineseAddressForm addressForm,
                                           org.springframework.validation.BindingResult bindingResult,
                                           org.springframework.ui.Model model,
                                           org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)
                                    throws CMSItemNotFoundException
        Throws:
        CMSItemNotFoundException
      • editAddress

        @RequestMapping(value="/edit-address/{addressCode:.*}",
                        method=POST,
                        params="countryIso=CN")
        public java.lang.String editAddress​(@ModelAttribute("addressForm")
                                            ChineseAddressForm addressForm,
                                            org.springframework.validation.BindingResult bindingResult,
                                            org.springframework.ui.Model model,
                                            org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)
                                     throws CMSItemNotFoundException
        Throws:
        CMSItemNotFoundException
      • prepareModel

        protected void prepareModel​(ChineseAddressForm addressForm,
                                    org.springframework.ui.Model model)