Class BudgetManagementPageController


@Controller @RequestMapping("/my-company/organization-management/manage-budgets") public class BudgetManagementPageController extends MyCompanyPageController
Controller defines routes to manage Budgets within My Company section.
  • Constructor Details

    • BudgetManagementPageController

      public BudgetManagementPageController()
  • Method Details

    • manageBudgets

      @RequestMapping(method=GET) public String manageBudgets(@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
    • viewBudgetsDetails

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

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

      @RequestMapping(value="/update", method=POST) public String updateBudgetsDetails(@RequestParam("budgetCode") String budgetCode, @Valid @Valid B2BBudgetForm b2BBudgetForm, 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, ParseException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      ParseException
    • getAddBudgetPage

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

      @RequestMapping(value="/add", method=POST) public String addNewBudget(@Valid @Valid B2BBudgetForm b2BBudgetForm, 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, ParseException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      ParseException
    • enableBudget

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

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

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

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