Class MyCompanyPageController

    • Field Detail

      • MY_COMPANY_CMS_PAGE

        protected static final java.lang.String MY_COMPANY_CMS_PAGE
        See Also:
        Constant Field Values
      • ORGANIZATION_MANAGEMENT_CMS_PAGE

        protected static final java.lang.String ORGANIZATION_MANAGEMENT_CMS_PAGE
        See Also:
        Constant Field Values
      • MANAGE_UNITS_CMS_PAGE

        protected static final java.lang.String MANAGE_UNITS_CMS_PAGE
        See Also:
        Constant Field Values
      • MANAGE_USERGROUPS_CMS_PAGE

        protected static final java.lang.String MANAGE_USERGROUPS_CMS_PAGE
        See Also:
        Constant Field Values
      • MANAGE_USER_DETAILS_URL

        protected static final java.lang.String MANAGE_USER_DETAILS_URL
        See Also:
        Constant Field Values
      • MANAGE_UNIT_DETAILS_URL

        protected static final java.lang.String MANAGE_UNIT_DETAILS_URL
        See Also:
        Constant Field Values
      • MANAGE_USERGROUP_DETAILS_URL

        protected static final java.lang.String MANAGE_USERGROUP_DETAILS_URL
        See Also:
        Constant Field Values
      • MANAGE_COST_CENTER_BASE_URL

        protected static final java.lang.String MANAGE_COST_CENTER_BASE_URL
        See Also:
        Constant Field Values
      • MANAGE_COSTCENTERS_EDIT_URL

        protected static final java.lang.String MANAGE_COSTCENTERS_EDIT_URL
        See Also:
        Constant Field Values
      • MANAGE_COSTCENTERS_VIEW_URL

        protected static final java.lang.String MANAGE_COSTCENTERS_VIEW_URL
        See Also:
        Constant Field Values
      • MANAGE_COSTCENTERS_SELECTBUDGET_URL

        protected static final java.lang.String MANAGE_COSTCENTERS_SELECTBUDGET_URL
        See Also:
        Constant Field Values
      • MANAGE_PERMISSIONS_VIEW_URL

        protected static final java.lang.String MANAGE_PERMISSIONS_VIEW_URL
        See Also:
        Constant Field Values
      • MANAGE_PERMISSIONS_EDIT_URL

        protected static final java.lang.String MANAGE_PERMISSIONS_EDIT_URL
        See Also:
        Constant Field Values
      • REDIRECT_TO_UNIT_DETAILS

        protected static final java.lang.String REDIRECT_TO_UNIT_DETAILS
        See Also:
        Constant Field Values
      • REDIRECT_TO_COSTCENTER_DETAILS

        protected static final java.lang.String REDIRECT_TO_COSTCENTER_DETAILS
        See Also:
        Constant Field Values
      • REDIRECT_TO_USER_DETAILS

        protected static final java.lang.String REDIRECT_TO_USER_DETAILS
        See Also:
        Constant Field Values
      • REDIRECT_TO_BUDGET_DETAILS

        protected static final java.lang.String REDIRECT_TO_BUDGET_DETAILS
        See Also:
        Constant Field Values
      • REDIRECT_TO_PERMISSION_DETAILS

        protected static final java.lang.String REDIRECT_TO_PERMISSION_DETAILS
        See Also:
        Constant Field Values
      • REDIRECT_TO_USERGROUP_DETAILS

        protected static final java.lang.String REDIRECT_TO_USERGROUP_DETAILS
        See Also:
        Constant Field Values
      • REDIRECT_TO_USER_GROUPS_PAGE

        protected static final java.lang.String REDIRECT_TO_USER_GROUPS_PAGE
        See Also:
        Constant Field Values
      • SINGLE_WHITEPSACE

        protected static final java.lang.String SINGLE_WHITEPSACE
        See Also:
        Constant Field Values
      • MANAGE_UNITS_BASE_URL

        protected static final java.lang.String MANAGE_UNITS_BASE_URL
        See Also:
        Constant Field Values
      • MANAGE_USERGROUPS_BASE_URL

        protected static final java.lang.String MANAGE_USERGROUPS_BASE_URL
        See Also:
        Constant Field Values
      • ADD_COSTCENTER_URL

        protected static final java.lang.String ADD_COSTCENTER_URL
        See Also:
        Constant Field Values
      • EDIT_COSTCENTER_URL

        protected static final java.lang.String EDIT_COSTCENTER_URL
        See Also:
        Constant Field Values
      • 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
      • budgetFacade

        protected de.hybris.platform.b2bcommercefacades.company.B2BBudgetFacade budgetFacade
      • b2bUserGroupFacade

        protected de.hybris.platform.b2bcommercefacades.company.B2BUserGroupFacade b2bUserGroupFacade
      • 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 Detail

      • MyCompanyPageController

        public MyCompanyPageController()
    • Method Detail

      • initBinder

        @InitBinder
        protected void initBinder​(org.springframework.web.bind.ServletRequestDataBinder binder)
      • getCurrentB2BStore

        @ModelAttribute("b2bStore")
        public java.lang.String getCurrentB2BStore()
      • unitDetails

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

        protected java.lang.String addCostCenter​(org.springframework.ui.Model model)
                                          throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
        Throws:
        de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      • saveCostCenter

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

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

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

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

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

        protected B2BBudgetData populateB2BBudgetDataFromForm​(B2BBudgetForm b2BBudgetForm)
                                                       throws java.text.ParseException
        Throws:
        java.text.ParseException
      • populateB2BPermissionDataFromForm

        protected B2BPermissionData populateB2BPermissionDataFromForm​(B2BPermissionForm b2BPermissionForm)
                                                               throws java.text.ParseException
        Throws:
        java.text.ParseException
      • assignPermissionName

        protected java.lang.String assignPermissionName​(B2BPermissionForm b2BPermissionForm)
      • editPermission

        public java.lang.String editPermission​(java.lang.String permissionCode,
                                               org.springframework.ui.Model model)
                                        throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
        Throws:
        de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      • editPermission

        public java.lang.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,
                                               java.text.ParseException
        Throws:
        de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
        java.text.ParseException
      • checkEndDateIsBeforeStartDateForBudget

        protected boolean checkEndDateIsBeforeStartDateForBudget​(B2BBudgetForm b2BBudgetForm)
      • getCancelUrl

        protected java.lang.String getCancelUrl​(java.lang.String url,
                                                java.lang.String contextPath,
                                                java.lang.String param)