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 Detail

      • BudgetManagementPageController

        public BudgetManagementPageController()
    • Method Detail

      • manageBudgets

        @RequestMapping(method=GET)
        public java.lang.String manageBudgets​(@RequestParam(value="page",defaultValue="0")
                                              int page,
                                              @RequestParam(value="show",defaultValue="Page")
                                              AbstractSearchPageController.ShowMode showMode,
                                              @RequestParam(value="sort",defaultValue="code")
                                              java.lang.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 java.lang.String viewBudgetsDetails​(@RequestParam("budgetCode")
                                                   java.lang.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 java.lang.String editBudgetsDetails​(@RequestParam("budgetCode")
                                                   java.lang.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 java.lang.String updateBudgetsDetails​(@RequestParam("budgetCode")
                                                     java.lang.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,
                                                     java.text.ParseException
        Throws:
        de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
        java.text.ParseException
      • getAddBudgetPage

        @RequestMapping(value="/add",
                        method=GET)
        public java.lang.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 java.lang.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,
                                             java.text.ParseException
        Throws:
        de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
        java.text.ParseException
      • enableBudget

        @RequestMapping(value="/enable",
                        method=GET)
        public java.lang.String enableBudget​(@RequestParam("budgetCode")
                                             java.lang.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 java.lang.String confirmDisableBudgets​(@RequestParam("budgetCode")
                                                      java.lang.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 java.lang.String disableBudget​(@RequestParam("budgetCode")
                                              java.lang.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 java.lang.String viewBudgetUnitDetails​(@RequestParam("budgetCode")
                                                      java.lang.String budgetCode,
                                                      @RequestParam("unit")
                                                      java.lang.String unit,
                                                      org.springframework.ui.Model model)
                                               throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
        Throws:
        de.hybris.platform.cms2.exceptions.CMSItemNotFoundException