Class CostCenterManagementPageController
- java.lang.Object
-
- de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
-
- de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractPageController
-
- de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractSearchPageController
-
- de.hybris.platform.commerceorgaddon.controllers.pages.MyCompanyPageController
-
- de.hybris.platform.commerceorgaddon.controllers.pages.CostCenterManagementPageController
-
@Controller @RequestMapping("/my-company/organization-management/manage-costcenters") public class CostCenterManagementPageController extends MyCompanyPageControllerController defines routes to mange Budgets and Cost Centers within My Company section.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.commerceorgaddon.controllers.pages.MyCompanyPageController
MyCompanyPageController.SelectOption
-
Nested classes/interfaces inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractSearchPageController
AbstractSearchPageController.SearchResultsData<RESULT>, AbstractSearchPageController.ShowMode
-
Nested classes/interfaces inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
AbstractController.HttpNotFoundException
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.commerceorgaddon.controllers.pages.MyCompanyPageController
ADD_COSTCENTER_URL, b2bApprovalProcessFacade, b2bApproverFacade, b2BBudgetFormValidator, b2bCostCenterFacade, b2bPermissionFacade, b2BPermissionFormValidator, b2bUnitFacade, b2bUserFacade, b2bUserGroupFacade, baseStoreService, budgetFacade, checkoutFacade, customerFacade, EDIT_COSTCENTER_URL, formatFactory, MANAGE_COST_CENTER_BASE_URL, MANAGE_COSTCENTERS_EDIT_URL, MANAGE_COSTCENTERS_SELECTBUDGET_URL, MANAGE_COSTCENTERS_VIEW_URL, MANAGE_PERMISSIONS_EDIT_URL, MANAGE_PERMISSIONS_VIEW_URL, MANAGE_UNIT_DETAILS_URL, MANAGE_UNITS_BASE_URL, MANAGE_UNITS_CMS_PAGE, MANAGE_USER_DETAILS_URL, MANAGE_USERGROUP_DETAILS_URL, MANAGE_USERGROUPS_BASE_URL, MANAGE_USERGROUPS_CMS_PAGE, MY_COMPANY_CMS_PAGE, myCompanyBreadcrumbBuilder, ORGANIZATION_MANAGEMENT_CMS_PAGE, REDIRECT_TO_BUDGET_DETAILS, REDIRECT_TO_COSTCENTER_DETAILS, REDIRECT_TO_PERMISSION_DETAILS, REDIRECT_TO_UNIT_DETAILS, REDIRECT_TO_USER_DETAILS, REDIRECT_TO_USER_GROUPS_PAGE, REDIRECT_TO_USERGROUP_DETAILS, SINGLE_WHITEPSACE, storeSessionFacade
-
Fields inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractSearchPageController
MAX_PAGE_LIMIT
-
Fields inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractPageController
CMS_PAGE_MODEL, CMS_PAGE_TITLE, PAGE_ROOT, REDIRECT_TO_LOGIN_FOR_CHECKOUT, REDIRECT_TO_MULTISTEP_CHECKOUT, REGISTRATION_CONSENT_ID, UTF_8
-
Fields inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
FORWARD_PREFIX, REDIRECT_PREFIX, ROOT
-
-
Constructor Summary
Constructors Constructor Description CostCenterManagementPageController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringaddCostCenter(org.springframework.ui.Model model)java.lang.StringassignBudgetsForCostCenter(int page, AbstractSearchPageController.ShowMode showMode, java.lang.String sortCode, java.lang.String costCenterCode, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request)java.lang.StringconfirmDisableCostCenter(java.lang.String costCenterCode, org.springframework.ui.Model model)B2BSelectionDatadeselectBudgetForCostCenter(java.lang.String costCenterCode, java.lang.String budgetCode)java.lang.StringdisableCostCenter(java.lang.String costCenterCode, org.springframework.ui.Model model)java.lang.StringeditCostCenterDetails(java.lang.String costCenterCode, org.springframework.ui.Model model)java.lang.StringenableCostCenter(java.lang.String costCenterCode, org.springframework.ui.Model model)java.lang.StringmanageCostCenters(int page, AbstractSearchPageController.ShowMode showMode, java.lang.String sortCode, org.springframework.ui.Model model)java.lang.StringsaveCostCenter(@Valid B2BCostCenterForm b2BCostCenterForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)B2BSelectionDataselectBudgetForCostCenter(java.lang.String costCenterCode, java.lang.String budgetCode)java.lang.StringupdateCostCenterDetails(@Valid B2BCostCenterForm b2BCostCenterForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)java.lang.StringviewCostCenterDetails(java.lang.String costCenterCode, org.springframework.ui.Model model)java.lang.StringviewCostCenterUnitDetails(java.lang.String costCenterCode, java.lang.String unit, org.springframework.ui.Model model)-
Methods inherited from class de.hybris.platform.commerceorgaddon.controllers.pages.MyCompanyPageController
assignPermissionName, checkEndDateIsBeforeStartDateForBudget, createUser, createUser, editPermission, editPermission, editUser, editUser, getAllCostCenters, getB2BPeriodRanges, getB2BPermissionTypes, getB2BUnits, getBranchSelectOptions, getCancelUrl, getCurrentB2BStore, getSearchPageSize, getUserFacade, initBinder, manageUserDetail, populateB2BBudgetDataFromForm, populateB2BCostCenterDataFromForm, populateB2BPermissionDataFromForm, populateCurrencySelectBox, populateDisplayNamesForRoles, populateRolesCheckBoxes, populateSelectBoxForString, unitDetails
-
Methods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractSearchPageController
calculateShowAll, calculateShowPaged, convertBreadcrumbsToFacets, createEmptyPagination, createPageableData, encodeSearchPageData, existsFacetValueWithName, getMaxSearchPageSize, isShowAllAllowed, populateModel, processFacetData, processFacetDatas, refineFacets
-
Methods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractPageController
addRegistrationConsentDataToModel, checkRequestUrl, createMetaElement, decodeWithScheme, getBaseSiteService, getCheckoutRedirectUrl, getCmsPageService, getCmsPreviewService, getCmsSiteService, getConfigurationService, getConsentFacade, getContentPageForLabelOrId, getCurrencies, getCurrentCurrency, getCurrentLanguage, getCustomerFacade, getHostConfigService, getI18nService, getLanguages, getMessageSource, getPageTitleResolver, getRequestContextData, getSessionService, getSiteConfigService, getSiteName, getSiteUid, getStoreSessionFacade, getUser, getViewForPage, getViewForPage, prepareNotFoundPage, setUpMetaData, setUpMetaDataForContentPage, storeCmsPageInModel, storeContentPageTitleInModel, storeContinueUrl, urlEncode
-
Methods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
addRequestToModel, getBean
-
-
-
-
Method Detail
-
viewCostCenterUnitDetails
@RequestMapping(value="/unitDetails", method=GET) public java.lang.String viewCostCenterUnitDetails(@RequestParam("costCenterCode") java.lang.String costCenterCode, @RequestParam("unit") java.lang.String unit, org.springframework.ui.Model model) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
manageCostCenters
@RequestMapping(value="", method=GET) public java.lang.String manageCostCenters(@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 CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
viewCostCenterDetails
@RequestMapping(value="/view", method=GET) public java.lang.String viewCostCenterDetails(@RequestParam("costCenterCode") java.lang.String costCenterCode, org.springframework.ui.Model model) throws CMSItemNotFoundException- Overrides:
viewCostCenterDetailsin classMyCompanyPageController- Throws:
CMSItemNotFoundException
-
assignBudgetsForCostCenter
@RequestMapping(value="/selectBudget", method=GET) public java.lang.String assignBudgetsForCostCenter(@RequestParam(value="page",defaultValue="0") int page, @RequestParam(value="show",defaultValue="Page") AbstractSearchPageController.ShowMode showMode, @RequestParam(value="sort",defaultValue="code") java.lang.String sortCode, @RequestParam("costCenterCode") java.lang.String costCenterCode, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
selectBudgetForCostCenter
@ResponseBody @RequestMapping(value="/budgets/select", method=POST) public B2BSelectionData selectBudgetForCostCenter(@RequestParam("costCenterCode") java.lang.String costCenterCode, @RequestParam("budgetCode") java.lang.String budgetCode) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
deselectBudgetForCostCenter
@ResponseBody @RequestMapping(value="/budgets/deselect", method=POST) public B2BSelectionData deselectBudgetForCostCenter(@RequestParam("costCenterCode") java.lang.String costCenterCode, @RequestParam("budgetCode") java.lang.String budgetCode) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
enableCostCenter
@RequestMapping(value="/enable", method=GET) public java.lang.String enableCostCenter(@RequestParam("costCenterCode") java.lang.String costCenterCode, org.springframework.ui.Model model) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
confirmDisableCostCenter
@RequestMapping(value="/disable", method=GET) public java.lang.String confirmDisableCostCenter(@RequestParam("costCenterCode") java.lang.String costCenterCode, org.springframework.ui.Model model) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
disableCostCenter
@RequestMapping(value="/disable", method=POST) public java.lang.String disableCostCenter(@RequestParam("costCenterCode") java.lang.String costCenterCode, org.springframework.ui.Model model) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
editCostCenterDetails
@RequestMapping(value="/edit", method=GET) public java.lang.String editCostCenterDetails(@RequestParam("costCenterCode") java.lang.String costCenterCode, org.springframework.ui.Model model) throws CMSItemNotFoundException- Overrides:
editCostCenterDetailsin classMyCompanyPageController- Throws:
CMSItemNotFoundException
-
updateCostCenterDetails
@RequestMapping(value="/update", method=POST) public java.lang.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 CMSItemNotFoundException- Overrides:
updateCostCenterDetailsin classMyCompanyPageController- Throws:
CMSItemNotFoundException
-
addCostCenter
@RequestMapping(value="/add", method=GET) public java.lang.String addCostCenter(org.springframework.ui.Model model) throws CMSItemNotFoundException- Overrides:
addCostCenterin classMyCompanyPageController- Throws:
CMSItemNotFoundException
-
saveCostCenter
@RequestMapping(value="/add", method=POST) public java.lang.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 CMSItemNotFoundException- Overrides:
saveCostCenterin classMyCompanyPageController- Throws:
CMSItemNotFoundException
-
-