Class DefaultCompanyB2BCommerceService

java.lang.Object
de.hybris.platform.b2bacceleratorservices.company.impl.DefaultCompanyB2BCommerceService
All Implemented Interfaces:
CompanyB2BCommerceService
Direct Known Subclasses:
DefaultB2BCommerceB2BUserGroupService, DefaultB2BCommerceBudgetService, DefaultB2BCommerceCostCenterService, DefaultB2BCommercePermissionService, DefaultB2BCommerceUnitService, DefaultB2BCommerceUserService

@Deprecated(since="6.0", forRemoval=true) public class DefaultCompanyB2BCommerceService extends Object implements CompanyB2BCommerceService
A service which services organization management
  • Constructor Details

    • DefaultCompanyB2BCommerceService

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

    • getUnitForUid

      public B2BUnitModel getUnitForUid(String unitUid)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: CompanyB2BCommerceService
      Get a B2BUnitModel for a unique identifier unitUid
      Specified by:
      getUnitForUid in interface CompanyB2BCommerceService
      Parameters:
      unitUid - A unique identifier for a B2BUnitModel
      Returns:
      A unit if exist or null if not found
    • getParentUnit

      public <T extends B2BUnitModel> T getParentUnit(B2BUnitModel unit)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: CompanyB2BCommerceService
      Gets the parent unit given a unit object.
      Specified by:
      getParentUnit in interface CompanyB2BCommerceService
      Parameters:
      unit - A unique identifier for B2BUnitModel
      Returns:
      A B2BUnitModel for given unit
    • getCurrentUser

      public <T extends B2BCustomerModel> T getCurrentUser()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: CompanyB2BCommerceService
      Gets a current session user as a B2BCustomerModel
      Specified by:
      getCurrentUser in interface CompanyB2BCommerceService
      Returns:
      A customer in the session.
    • getMembersOfUnitForUserGroup

      public <T extends B2BCustomerModel> List<T> getMembersOfUnitForUserGroup(B2BUnitModel unit, String userGroupId)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: CompanyB2BCommerceService
      Get members who are assigned to a unit with a specified user group
      Specified by:
      getMembersOfUnitForUserGroup in interface CompanyB2BCommerceService
      Parameters:
      unit - A business unit
      userGroupId - UserGroup id
      Returns:
      A collection of users assigned to the unit who are members of the specified group
    • getPagedUsersForUserGroups

      public SearchPageData<B2BCustomerModel> getPagedUsersForUserGroups(PageableData pageableData, String... userGroupUID)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: CompanyB2BCommerceService
      Searches for users
      Specified by:
      getPagedUsersForUserGroups in interface CompanyB2BCommerceService
      Parameters:
      pageableData - to use in narrowing result
      userGroupUID - uids of groups to search against
      Returns:
      users which belong to groups with given uids
    • getAllCurrencies

      public Collection<? extends CurrencyModel> getAllCurrencies()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: CompanyB2BCommerceService
      Get all currencies for the current store
      Specified by:
      getAllCurrencies in interface CompanyB2BCommerceService
      Returns:
      Collection of currencyModels
    • saveModel

      public <T extends ItemModel> void saveModel(T model)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: CompanyB2BCommerceService
      Persists the model delegating to ModelService.save(Object)
      Specified by:
      saveModel in interface CompanyB2BCommerceService
      Parameters:
      model - A model to save.
    • getCurrencyForIsoCode

      public <T extends CurrencyModel> T getCurrencyForIsoCode(String isoCode)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: CompanyB2BCommerceService
      Get the currencyModel for the given ISO code
      Specified by:
      getCurrencyForIsoCode in interface CompanyB2BCommerceService
      Parameters:
      isoCode - ISO Code of the CurrencyModel
      Returns:
      A CurrencyModel object that matches the given ISO code
    • getCustomerForUid

      public <T extends B2BCustomerModel> T getCustomerForUid(String uid)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: CompanyB2BCommerceService
      Gets a customer for the given uid
      Specified by:
      getCustomerForUid in interface CompanyB2BCommerceService
      Parameters:
      uid - A unique identifier for B2BCustomerModel
      Returns:
      A B2BCustomerModel for uid
    • getPermissionForCode

      public B2BPermissionModel getPermissionForCode(String permission)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: CompanyB2BCommerceService
      Gets B2BPermissionModel for a given permission code
      Specified by:
      getPermissionForCode in interface CompanyB2BCommerceService
      Parameters:
      permission - A unique identifier for B2BPermissionModel
      Returns:
      B2BPermissionModel object
    • getB2BUserGroupForUid

      public B2BUserGroupModel getB2BUserGroupForUid(String uid)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: CompanyB2BCommerceService
      Gets a b2b user group given its uid
      Specified by:
      getB2BUserGroupForUid in interface CompanyB2BCommerceService
      Parameters:
      uid - A unique identifier for B2BUserGroupModel
      Returns:
      A B2BUserGroupModel for given unit
    • getBusinessProcesses

      public Map<String,String> getBusinessProcesses()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: CompanyB2BCommerceService
      Gets a map object containing the business processes for the current store
      Specified by:
      getBusinessProcesses in interface CompanyB2BCommerceService
      Returns:
      A Map containing the business processes information
    • addMemberToUserGroup

      protected void addMemberToUserGroup(UserGroupModel usergroup, UserModel user)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • removedMemberFromUserGroup

      protected void removedMemberFromUserGroup(UserGroupModel usergroup, UserModel user)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getB2BCustomerService

      protected B2BCustomerService<B2BCustomerModel,B2BUnitModel> getB2BCustomerService()
      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.
    • getPagedB2BCustomerDao

      protected PagedB2BCustomerDao<B2BCustomerModel> getPagedB2BCustomerDao()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setPagedB2BCustomerDao

      public void setPagedB2BCustomerDao(PagedB2BCustomerDao<B2BCustomerModel> pagedB2BCustomerDao)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getB2BUnitService

      protected B2BUnitService<B2BUnitModel,B2BCustomerModel> getB2BUnitService()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setB2BUnitService

      public void setB2BUnitService(B2BUnitService<B2BUnitModel,B2BCustomerModel> b2BUnitService)
      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.
    • setB2BCustomerService

      public void setB2BCustomerService(B2BCustomerService<B2BCustomerModel,B2BUnitModel> b2BCustomerService)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getB2BCostCenterService

      public B2BCostCenterService getB2BCostCenterService()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setB2BCostCenterService

      public void setB2BCostCenterService(B2BCostCenterService b2bCostCenterService)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getCommonI18NService

      public CommonI18NService getCommonI18NService()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setCommonI18NService

      public void setCommonI18NService(CommonI18NService commonI18NService)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getModelService

      public 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.
    • getBusinessProcessService

      public BusinessProcessService getBusinessProcessService()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setBusinessProcessService

      public void setBusinessProcessService(BusinessProcessService businessProcessService)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getSessionService

      protected SessionService getSessionService()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setSessionService

      public void setSessionService(SessionService sessionService)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getB2BBudgetService

      public B2BBudgetService<B2BBudgetModel,B2BCustomerModel> getB2BBudgetService()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setB2BBudgetService

      public void setB2BBudgetService(B2BBudgetService<B2BBudgetModel,B2BCustomerModel> b2bBudgetService)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getSearchRestrictionService

      protected SearchRestrictionService getSearchRestrictionService()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setSearchRestrictionService

      public void setSearchRestrictionService(SearchRestrictionService searchRestrictionService)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getPagedB2BCostCenterDao

      public PagedGenericDao<B2BCostCenterModel> getPagedB2BCostCenterDao()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setPagedB2BCostCenterDao

      public void setPagedB2BCostCenterDao(PagedGenericDao<B2BCostCenterModel> pagedB2BCostCenterDao)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getPagedB2BBudgetDao

      public PagedGenericDao<B2BBudgetModel> getPagedB2BBudgetDao()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setPagedB2BBudgetDao

      public void setPagedB2BBudgetDao(PagedGenericDao<B2BBudgetModel> pagedB2BBudgetDao)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getPagedB2BPermissionDao

      protected PagedGenericDao<B2BPermissionModel> getPagedB2BPermissionDao()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setPagedB2BPermissionDao

      public void setPagedB2BPermissionDao(PagedGenericDao<B2BPermissionModel> pagedB2BPermissionDao)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getB2BPermissionService

      protected B2BPermissionService<B2BCustomerModel,B2BPermissionResultModel> getB2BPermissionService()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setB2BPermissionService

      public void setB2BPermissionService(B2BPermissionService<B2BCustomerModel,B2BPermissionResultModel> b2BPermissionService)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getCommerceCommonI18NService

      public CommerceCommonI18NService getCommerceCommonI18NService()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setCommerceCommonI18NService

      public void setCommerceCommonI18NService(CommerceCommonI18NService commerceCommonI18NService)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getPagedB2BUserGroupDao

      protected PagedGenericDao<B2BUserGroupModel> getPagedB2BUserGroupDao()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setPagedB2BUserGroupDao

      public void setPagedB2BUserGroupDao(PagedGenericDao<B2BUserGroupModel> pagedB2BUserGroupDao)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getB2BApprovalProcessLookUpStrategy

      protected B2BApprovalProcessLookUpStrategy getB2BApprovalProcessLookUpStrategy()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setB2BApprovalProcessLookUpStrategy

      public void setB2BApprovalProcessLookUpStrategy(B2BApprovalProcessLookUpStrategy b2BApprovalProcessLookUpStrategy)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getB2BGroupCycleValidator

      protected B2BGroupCycleValidator getB2BGroupCycleValidator()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setB2BGroupCycleValidator

      public void setB2BGroupCycleValidator(B2BGroupCycleValidator b2BGroupCycleValidator)
      Deprecated, for removal: This API element is subject to removal in a future version.