Class BusinessUnitManagementPageController
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.BusinessUnitManagementPageController
@Controller
@RequestMapping("/my-company/organization-management/manage-units")
public class BusinessUnitManagementPageController
extends MyCompanyPageController
Controller defines routes to manage Business Units 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 TypeMethodDescriptionaddAddress(String unit, @Valid AddressForm addressForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) addAddress(String unit, org.springframework.ui.Model model) addCostCenterToUnit(String unit, @Valid B2BCostCenterForm b2BCostCenterForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) addCostCenterToUnit(String unit, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) createUnit(@Valid B2BUnitForm unitForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) createUnit(String unit, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) disableUnit(String unit, org.springframework.ui.Model model) disableUnitConfirmation(String unit, org.springframework.ui.Model model) editAddress(String unit, String addressId, @Valid AddressForm addressForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) editAddress(String unit, String addressId, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) editCostCenterToUnit(String unit, String costCenterCode, @Valid B2BCostCenterForm b2BCostCenterForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) editCostCenterToUnit(String unit, String costCenterCode, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) editUnit(String unit, @Valid B2BUnitForm unitForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) enableUnit(String unit, org.springframework.ui.Model model) protected List<MyCompanyPageController.SelectOption>manageUnits(org.springframework.ui.Model model) removeAddress(String unit, String addressId, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) unitDetails(String unit, org.springframework.ui.Model model) viewCostCenterForUnit(String unit, String costCenterCode, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) Methods inherited from class de.hybris.platform.travelcommerceorgaddon.controllers.pages.MyCompanyPageController
addCostCenter, assignPermissionName, checkEndDateIsBeforeStartDateForBudget, createUser, createUser, editCostCenterDetails, editPermission, editPermission, editUser, editUser, getAllCostCenters, getB2BPeriodRanges, getB2BPermissionTypes, getB2BUnits, getBranchSelectOptions, getCancelUrl, getCurrentB2BStore, getSearchPageSize, getUserFacade, initBinder, manageUserDetail, populateB2BBudgetDataFromForm, populateB2BCostCenterDataFromForm, populateB2BPermissionDataFromForm, populateCurrencySelectBox, populateDisplayNamesForRoles, populateRolesCheckBoxes, populateSelectBoxForString, saveCostCenter, updateCostCenterDetails, viewCostCenterDetailsMethods 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
-
BusinessUnitManagementPageController
public BusinessUnitManagementPageController()
-
-
Method Details
-
manageUnits
@RequestMapping(method=GET) public String manageUnits(org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException - Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
unitDetails
@RequestMapping(value="/details", method=GET) public String unitDetails(@RequestParam("unit") String unit, org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException - Overrides:
unitDetailsin classMyCompanyPageController- Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
addCostCenterToUnit
@RequestMapping(value="/addcostcenter", method=GET) public String addCostCenterToUnit(@RequestParam("unit") String unit, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException - Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
addCostCenterToUnit
@RequestMapping(value="/addcostcenter", method=POST) public String addCostCenterToUnit(@RequestParam("unit") String unit, @Valid @Valid B2BCostCenterForm b2BCostCenterForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException - Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
editCostCenterToUnit
@RequestMapping(value="/editcostcenter", method=GET) public String editCostCenterToUnit(@RequestParam("unit") String unit, @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
-
editCostCenterToUnit
@RequestMapping(value="/editcostcenter", method=POST) public String editCostCenterToUnit(@RequestParam("unit") String unit, @RequestParam("costCenterCode") String costCenterCode, @Valid @Valid B2BCostCenterForm b2BCostCenterForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException - Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
disableUnitConfirmation
@RequestMapping(value="/disable", method=GET) public String disableUnitConfirmation(@RequestParam("unit") String unit, org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException - Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
disableUnit
@RequestMapping(value="/disable", method=POST) public String disableUnit(@RequestParam("unit") String unit, org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException - Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
enableUnit
@RequestMapping(value="/enable", method=GET) public String enableUnit(@RequestParam("unit") String unit, org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException - Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
editUnit
@RequestMapping(value="/edit", method=GET) public String editUnit(@RequestParam("unit") String unit, org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException - Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
editUnit
@RequestMapping(value="/edit", method=POST) public String editUnit(@RequestParam("unit") String unit, @Valid @Valid B2BUnitForm unitForm, 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 - Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
createUnit
@RequestMapping(value="/create", method=GET) public String createUnit(@RequestParam("unit") String unit, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException - Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
createUnit
@RequestMapping(value="/create", method=POST) public String createUnit(@Valid @Valid B2BUnitForm unitForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException - Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
viewCostCenterForUnit
@RequestMapping(value="/costcenter", method=GET) public String viewCostCenterForUnit(@RequestParam("unit") String unit, @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
-
addAddress
@RequestMapping(value="/add-address", method=GET) public String addAddress(@RequestParam("unit") String unit, org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException - Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
addAddress
@RequestMapping(value="/add-address", method=POST) public String addAddress(@RequestParam("unit") String unit, @Valid @Valid AddressForm addressForm, 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 - Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
removeAddress
@RequestMapping(value="/remove-address", method={GET,POST}) public String removeAddress(@RequestParam("unit") String unit, @RequestParam("addressId") String addressId, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException - Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
editAddress
@RequestMapping(value="/edit-address", method=GET) public String editAddress(@RequestParam("unit") String unit, @RequestParam("addressId") String addressId, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException - Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
editAddress
@RequestMapping(value="/edit-address", method=POST) public String editAddress(@RequestParam("unit") String unit, @RequestParam("addressId") String addressId, @Valid @Valid AddressForm addressForm, 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 - Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
getBusinessProcesses
-