Interface CompanyB2BCommerceService
- All Known Implementing Classes:
DefaultB2BCommerceB2BUserGroupService,DefaultB2BCommerceBudgetService,DefaultB2BCommerceCostCenterService,DefaultB2BCommercePermissionService,DefaultB2BCommerceUnitService,DefaultB2BCommerceUserService,DefaultCompanyB2BCommerceService
Deprecated, for removal: This API element is subject to removal in a future version.
A service which services organization management.
-
Method Summary
Modifier and TypeMethodDescriptionCollection<? extends CurrencyModel>Deprecated, for removal: This API element is subject to removal in a future version.Get all currencies for the current storeDeprecated, for removal: This API element is subject to removal in a future version.Gets a b2b user group given its uidDeprecated, 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<T extends CurrencyModel>
TgetCurrencyForIsoCode(String isoCode) Deprecated, for removal: This API element is subject to removal in a future version.Get the currencyModel for the given ISO code<T extends B2BCustomerModel>
TDeprecated, for removal: This API element is subject to removal in a future version.Gets a current session user as aB2BCustomerModel<T extends B2BCustomerModel>
TgetCustomerForUid(String uid) Deprecated, for removal: This API element is subject to removal in a future version.Gets a customer for the given uid<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 groupgetPagedUsersForUserGroups(PageableData pageableData, String... userGroupUID) Deprecated, for removal: This API element is subject to removal in a future version.Searches for users<T extends B2BUnitModel>
TgetParentUnit(B2BUnitModel unit) Deprecated, for removal: This API element is subject to removal in a future version.Gets the parent unit given a unit object.getPermissionForCode(String permissionCode) Deprecated, for removal: This API element is subject to removal in a future version.GetsB2BPermissionModelfor a given permission codegetUnitForUid(String unitUid) Deprecated, for removal: This API element is subject to removal in a future version.Get aB2BUnitModelfor a unique identifier unitUid<T extends ItemModel>
voidsaveModel(T model) Deprecated, for removal: This API element is subject to removal in a future version.Persists the model delegating toModelService.save(Object)
-
Method Details
-
getUnitForUid
Deprecated, for removal: This API element is subject to removal in a future version.Get aB2BUnitModelfor a unique identifier unitUid- Parameters:
unitUid- A unique identifier for aB2BUnitModel- Returns:
- A unit if exist or null if not found
-
getCurrentUser
Deprecated, for removal: This API element is subject to removal in a future version.Gets a current session user as aB2BCustomerModel- 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 resultuserGroupUID- 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 unituserGroupId- 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
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 theCurrencyModel- Returns:
- A
CurrencyModelobject that matches the given ISO code
-
saveModel
Deprecated, for removal: This API element is subject to removal in a future version.Persists the model delegating toModelService.save(Object)- Parameters:
model- A model to save.
-
getCustomerForUid
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 forB2BCustomerModel- Returns:
- A
B2BCustomerModelfor uid
-
getParentUnit
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 forB2BUnitModel- Returns:
- A
B2BUnitModelfor given unit
-
getB2BUserGroupForUid
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 forB2BUserGroupModel- Returns:
- A
B2BUserGroupModelfor given unit
-
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
Mapcontaining the business processes information
-
getPermissionForCode
Deprecated, for removal: This API element is subject to removal in a future version.GetsB2BPermissionModelfor a given permission code- Parameters:
permissionCode- A unique identifier forB2BPermissionModel- Returns:
B2BPermissionModelobject
-
B2BCommerceB2BUserGroupService,DefaultB2BBudgetService,B2BCommerceCostCenterService,B2BCommercePermissionService,B2BCommerceUnitService,B2BCommerceUserService,B2BApprovalProcessServiceinstead.