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.travelcommerceorgaddon.controllers.pages.MyCompanyPageController
de.hybris.platform.travelcommerceorgaddon.controllers.pages.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.
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.travelcommerceorgaddon.controllers.pages.MyCompanyPageController
MyCompanyPageController.SelectOptionNested classes/interfaces inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractSearchPageController
AbstractSearchPageController.SearchResultsData<RESULT>, AbstractSearchPageController.ShowModeNested classes/interfaces inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
AbstractController.HttpNotFoundException -
Field Summary
Fields inherited from class de.hybris.platform.travelcommerceorgaddon.controllers.pages.MyCompanyPageController
ADD_COSTCENTER_URL, b2bApprovalProcessFacade, b2bApproverFacade, b2BBudgetFormValidator, b2bCostCenterFacade, b2bPermissionFacade, b2BPermissionFormValidator, b2bUnitFacade, b2bUserFacade, b2bUserGroupFacade, baseStoreService, checkoutFacade, customerFacade, 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, MAX_BUFFER_SIZE, 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, travelB2BBudgetFacadeFields inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractSearchPageController
MAX_PAGE_LIMITFields 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_8Fields inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
FORWARD_PREFIX, REDIRECT_PREFIX, ROOT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCostCenter(org.springframework.ui.Model model) assignBudgetsForCostCenter(int page, AbstractSearchPageController.ShowMode showMode, String sortCode, String costCenterCode, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) confirmDisableCostCenter(String costCenterCode, org.springframework.ui.Model model) deselectBudgetForCostCenter(String costCenterCode, String budgetCode) disableCostCenter(String costCenterCode, org.springframework.ui.Model model) editCostCenterDetails(String costCenterCode, org.springframework.ui.Model model) enableCostCenter(String costCenterCode, org.springframework.ui.Model model) manageCostCenters(int page, AbstractSearchPageController.ShowMode showMode, String sortCode, org.springframework.ui.Model model) saveCostCenter(@Valid B2BCostCenterForm b2BCostCenterForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) selectBudgetForCostCenter(String costCenterCode, String budgetCode) updateCostCenterDetails(@Valid B2BCostCenterForm b2BCostCenterForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) viewCostCenterDetails(String costCenterCode, org.springframework.ui.Model model) viewCostCenterUnitDetails(String costCenterCode, String unit, org.springframework.ui.Model model) Methods inherited from class de.hybris.platform.travelcommerceorgaddon.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, unitDetailsMethods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractSearchPageController
calculateShowAll, calculateShowPaged, convertBreadcrumbsToFacets, createEmptyPagination, createPageableData, encodeSearchPageData, existsFacetValueWithName, getMaxSearchPageSize, isShowAllAllowed, populateModel, processFacetData, processFacetDatas, refineFacetsMethods 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, urlEncodeMethods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
addRequestToModel, getBean
-
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:
viewCostCenterDetailsin classMyCompanyPageController- 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:
editCostCenterDetailsin classMyCompanyPageController- 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:
updateCostCenterDetailsin classMyCompanyPageController- 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:
addCostCenterin classMyCompanyPageController- 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:
saveCostCenterin classMyCompanyPageController- Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-