Interface CompanyB2BCommerceService

All Known Implementing Classes:
DefaultB2BCommerceB2BUserGroupService, DefaultB2BCommerceBudgetService, DefaultB2BCommerceCostCenterService, DefaultB2BCommercePermissionService, DefaultB2BCommerceUnitService, DefaultB2BCommerceUserService, DefaultCompanyB2BCommerceService

@Deprecated(since="6.0", forRemoval=true) public interface CompanyB2BCommerceService
Deprecated, for removal: This API element is subject to removal in a future version.
A service which services organization management.
  • Method Details

    • getUnitForUid

      B2BUnitModel getUnitForUid(String unitUid)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Get a B2BUnitModel for a unique identifier unitUid
      Parameters:
      unitUid - A unique identifier for a B2BUnitModel
      Returns:
      A unit if exist or null if not found
    • getCurrentUser

      <T extends B2BCustomerModel> T getCurrentUser()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets a current session user as a B2BCustomerModel
      Returns:
      A customer in the session.
    • getPagedUsersForUserGroups

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

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

      Collection<? extends CurrencyModel> getAllCurrencies()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Get all currencies for the current store
      Returns:
      Collection of currencyModels
    • getCurrencyForIsoCode

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

      <T extends ItemModel> void saveModel(T model)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Persists the model delegating to ModelService.save(Object)
      Parameters:
      model - A model to save.
    • getCustomerForUid

      <T extends B2BCustomerModel> T getCustomerForUid(String uid)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets a customer for the given uid
      Parameters:
      uid - A unique identifier for B2BCustomerModel
      Returns:
      A B2BCustomerModel for uid
    • getParentUnit

      <T extends B2BUnitModel> T getParentUnit(B2BUnitModel unit)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the parent unit given a unit object.
      Parameters:
      unit - A unique identifier for B2BUnitModel
      Returns:
      A B2BUnitModel for given unit
    • getB2BUserGroupForUid

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

      Map<String,String> getBusinessProcesses()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets a map object containing the business processes for the current store
      Returns:
      A Map containing the business processes information
    • getPermissionForCode

      B2BPermissionModel getPermissionForCode(String permissionCode)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets B2BPermissionModel for a given permission code
      Parameters:
      permissionCode - A unique identifier for B2BPermissionModel
      Returns:
      B2BPermissionModel object