Class BusinessUnitManagementPageController


  • @Controller
    @RequestMapping("/my-company/organization-management/manage-units")
    public class BusinessUnitManagementPageController
    extends MyCompanyPageController
    Controller defines routes to manage Business Units within My Company section.
    • Constructor Detail

      • BusinessUnitManagementPageController

        public BusinessUnitManagementPageController()
    • Method Detail

      • addCostCenterToUnit

        @RequestMapping(value="/addcostcenter",
                        method=GET)
        public java.lang.String addCostCenterToUnit​(@RequestParam("unit")
                                                    java.lang.String unit,
                                                    org.springframework.ui.Model model,
                                                    javax.servlet.http.HttpServletRequest request)
                                             throws CMSItemNotFoundException
        Throws:
        CMSItemNotFoundException
      • addCostCenterToUnit

        @RequestMapping(value="/addcostcenter",
                        method=POST)
        public java.lang.String addCostCenterToUnit​(@RequestParam("unit")
                                                    java.lang.String unit,
                                                    @Valid
                                                    @Valid B2BCostCenterForm b2BCostCenterForm,
                                                    org.springframework.validation.BindingResult bindingResult,
                                                    org.springframework.ui.Model model,
                                                    javax.servlet.http.HttpServletRequest request,
                                                    org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)
                                             throws CMSItemNotFoundException
        Throws:
        CMSItemNotFoundException
      • editCostCenterToUnit

        @RequestMapping(value="/editcostcenter",
                        method=GET)
        public java.lang.String editCostCenterToUnit​(@RequestParam("unit")
                                                     java.lang.String unit,
                                                     @RequestParam("costCenterCode")
                                                     java.lang.String costCenterCode,
                                                     org.springframework.ui.Model model,
                                                     javax.servlet.http.HttpServletRequest request)
                                              throws CMSItemNotFoundException
        Throws:
        CMSItemNotFoundException
      • editCostCenterToUnit

        @RequestMapping(value="/editcostcenter",
                        method=POST)
        public java.lang.String editCostCenterToUnit​(@RequestParam("unit")
                                                     java.lang.String unit,
                                                     @RequestParam("costCenterCode")
                                                     java.lang.String costCenterCode,
                                                     @Valid
                                                     @Valid B2BCostCenterForm b2BCostCenterForm,
                                                     org.springframework.validation.BindingResult bindingResult,
                                                     org.springframework.ui.Model model,
                                                     javax.servlet.http.HttpServletRequest request,
                                                     org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)
                                              throws CMSItemNotFoundException
        Throws:
        CMSItemNotFoundException
      • disableUnitConfirmation

        @RequestMapping(value="/disable",
                        method=GET)
        public java.lang.String disableUnitConfirmation​(@RequestParam("unit")
                                                        java.lang.String unit,
                                                        org.springframework.ui.Model model)
                                                 throws CMSItemNotFoundException
        Throws:
        CMSItemNotFoundException
      • disableUnit

        @RequestMapping(value="/disable",
                        method=POST)
        public java.lang.String disableUnit​(@RequestParam("unit")
                                            java.lang.String unit,
                                            org.springframework.ui.Model model)
                                     throws CMSItemNotFoundException
        Throws:
        CMSItemNotFoundException
      • enableUnit

        @RequestMapping(value="/enable",
                        method=GET)
        public java.lang.String enableUnit​(@RequestParam("unit")
                                           java.lang.String unit,
                                           org.springframework.ui.Model model)
                                    throws CMSItemNotFoundException
        Throws:
        CMSItemNotFoundException
      • editUnit

        @RequestMapping(value="/edit",
                        method=POST)
        public java.lang.String editUnit​(@RequestParam("unit")
                                         java.lang.String unit,
                                         @Valid
                                         @Valid B2BUnitForm unitForm,
                                         org.springframework.validation.BindingResult bindingResult,
                                         org.springframework.ui.Model model,
                                         org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)
                                  throws CMSItemNotFoundException
        Throws:
        CMSItemNotFoundException
      • createUnit

        @RequestMapping(value="/create",
                        method=GET)
        public java.lang.String createUnit​(@RequestParam("unit")
                                           java.lang.String unit,
                                           org.springframework.ui.Model model,
                                           javax.servlet.http.HttpServletRequest request)
                                    throws CMSItemNotFoundException
        Throws:
        CMSItemNotFoundException
      • createUnit

        @RequestMapping(value="/create",
                        method=POST)
        public java.lang.String createUnit​(@Valid
                                           @Valid B2BUnitForm unitForm,
                                           org.springframework.validation.BindingResult bindingResult,
                                           org.springframework.ui.Model model,
                                           javax.servlet.http.HttpServletRequest request,
                                           org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)
                                    throws CMSItemNotFoundException
        Throws:
        CMSItemNotFoundException
      • viewCostCenterForUnit

        @RequestMapping(value="/costcenter",
                        method=GET)
        public java.lang.String viewCostCenterForUnit​(@RequestParam("unit")
                                                      java.lang.String unit,
                                                      @RequestParam("costCenterCode")
                                                      java.lang.String costCenterCode,
                                                      org.springframework.ui.Model model,
                                                      javax.servlet.http.HttpServletRequest request)
                                               throws CMSItemNotFoundException
        Throws:
        CMSItemNotFoundException
      • addAddress

        @RequestMapping(value="/add-address",
                        method=GET)
        public java.lang.String addAddress​(@RequestParam("unit")
                                           java.lang.String unit,
                                           org.springframework.ui.Model model)
                                    throws CMSItemNotFoundException
        Throws:
        CMSItemNotFoundException
      • addAddress

        @RequestMapping(value="/add-address",
                        method=POST)
        public java.lang.String addAddress​(@RequestParam("unit")
                                           java.lang.String unit,
                                           @Valid
                                           @Valid AddressForm addressForm,
                                           org.springframework.validation.BindingResult bindingResult,
                                           org.springframework.ui.Model model,
                                           org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)
                                    throws CMSItemNotFoundException
        Throws:
        CMSItemNotFoundException
      • removeAddress

        @RequestMapping(value="/remove-address",
                        method={GET,POST})
        public java.lang.String removeAddress​(@RequestParam("unit")
                                              java.lang.String unit,
                                              @RequestParam("addressId")
                                              java.lang.String addressId,
                                              org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)
                                       throws CMSItemNotFoundException
        Throws:
        CMSItemNotFoundException
      • editAddress

        @RequestMapping(value="/edit-address",
                        method=GET)
        public java.lang.String editAddress​(@RequestParam("unit")
                                            java.lang.String unit,
                                            @RequestParam("addressId")
                                            java.lang.String addressId,
                                            org.springframework.ui.Model model,
                                            org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)
                                     throws CMSItemNotFoundException
        Throws:
        CMSItemNotFoundException
      • editAddress

        @RequestMapping(value="/edit-address",
                        method=POST)
        public java.lang.String editAddress​(@RequestParam("unit")
                                            java.lang.String unit,
                                            @RequestParam("addressId")
                                            java.lang.String addressId,
                                            @Valid
                                            @Valid AddressForm addressForm,
                                            org.springframework.validation.BindingResult bindingResult,
                                            org.springframework.ui.Model model,
                                            org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)
                                     throws CMSItemNotFoundException
        Throws:
        CMSItemNotFoundException