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 Details

    • BusinessUnitManagementPageController

      public BusinessUnitManagementPageController()
  • Method Details

    • manageUnits

      @RequestMapping(method=GET) public String manageUnits(org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • unitDetails

      @RequestMapping(value="/details", method=GET) public String unitDetails(@RequestParam("unit") String unit, org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Overrides:
      unitDetails in class MyCompanyPageController
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • addCostCenterToUnit

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

      @RequestMapping(value="/addcostcenter", method=POST) public String addCostCenterToUnit(@RequestParam("unit") 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 de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • editCostCenterToUnit

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

      @RequestMapping(value="/editcostcenter", method=POST) public String editCostCenterToUnit(@RequestParam("unit") String unit, @RequestParam("costCenterCode") 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 de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • disableUnitConfirmation

      @RequestMapping(value="/disable", method=GET) public String disableUnitConfirmation(@RequestParam("unit") String unit, org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • disableUnit

      @RequestMapping(value="/disable", method=POST) public String disableUnit(@RequestParam("unit") String unit, org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • enableUnit

      @RequestMapping(value="/enable", method=GET) public String enableUnit(@RequestParam("unit") String unit, org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • editUnit

      @RequestMapping(value="/edit", method=GET) public String editUnit(@RequestParam("unit") String unit, org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • editUnit

      @RequestMapping(value="/edit", method=POST) public String editUnit(@RequestParam("unit") 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 de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • createUnit

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

      @RequestMapping(value="/create", method=POST) public 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 de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • viewCostCenterForUnit

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

      @RequestMapping(value="/add-address", method=GET) public String addAddress(@RequestParam("unit") String unit, org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • addAddress

      @RequestMapping(value="/add-address", method=POST) public String addAddress(@RequestParam("unit") 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 de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • removeAddress

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

      @RequestMapping(value="/edit-address", method=GET) 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 de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • editAddress

      @RequestMapping(value="/edit-address", method=POST) public String editAddress(@RequestParam("unit") String unit, @RequestParam("addressId") 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 de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • getBusinessProcesses

      protected List<MyCompanyPageController.SelectOption> getBusinessProcesses()