Class CostCenterManagementPageController


@Controller @RequestMapping("/my-company/organization-management/manage-costcenters") public class CostCenterManagementPageController extends MyCompanyPageController
Controller defines routes to mange Budgets and Cost Centers within My Company section.
  • Constructor Details

    • CostCenterManagementPageController

      public CostCenterManagementPageController()
  • Method Details

    • viewCostCenterUnitDetails

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

      @RequestMapping(value="", method=GET) public String manageCostCenters(@RequestParam(value="page",defaultValue="0") int page, @RequestParam(value="show",defaultValue="Page") AbstractSearchPageController.ShowMode showMode, @RequestParam(value="sort",defaultValue="code") String sortCode, org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • viewCostCenterDetails

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

      @RequestMapping(value="/selectBudget", method=GET) public String assignBudgetsForCostCenter(@RequestParam(value="page",defaultValue="0") int page, @RequestParam(value="show",defaultValue="Page") AbstractSearchPageController.ShowMode showMode, @RequestParam(value="sort",defaultValue="code") String sortCode, @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
    • selectBudgetForCostCenter

      @ResponseBody @RequestMapping(value="/budgets/select", method=POST) public B2BSelectionData selectBudgetForCostCenter(@RequestParam("costCenterCode") String costCenterCode, @RequestParam("budgetCode") String budgetCode) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • deselectBudgetForCostCenter

      @ResponseBody @RequestMapping(value="/budgets/deselect", method=POST) public B2BSelectionData deselectBudgetForCostCenter(@RequestParam("costCenterCode") String costCenterCode, @RequestParam("budgetCode") String budgetCode) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • enableCostCenter

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

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

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

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

      @RequestMapping(value="/update", method=POST) public String updateCostCenterDetails(@Valid @Valid B2BCostCenterForm b2BCostCenterForm, 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
      Overrides:
      updateCostCenterDetails in class MyCompanyPageController
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • addCostCenter

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

      @RequestMapping(value="/add", method=POST) public String saveCostCenter(@Valid @Valid B2BCostCenterForm b2BCostCenterForm, 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
      Overrides:
      saveCostCenter in class MyCompanyPageController
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException