Class ChineseBusinessUnitManagementPageController


@Controller @Scope("tenant") @RequestMapping("/my-company/organization-management/manage-units") public class ChineseBusinessUnitManagementPageController extends AbstractPageController
Process the request for adding and editing Chinese address for units
  • Field Details

  • Constructor Details

    • ChineseBusinessUnitManagementPageController

      public ChineseBusinessUnitManagementPageController()
  • Method Details

    • getI18NFacade

      public I18NFacade getI18NFacade()
      Returns:
      the i18NFacade
    • initBinder

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

      @RequestMapping(value="/addressform", method=GET) public String getCountryAddressForm(@RequestParam(value="addressCode",required=false) String addressCode, @RequestParam(value="unit",required=false) String unit, @RequestParam("countryIsoCode") String countryIsoCode, org.springframework.ui.Model model)
    • addAddress

      @RequestMapping(value="/add-address", method=POST, params="countryIso=CN") public String addAddress(@RequestParam("unit") String unit, @ModelAttribute("addressForm") ChineseUnitAddressForm 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", method=POST, params="countryIso=CN") public String editAddress(@RequestParam("unit") String unit, @RequestParam("addressId") String addressId, @ModelAttribute("addressForm") ChineseUnitAddressForm 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", method=GET, params="countryIso=CN") public String editAddress(@RequestParam("unit") String unit, @RequestParam("addressId") String addressId, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws CMSItemNotFoundException
      Throws:
      CMSItemNotFoundException
    • getAddressData

      @RequestMapping(value="/formataddress", method=GET) public String getAddressData(@RequestParam("unit") String unit, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws CMSItemNotFoundException
      Throws:
      CMSItemNotFoundException
    • prepareModelAndViewAfterError

      protected String prepareModelAndViewAfterError(org.springframework.ui.Model model, ChineseUnitAddressForm addressForm, String unit, String addressId) throws CMSItemNotFoundException
      Throws:
      CMSItemNotFoundException