Class BusinessUnitUserManagementPageController
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.BusinessUnitUserManagementPageController
@Controller
@RequestMapping("/my-company/organization-management/manage-units")
public class BusinessUnitUserManagementPageController
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 TypeMethodDescriptionconfirmRemoveApproverFromUnit(String unit, String user, String role, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) confirmRemoveMemberFromUnit(String unit, String user, String role, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) createCustomerOfUnit(String unit, String role, @Valid B2BCustomerForm b2bCustomerForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) createCustomerOfUnit(String unit, String role, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) deselectApprover(String unit, String user) deselectCustomer(String user, String role) getPagedAdministratorsForUnit(int page, AbstractSearchPageController.ShowMode showMode, String sortCode, String unit, String role, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) getPagedApproversForUnit(int page, AbstractSearchPageController.ShowMode showMode, String sortCode, String unit, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) getPagedCustomersForUnit(int page, AbstractSearchPageController.ShowMode showMode, String sortCode, String unit, String role, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) getPagedManagersForUnit(int page, AbstractSearchPageController.ShowMode showMode, String sortCode, String unit, String role, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) removeApproverFromUnit(String unit, String user, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) removeMemberFromUnit(String unit, String user, String role, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) selectApprover(String unit, String user) selectCustomer(String user, String role) viewCustomerOfUnit(String unit, String user, 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, unitDetails, 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
-
BusinessUnitUserManagementPageController
public BusinessUnitUserManagementPageController()
-
-
Method Details
-
createCustomerOfUnit
@RequestMapping(value="/createuser", method=GET) public String createCustomerOfUnit(@RequestParam("unit") String unit, @RequestParam("role") String role, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException - Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
createCustomerOfUnit
@RequestMapping(value="/createuser", method=POST) public String createCustomerOfUnit(@RequestParam("unit") String unit, @RequestParam("role") String role, @Valid @Valid B2BCustomerForm b2bCustomerForm, 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
-
viewCustomerOfUnit
@RequestMapping(value="/viewuser", method=GET) public String viewCustomerOfUnit(@RequestParam("unit") String unit, @RequestParam("user") String user, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException - Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
getPagedApproversForUnit
@RequestMapping(value="/approvers", method=GET) public String getPagedApproversForUnit(@RequestParam(value="page",defaultValue="0") int page, @RequestParam(value="show",defaultValue="Page") AbstractSearchPageController.ShowMode showMode, @RequestParam(value="sort",defaultValue="name") String sortCode, @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
-
getPagedCustomersForUnit
@RequestMapping(value="/customers", method=GET) public String getPagedCustomersForUnit(@RequestParam(value="page",defaultValue="0") int page, @RequestParam(value="show",defaultValue="Page") AbstractSearchPageController.ShowMode showMode, @RequestParam(value="sort",defaultValue="name") String sortCode, @RequestParam("unit") String unit, @RequestParam("role") String role, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException - Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
getPagedAdministratorsForUnit
@RequestMapping(value="/administrators", method=GET) public String getPagedAdministratorsForUnit(@RequestParam(value="page",defaultValue="0") int page, @RequestParam(value="show",defaultValue="Page") AbstractSearchPageController.ShowMode showMode, @RequestParam(value="sort",defaultValue="name") String sortCode, @RequestParam("unit") String unit, @RequestParam("role") String role, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException - Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
getPagedManagersForUnit
@RequestMapping(value="/managers", method=GET) public String getPagedManagersForUnit(@RequestParam(value="page",defaultValue="0") int page, @RequestParam(value="show",defaultValue="Page") AbstractSearchPageController.ShowMode showMode, @RequestParam(value="sort",defaultValue="name") String sortCode, @RequestParam("unit") String unit, @RequestParam("role") String role, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException - Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
selectApprover
@ResponseBody @RequestMapping(value="/approvers/select", method={GET,POST}) public B2BSelectionData selectApprover(@RequestParam("unit") String unit, @RequestParam("user") String user) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException - Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
deselectApprover
@ResponseBody @RequestMapping(value="/approvers/deselect", method={GET,POST}) public B2BSelectionData deselectApprover(@RequestParam("unit") String unit, @RequestParam("user") String user) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException - Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
removeApproverFromUnit
@RequestMapping(value="/approvers/remove", method={GET,POST}) public String removeApproverFromUnit(@RequestParam("unit") String unit, @RequestParam("user") String user, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException - Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
confirmRemoveApproverFromUnit
@RequestMapping(value="/approvers/confirm/remove", method=GET) public String confirmRemoveApproverFromUnit(@RequestParam("unit") String unit, @RequestParam("user") String user, @RequestParam("role") String role, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException - Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
removeMemberFromUnit
@RequestMapping(value="/members/remove", method={GET,POST}) public String removeMemberFromUnit(@RequestParam("unit") String unit, @RequestParam("user") String user, @RequestParam("role") String role, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException - Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
confirmRemoveMemberFromUnit
@RequestMapping(value="/members/confirm/remove", method=GET) public String confirmRemoveMemberFromUnit(@RequestParam("unit") String unit, @RequestParam("user") String user, @RequestParam("role") String role, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException - Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
selectCustomer
@ResponseBody @RequestMapping(value="/members/select", method={GET,POST}) public B2BSelectionData selectCustomer(@RequestParam("user") String user, @RequestParam("role") String role) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException - Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
deselectCustomer
@ResponseBody @RequestMapping(value="/members/deselect", method={GET,POST}) public B2BSelectionData deselectCustomer(@RequestParam("user") String user, @RequestParam("role") String role) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException - Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-