Class MyCompanyPageController
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
- Direct Known Subclasses:
B2BUserGroupManagementPageController,BudgetManagementPageController,BusinessUnitManagementPageController,BusinessUnitUserManagementPageController,CostCenterManagementPageController,PermissionManagementPageController,UserManagementPageController
Controller for organization management.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classData class used to hold a drop down select option value.Nested 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
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected B2BApprovalProcessFacadeprotected B2BApproverFacadeprotected B2BBudgetFormValidatorprotected B2BCostCenterFacadeprotected B2BPermissionFacadeprotected B2BPermissionFormValidatorprotected B2BUnitFacadeprotected B2BUserFacadeprotected B2BUserGroupFacadeprotected BaseStoreServiceprotected B2BBudgetFacadeprotected CheckoutFacadeprotected CustomerFacadeprotected static final Stringprotected FormatFactoryprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected MyCompanyBreadcrumbBuilderprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected StoreSessionFacadeFields 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 TypeMethodDescriptionprotected StringaddCostCenter(org.springframework.ui.Model model) protected StringassignPermissionName(B2BPermissionForm b2BPermissionForm) protected booleancheckEndDateIsBeforeStartDateForBudget(B2BBudgetForm b2BBudgetForm) protected StringcreateUser(B2BCustomerForm b2BCustomerForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) protected StringcreateUser(org.springframework.ui.Model model) protected StringeditCostCenterDetails(String costCenterCode, org.springframework.ui.Model model) editPermission(B2BPermissionForm b2BPermissionForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) editPermission(String permissionCode, org.springframework.ui.Model model) protected StringeditUser(String user, B2BCustomerForm b2BCustomerForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) protected List<MyCompanyPageController.SelectOption>getBranchSelectOptions(List<B2BUnitNodeData> branchNodes) protected StringgetCancelUrl(String url, String contextPath, String param) protected intGet the default search page size.protected UserFacadeprotected voidinitBinder(org.springframework.web.bind.ServletRequestDataBinder binder) protected StringmanageUserDetail(String user, org.springframework.ui.Model model) protected B2BBudgetDatapopulateB2BBudgetDataFromForm(B2BBudgetForm b2BBudgetForm) protected B2BCostCenterDatapopulateB2BCostCenterDataFromForm(B2BCostCenterForm b2BCostCenterForm) protected B2BPermissionDatapopulateB2BPermissionDataFromForm(B2BPermissionForm b2BPermissionForm) protected List<MyCompanyPageController.SelectOption>populateCurrencySelectBox(Collection<CurrencyData> currencies) protected B2BSelectionDatapopulateDisplayNamesForRoles(B2BSelectionData b2BSelectionData) protected List<MyCompanyPageController.SelectOption>populateRolesCheckBoxes(List<String> roles) protected List<MyCompanyPageController.SelectOption>populateSelectBoxForString(List<String> listOfStrings) protected StringsaveCostCenter(@Valid B2BCostCenterForm b2BCostCenterForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) protected StringunitDetails(String unit, org.springframework.ui.Model model) protected StringupdateCostCenterDetails(B2BCostCenterForm b2BCostCenterForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) protected StringviewCostCenterDetails(String costCenterCode, org.springframework.ui.Model model) Methods 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
-
Field Details
-
MY_COMPANY_CMS_PAGE
- See Also:
-
ORGANIZATION_MANAGEMENT_CMS_PAGE
- See Also:
-
MANAGE_UNITS_CMS_PAGE
- See Also:
-
MANAGE_USERGROUPS_CMS_PAGE
- See Also:
-
MANAGE_USER_DETAILS_URL
- See Also:
-
MANAGE_UNIT_DETAILS_URL
- See Also:
-
MANAGE_USERGROUP_DETAILS_URL
- See Also:
-
MANAGE_COST_CENTER_BASE_URL
- See Also:
-
MANAGE_COSTCENTERS_EDIT_URL
- See Also:
-
MANAGE_COSTCENTERS_VIEW_URL
- See Also:
-
MANAGE_COSTCENTERS_SELECTBUDGET_URL
- See Also:
-
MANAGE_PERMISSIONS_VIEW_URL
- See Also:
-
MANAGE_USERGROUPS_BASE_URL
- See Also:
-
MANAGE_PERMISSIONS_EDIT_URL
- See Also:
-
REDIRECT_TO_UNIT_DETAILS
- See Also:
-
REDIRECT_TO_COSTCENTER_DETAILS
- See Also:
-
REDIRECT_TO_USER_DETAILS
- See Also:
-
REDIRECT_TO_BUDGET_DETAILS
- See Also:
-
REDIRECT_TO_PERMISSION_DETAILS
- See Also:
-
REDIRECT_TO_USERGROUP_DETAILS
- See Also:
-
REDIRECT_TO_USER_GROUPS_PAGE
- See Also:
-
SINGLE_WHITEPSACE
- See Also:
-
MANAGE_UNITS_BASE_URL
- See Also:
-
ADD_COSTCENTER_URL
- See Also:
-
EDIT_COSTCENTER_URL
- See Also:
-
checkoutFacade
-
storeSessionFacade
-
customerFacade
-
b2bApprovalProcessFacade
-
b2bUserFacade
-
b2bUnitFacade
-
b2bPermissionFacade
-
b2bCostCenterFacade
-
budgetFacade
-
b2bUserGroupFacade
-
myCompanyBreadcrumbBuilder
-
b2BPermissionFormValidator
-
b2BBudgetFormValidator
-
formatFactory
-
b2bApproverFacade
-
baseStoreService
-
-
Constructor Details
-
MyCompanyPageController
public MyCompanyPageController()
-
-
Method Details
-
getUserFacade
- Overrides:
getUserFacadein classAbstractPageController
-
getB2BUnits
-
getAllCostCenters
@ModelAttribute("b2bCostCenterCurrencies") public List<MyCompanyPageController.SelectOption> getAllCostCenters() -
getB2BPeriodRanges
@ModelAttribute("b2bPeriodRanges") public List<MyCompanyPageController.SelectOption> getB2BPeriodRanges() -
getB2BPermissionTypes
@ModelAttribute("b2bPermissionTypes") public List<MyCompanyPageController.SelectOption> getB2BPermissionTypes() -
initBinder
@InitBinder protected void initBinder(org.springframework.web.bind.ServletRequestDataBinder binder) -
getCurrentB2BStore
-
unitDetails
protected String unitDetails(String unit, org.springframework.ui.Model model) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
addCostCenter
- Throws:
CMSItemNotFoundException
-
saveCostCenter
protected 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 - Throws:
CMSItemNotFoundException
-
viewCostCenterDetails
protected String viewCostCenterDetails(String costCenterCode, org.springframework.ui.Model model) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
editCostCenterDetails
protected String editCostCenterDetails(String costCenterCode, org.springframework.ui.Model model) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
updateCostCenterDetails
protected String updateCostCenterDetails(B2BCostCenterForm b2BCostCenterForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
createUser
- Throws:
CMSItemNotFoundException
-
createUser
protected String createUser(B2BCustomerForm b2BCustomerForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
editUser
public String editUser(String user, org.springframework.ui.Model model) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
editUser
protected String editUser(String user, B2BCustomerForm b2BCustomerForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
manageUserDetail
protected String manageUserDetail(String user, org.springframework.ui.Model model) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
populateB2BCostCenterDataFromForm
-
populateB2BBudgetDataFromForm
protected B2BBudgetData populateB2BBudgetDataFromForm(B2BBudgetForm b2BBudgetForm) throws ParseException - Throws:
ParseException
-
populateB2BPermissionDataFromForm
protected B2BPermissionData populateB2BPermissionDataFromForm(B2BPermissionForm b2BPermissionForm) throws ParseException - Throws:
ParseException
-
assignPermissionName
-
editPermission
public String editPermission(String permissionCode, org.springframework.ui.Model model) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
editPermission
public String editPermission(B2BPermissionForm b2BPermissionForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws CMSItemNotFoundException, ParseException -
checkEndDateIsBeforeStartDateForBudget
-
populateCurrencySelectBox
protected List<MyCompanyPageController.SelectOption> populateCurrencySelectBox(Collection<CurrencyData> currencies) -
populateSelectBoxForString
protected List<MyCompanyPageController.SelectOption> populateSelectBoxForString(List<String> listOfStrings) -
populateRolesCheckBoxes
-
getBranchSelectOptions
protected List<MyCompanyPageController.SelectOption> getBranchSelectOptions(List<B2BUnitNodeData> branchNodes) -
populateDisplayNamesForRoles
-
getCancelUrl
-
getSearchPageSize
protected int getSearchPageSize()Description copied from class:AbstractSearchPageControllerGet the default search page size.- Overrides:
getSearchPageSizein classAbstractSearchPageController- Returns:
- the number of results per page, 0 (zero) indicated 'default' size should be used
-