Class MyCompanyPageController

Direct Known Subclasses:
B2BUserGroupManagementPageController, BudgetManagementPageController, BusinessUnitManagementPageController, BusinessUnitUserManagementPageController, CostCenterManagementPageController, OrdersReportPageController, PermissionManagementPageController, UserManagementPageController

@Controller public class MyCompanyPageController extends AbstractSearchPageController
Controller for organization management.
  • Field Details

    • MY_COMPANY_CMS_PAGE

      protected static final String MY_COMPANY_CMS_PAGE
      See Also:
    • ORGANIZATION_MANAGEMENT_CMS_PAGE

      protected static final String ORGANIZATION_MANAGEMENT_CMS_PAGE
      See Also:
    • MANAGE_UNITS_CMS_PAGE

      protected static final String MANAGE_UNITS_CMS_PAGE
      See Also:
    • MANAGE_USERGROUPS_CMS_PAGE

      protected static final String MANAGE_USERGROUPS_CMS_PAGE
      See Also:
    • MANAGE_USER_DETAILS_URL

      protected static final String MANAGE_USER_DETAILS_URL
      See Also:
    • MANAGE_UNIT_DETAILS_URL

      protected static final String MANAGE_UNIT_DETAILS_URL
      See Also:
    • MANAGE_USERGROUP_DETAILS_URL

      protected static final String MANAGE_USERGROUP_DETAILS_URL
      See Also:
    • MANAGE_COST_CENTER_BASE_URL

      protected static final String MANAGE_COST_CENTER_BASE_URL
      See Also:
    • MANAGE_COSTCENTERS_EDIT_URL

      protected static final String MANAGE_COSTCENTERS_EDIT_URL
      See Also:
    • MANAGE_COSTCENTERS_VIEW_URL

      protected static final String MANAGE_COSTCENTERS_VIEW_URL
      See Also:
    • MANAGE_COSTCENTERS_SELECTBUDGET_URL

      protected static final String MANAGE_COSTCENTERS_SELECTBUDGET_URL
      See Also:
    • MANAGE_PERMISSIONS_VIEW_URL

      protected static final String MANAGE_PERMISSIONS_VIEW_URL
      See Also:
    • MANAGE_PERMISSIONS_EDIT_URL

      protected static final String MANAGE_PERMISSIONS_EDIT_URL
      See Also:
    • REDIRECT_TO_UNIT_DETAILS

      protected static final String REDIRECT_TO_UNIT_DETAILS
      See Also:
    • REDIRECT_TO_COSTCENTER_DETAILS

      protected static final String REDIRECT_TO_COSTCENTER_DETAILS
      See Also:
    • REDIRECT_TO_USER_DETAILS

      protected static final String REDIRECT_TO_USER_DETAILS
      See Also:
    • REDIRECT_TO_BUDGET_DETAILS

      protected static final String REDIRECT_TO_BUDGET_DETAILS
      See Also:
    • REDIRECT_TO_PERMISSION_DETAILS

      protected static final String REDIRECT_TO_PERMISSION_DETAILS
      See Also:
    • REDIRECT_TO_USERGROUP_DETAILS

      protected static final String REDIRECT_TO_USERGROUP_DETAILS
      See Also:
    • REDIRECT_TO_USER_GROUPS_PAGE

      protected static final String REDIRECT_TO_USER_GROUPS_PAGE
      See Also:
    • SINGLE_WHITEPSACE

      protected static final String SINGLE_WHITEPSACE
      See Also:
    • MANAGE_UNITS_BASE_URL

      protected static final String MANAGE_UNITS_BASE_URL
      See Also:
    • MANAGE_USERGROUPS_BASE_URL

      protected static final String MANAGE_USERGROUPS_BASE_URL
      See Also:
    • ADD_COSTCENTER_URL

      protected static final String ADD_COSTCENTER_URL
      See Also:
    • MAX_BUFFER_SIZE

      protected static final Integer MAX_BUFFER_SIZE
    • checkoutFacade

      protected de.hybris.platform.commercefacades.order.CheckoutFacade checkoutFacade
    • storeSessionFacade

      protected de.hybris.platform.commercefacades.storesession.StoreSessionFacade storeSessionFacade
    • customerFacade

      protected de.hybris.platform.commercefacades.customer.CustomerFacade customerFacade
    • b2bApprovalProcessFacade

      protected de.hybris.platform.b2bapprovalprocessfacades.company.B2BApprovalProcessFacade b2bApprovalProcessFacade
    • b2bUserFacade

      protected de.hybris.platform.b2bcommercefacades.company.B2BUserFacade b2bUserFacade
    • b2bUnitFacade

      protected de.hybris.platform.b2bcommercefacades.company.B2BUnitFacade b2bUnitFacade
    • b2bPermissionFacade

      protected de.hybris.platform.b2bapprovalprocessfacades.company.B2BPermissionFacade b2bPermissionFacade
    • b2bCostCenterFacade

      protected de.hybris.platform.b2bcommercefacades.company.B2BCostCenterFacade b2bCostCenterFacade
    • travelB2BBudgetFacade

      protected TravelB2BBudgetFacade travelB2BBudgetFacade
    • b2bUserGroupFacade

      protected de.hybris.platform.b2bcommercefacades.company.B2BUserGroupFacade b2bUserGroupFacade
    • myCompanyBreadcrumbBuilder

      protected MyCompanyBreadcrumbBuilder myCompanyBreadcrumbBuilder
    • b2BPermissionFormValidator

      protected B2BPermissionFormValidator b2BPermissionFormValidator
    • b2BBudgetFormValidator

      protected B2BBudgetFormValidator b2BBudgetFormValidator
    • formatFactory

      protected de.hybris.platform.servicelayer.i18n.FormatFactory formatFactory
    • b2bApproverFacade

      protected de.hybris.platform.b2bapprovalprocessfacades.company.B2BApproverFacade b2bApproverFacade
    • baseStoreService

      protected de.hybris.platform.store.services.BaseStoreService baseStoreService
  • Constructor Details

    • MyCompanyPageController

      public MyCompanyPageController()
  • Method Details

    • getUserFacade

      protected de.hybris.platform.commercefacades.user.UserFacade getUserFacade()
      Overrides:
      getUserFacade in class AbstractPageController
    • getB2BUnits

      @ModelAttribute("b2bUnits") public List<MyCompanyPageController.SelectOption> 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

      @ModelAttribute("b2bStore") public String getCurrentB2BStore()
    • unitDetails

      protected String unitDetails(String unit, org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • addCostCenter

      protected String addCostCenter(org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.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 de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • viewCostCenterDetails

      protected String viewCostCenterDetails(String costCenterCode, org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • editCostCenterDetails

      protected String editCostCenterDetails(String costCenterCode, org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.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 de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • createUser

      protected String createUser(org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.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 de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • editUser

      public String editUser(String user, org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.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 de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • manageUserDetail

      protected String manageUserDetail(String user, org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • populateB2BCostCenterDataFromForm

      protected B2BCostCenterData populateB2BCostCenterDataFromForm(B2BCostCenterForm b2BCostCenterForm)
    • populateB2BBudgetDataFromForm

      protected B2BBudgetData populateB2BBudgetDataFromForm(B2BBudgetForm b2BBudgetForm) throws ParseException
      Throws:
      ParseException
    • populateB2BPermissionDataFromForm

      protected B2BPermissionData populateB2BPermissionDataFromForm(B2BPermissionForm b2BPermissionForm) throws ParseException
      Throws:
      ParseException
    • assignPermissionName

      protected String assignPermissionName(B2BPermissionForm b2BPermissionForm)
    • editPermission

      public String editPermission(String permissionCode, org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.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 de.hybris.platform.cms2.exceptions.CMSItemNotFoundException, ParseException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      ParseException
    • checkEndDateIsBeforeStartDateForBudget

      protected boolean checkEndDateIsBeforeStartDateForBudget(B2BBudgetForm b2BBudgetForm)
    • populateCurrencySelectBox

      protected List<MyCompanyPageController.SelectOption> populateCurrencySelectBox(Collection<CurrencyData> currencies)
    • populateSelectBoxForString

      protected List<MyCompanyPageController.SelectOption> populateSelectBoxForString(List<String> listOfStrings)
    • populateRolesCheckBoxes

      protected List<MyCompanyPageController.SelectOption> populateRolesCheckBoxes(List<String> roles)
    • getBranchSelectOptions

      protected List<MyCompanyPageController.SelectOption> getBranchSelectOptions(List<B2BUnitNodeData> branchNodes)
    • populateDisplayNamesForRoles

      protected B2BSelectionData populateDisplayNamesForRoles(B2BSelectionData b2BSelectionData)
    • getCancelUrl

      protected String getCancelUrl(String url, String contextPath, String param)
    • getSearchPageSize

      protected int getSearchPageSize()
      Description copied from class: AbstractSearchPageController
      Get the default search page size.
      Overrides:
      getSearchPageSize in class AbstractSearchPageController
      Returns:
      the number of results per page, 0 (zero) indicated 'default' size should be used