Interface B2BCommerceUnitService
- All Superinterfaces:
B2BCommerceUnitService
- All Known Implementing Classes:
DefaultB2BCommerceUnitService
@Deprecated(since="6.0",
forRemoval=true)
public interface B2BCommerceUnitService
extends B2BCommerceUnitService
Deprecated, for removal: This API element is subject to removal in a future version.
A service for unit management within b2b commerce.
Interface kept for backwards compatibility reasons.
-
Method Summary
Modifier and TypeMethodDescriptionaddApproverToUnit(String unitId, String approverId) Deprecated, for removal: This API element is subject to removal in a future version.Add approver to given unitfindPagedApproversForUnitByGroupMembership(PageableData pageableData, String unitUid, String... userGroupUid) Deprecated, for removal: This API element is subject to removal in a future version.Gets list ofSearchPageDataB2BCustomerModelprovided with required pagination parameters withPageableData<T extends B2BCustomerModel>
TgetCustomerForUid(String uid) Deprecated, for removal: This API element is subject to removal in a future version.Gets a customer for a given uidremoveApproverFromUnit(String unitUid, String approverUid) Deprecated, for removal: This API element is subject to removal in a future version.If an approver is a member of the B2BUnit remove b2bapprovergroup role, if the approver is a member of the current branch of units the approver will be removed fromB2BUnitModel.getApprovers()relationshipMethods inherited from interface de.hybris.platform.b2b.company.B2BCommerceUnitService
disableUnit, editAddressEntry, enableUnit, getAddressForCode, getAllowedParentUnits, getAllUnitsOfOrganization, getBranch, getOrganization, getPagedUsersForUnit, getParentUnit, getParentUnit, getRootUnit, getUnitForUid, removeAddressEntry, saveAddressEntry, setParentUnit, updateBranchInSession
-
Method Details
-
getCustomerForUid
Deprecated, for removal: This API element is subject to removal in a future version.Gets a customer for a given uid- Parameters:
uid- A unique identifier forB2BCustomerModel- Returns:
- A
B2BCustomerModelfor the given uid
-
addApproverToUnit
Deprecated, for removal: This API element is subject to removal in a future version.Add approver to given unit- Parameters:
unitId- A unique identifier forB2BUnitModelapproverId- A unique identifier forB2BCustomerModelwho is a approver- Returns:
- Updated
B2BCustomerModelobject after adding approver to customer.
-
removeApproverFromUnit
Deprecated, for removal: This API element is subject to removal in a future version.If an approver is a member of the B2BUnit remove b2bapprovergroup role, if the approver is a member of the current branch of units the approver will be removed fromB2BUnitModel.getApprovers()relationship- Parameters:
unitUid- A unique identifier ofB2BUnitModelapproverUid- A unique identifier ofB2BCustomerModel- Returns:
- An approver who was removed from a
B2BUnitModel.getApprovers()
-
findPagedApproversForUnitByGroupMembership
SearchPageData<B2BCustomerModel> findPagedApproversForUnitByGroupMembership(PageableData pageableData, String unitUid, String... userGroupUid) Deprecated, for removal: This API element is subject to removal in a future version.Gets list ofSearchPageDataB2BCustomerModelprovided with required pagination parameters withPageableData- Parameters:
pageableData- Pagination informationunitUid- A unique identifier ofB2BUnitModeluserGroupUid- A unique identifier ofB2BUserGroupModel- Returns:
- Collection of paginated
B2BCostCenterModelobjects
-
B2BCommerceUnitServiceinstead.