Class DefaultCompanyB2BCommerceFacade

java.lang.Object
de.hybris.platform.b2bacceleratorfacades.company.impl.DefaultCompanyB2BCommerceFacade
All Implemented Interfaces:
CompanyB2BCommerceFacade
Direct Known Subclasses:
DefaultB2BCommerceB2BUserGroupFacade, DefaultB2BCommerceBudgetFacade, DefaultB2BCommerceCostCenterFacade, DefaultB2BCommercePermissionFacade, DefaultB2BCommerceUnitFacade, DefaultB2BCommerceUserFacade

@Deprecated(since="6.0", forRemoval=true) public class DefaultCompanyB2BCommerceFacade extends Object implements CompanyB2BCommerceFacade
A facade for organization management.
  • Constructor Details

    • DefaultCompanyB2BCommerceFacade

      public DefaultCompanyB2BCommerceFacade()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getBranchNodes

      public List<B2BUnitNodeData> getBranchNodes()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: CompanyB2BCommerceFacade
      Gets a list of B2BUnitNodeData representing each unit in the branch based on the session customer
      Specified by:
      getBranchNodes in interface CompanyB2BCommerceFacade
      Returns:
      A list of units in the branch.
    • getParentUnit

      public B2BUnitData getParentUnit()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: CompanyB2BCommerceFacade
      Gets a business unit assigned to the current session user with all the siblings retrieved via B2BUnitNodeData.getChildren()
      Specified by:
      getParentUnit in interface CompanyB2BCommerceFacade
      Returns:
      A business unit assigned to the session customer
    • getUnitForUid

      public B2BUnitData getUnitForUid(String uid)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: CompanyB2BCommerceFacade
      Gets a business unit based on unique identifier
      Specified by:
      getUnitForUid in interface CompanyB2BCommerceFacade
      Parameters:
      uid - A unique id of a business unit.
      Returns:
      A business unit or null if not found.
    • getAllCurrencies

      public List<String> getAllCurrencies()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: CompanyB2BCommerceFacade
      Get all currencies
      Specified by:
      getAllCurrencies in interface CompanyB2BCommerceFacade
      Returns:
      CurrencyData
    • getCustomerForUid

      public CustomerData getCustomerForUid(String uid)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: CompanyB2BCommerceFacade
      Find a B2BCustomer based on a uid
      Specified by:
      getCustomerForUid in interface CompanyB2BCommerceFacade
      Parameters:
      uid - A uid of a B2BCustomerModel
      Returns:
      A customer data object or null if a customer with uid does not exist
    • getBusinessProcesses

      public Map<String,String> getBusinessProcesses()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: CompanyB2BCommerceFacade
      Get a collection of available business processes for OrderApproval
      Specified by:
      getBusinessProcesses in interface CompanyB2BCommerceFacade
      Returns:
      A map where the key is process code and value is process name based on the current session locale
    • getUserGroups

      public List<String> getUserGroups()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: CompanyB2BCommerceFacade
      A list of usergroup codes a b2b customer can be assigned to
      Specified by:
      getUserGroups in interface CompanyB2BCommerceFacade
      Returns:
      A list of PrincipalModel.UID a b2b customer can be assigned to
    • getPagedBudgets

      public SearchPageData<B2BBudgetData> getPagedBudgets(PageableData pageableData)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: CompanyB2BCommerceFacade
      Get paged B2Budgets for both Manage budgets and Select Budgets for CostCenters
      Specified by:
      getPagedBudgets in interface CompanyB2BCommerceFacade
      Returns:
      SearchPageData of found budgets (could be empty)
    • getBudgetDataForCode

      public B2BBudgetData getBudgetDataForCode(String budgetCode)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: CompanyB2BCommerceFacade
      Get B2BBudgetData for a given budget code
      Specified by:
      getBudgetDataForCode in interface CompanyB2BCommerceFacade
      Returns:
      B2BBudgetData if found or null otherwise
    • getCurrentStore

      public String getCurrentStore()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: CompanyB2BCommerceFacade
      Get the name of the current B2BStore to which the user is logged in
      Specified by:
      getCurrentStore in interface CompanyB2BCommerceFacade
      Returns:
      Name of the current B2BStore
    • convertPageData

      @Deprecated(since="6.0", forRemoval=true) protected <S, T> SearchPageData<T> convertPageData(SearchPageData<S> source, Converter<S,T> converter)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • createB2BSelectionData

      @Deprecated(since="6.0", forRemoval=true) protected B2BSelectionData createB2BSelectionData(String code, boolean selected, boolean active)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • populateRolesForCustomer

      @Deprecated(since="6.0", forRemoval=true) protected B2BSelectionData populateRolesForCustomer(B2BCustomerModel customerModel, B2BSelectionData b2BSelectionData)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getCompanyB2BCommerceService

      protected <T extends CompanyB2BCommerceService> T getCompanyB2BCommerceService()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setCompanyB2BCommerceService

      public void setCompanyB2BCommerceService(CompanyB2BCommerceService companyB2BCommerceService)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getB2BUserConverter

      protected Converter<B2BCustomerModel,CustomerData> getB2BUserConverter()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setB2BUserConverter

      public void setB2BUserConverter(Converter<B2BCustomerModel,CustomerData> b2BUserConverter)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getUnitTreeConverter

      protected Converter<B2BUnitModel,B2BUnitNodeData> getUnitTreeConverter()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setUnitTreeConverter

      public void setUnitTreeConverter(Converter<B2BUnitModel,B2BUnitNodeData> unitTreeConverter)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getB2BUnitConverter

      protected Converter<B2BUnitModel,B2BUnitData> getB2BUnitConverter()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setB2BUnitConverter

      public void setB2BUnitConverter(Converter<B2BUnitModel,B2BUnitData> b2BUnitConverter)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getB2BCostCenterConverter

      protected Converter<B2BCostCenterModel,B2BCostCenterData> getB2BCostCenterConverter()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setB2BCostCenterConverter

      public void setB2BCostCenterConverter(Converter<B2BCostCenterModel,B2BCostCenterData> b2bCostCenterConverter)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getB2BCustomerConverter

      protected Converter<B2BCustomerModel,CustomerData> getB2BCustomerConverter()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setB2BCustomerConverter

      public void setB2BCustomerConverter(Converter<B2BCustomerModel,CustomerData> b2bCustomerConverter)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getB2BBudgetConverter

      protected Converter<B2BBudgetModel,B2BBudgetData> getB2BBudgetConverter()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setB2BBudgetConverter

      public void setB2BBudgetConverter(Converter<B2BBudgetModel,B2BBudgetData> b2bBudgetConverter)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getAddressReversePopulator

      protected Populator<AddressData,AddressModel> getAddressReversePopulator()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setAddressReversePopulator

      public void setAddressReversePopulator(Populator<AddressData,AddressModel> addressReversePopulator)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getB2BPermissionConverter

      protected Converter<B2BPermissionModel,B2BPermissionData> getB2BPermissionConverter()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setB2BPermissionConverter

      public void setB2BPermissionConverter(Converter<B2BPermissionModel,B2BPermissionData> b2BPermissionConverter)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getUserService

      protected UserService getUserService()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setUserService

      public void setUserService(UserService userService)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getB2BUserGroupsLookUpStrategy

      protected B2BUserGroupsLookUpStrategy getB2BUserGroupsLookUpStrategy()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setB2BUserGroupsLookUpStrategy

      public void setB2BUserGroupsLookUpStrategy(B2BUserGroupsLookUpStrategy b2BUserGroupsLookUpStrategy)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getB2BBudgetReversePopulator

      protected Populator<B2BBudgetData,B2BBudgetModel> getB2BBudgetReversePopulator()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setB2BBudgetReversePopulator

      public void setB2BBudgetReversePopulator(Populator<B2BBudgetData,B2BBudgetModel> b2bBudgetReversePopulator)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getB2BCostCenterReversePopulator

      protected Populator<B2BCostCenterData,B2BCostCenterModel> getB2BCostCenterReversePopulator()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setB2BCostCenterReversePopulator

      public void setB2BCostCenterReversePopulator(Populator<B2BCostCenterData,B2BCostCenterModel> b2bCostCenterReversePopulator)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getB2BUserGroupConverter

      protected Converter<B2BUserGroupModel,B2BUserGroupData> getB2BUserGroupConverter()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setB2BUserGroupConverter

      public void setB2BUserGroupConverter(Converter<B2BUserGroupModel,B2BUserGroupData> b2BUserGroupConverter)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getB2BPermissionTypeDataConverter

      protected Converter<B2BPermissionTypeEnum,B2BPermissionTypeData> getB2BPermissionTypeDataConverter()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setB2BPermissionTypeDataConverter

      public void setB2BPermissionTypeDataConverter(Converter<B2BPermissionTypeEnum,B2BPermissionTypeData> b2bPermissionTypeDataConverter)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getB2BCustomerReversePopulator

      protected Populator<CustomerData,B2BCustomerModel> getB2BCustomerReversePopulator()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      the b2bCustomerReversePopulator
    • setB2BCustomerReversePopulator

      public void setB2BCustomerReversePopulator(Populator<CustomerData,B2BCustomerModel> b2BCustomerReversePopulator)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      b2BCustomerReversePopulator - the b2bCustomerReversePopulator to set
    • getEnumerationService

      protected EnumerationService getEnumerationService()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setEnumerationService

      public void setEnumerationService(EnumerationService enumerationService)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getB2BPermissionReversePopulator

      protected Populator<B2BPermissionData,B2BPermissionModel> getB2BPermissionReversePopulator()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setB2BPermissionReversePopulator

      public void setB2BPermissionReversePopulator(Populator<B2BPermissionData,B2BPermissionModel> b2bPermissionReversePopulator)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getB2BCommerceUserService

      protected B2BCommerceUserService getB2BCommerceUserService()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setB2BCommerceUserService

      public void setB2BCommerceUserService(B2BCommerceUserService b2BCommerceUserService)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getB2BCommerceUnitService

      protected B2BCommerceUnitService getB2BCommerceUnitService()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setB2BCommerceUnitService

      public void setB2BCommerceUnitService(B2BCommerceUnitService b2BCommerceUnitService)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getB2BCommercePermissionService

      protected B2BCommercePermissionService getB2BCommercePermissionService()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setB2BCommercePermissionService

      public void setB2BCommercePermissionService(B2BCommercePermissionService b2BCommercePermissionService)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getB2BCommerceBudgetService

      protected B2BCommerceBudgetService getB2BCommerceBudgetService()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setB2BCommerceBudgetService

      public void setB2BCommerceBudgetService(B2BCommerceBudgetService b2BCommerceBudgetService)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getB2BCommerceCostCenterService

      protected B2BCommerceCostCenterService getB2BCommerceCostCenterService()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setB2BCommerceCostCenterService

      public void setB2BCommerceCostCenterService(B2BCommerceCostCenterService b2BCommerceCostCenterService)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getB2BCommerceB2BUserGroupService

      protected B2BCommerceB2BUserGroupService getB2BCommerceB2BUserGroupService()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setB2BCommerceB2BUserGroupService

      public void setB2BCommerceB2BUserGroupService(B2BCommerceB2BUserGroupService b2BCommerceB2BUserGroupService)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getModelService

      protected ModelService getModelService()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setModelService

      public void setModelService(ModelService modelService)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getB2BUnitReversePopulator

      protected Populator<B2BUnitData,B2BUnitModel> getB2BUnitReversePopulator()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      the b2BUnitReversePopulator
    • setB2BUnitReversePopulator

      public void setB2BUnitReversePopulator(Populator<B2BUnitData,B2BUnitModel> b2bUnitReversePopulator)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      b2bUnitReversePopulator - the b2BUnitReversePopulator to set
    • getBaseStoreService

      protected BaseStoreService getBaseStoreService()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setBaseStoreService

      public void setBaseStoreService(BaseStoreService baseStoreService)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getB2BApproverService

      protected B2BApproverService<B2BCustomerModel> getB2BApproverService()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setB2BApproverService

      public void setB2BApproverService(B2BApproverService<B2BCustomerModel> b2bApproverService)
      Deprecated, for removal: This API element is subject to removal in a future version.