Interface B2BCommerceUnitService
-
- All Superinterfaces:
B2BCommerceUnitService
- All Known Implementing Classes:
DefaultB2BCommerceUnitService
@Deprecated(since="6.0") public interface B2BCommerceUnitService extends B2BCommerceUnitService
Deprecated.Since 6.0. UseB2BCommerceUnitServiceinstead.A service for unit management within b2b commerce. Interface kept for backwards compatibility reasons.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description B2BCustomerModeladdApproverToUnit(java.lang.String unitId, java.lang.String approverId)Deprecated.Add approver to given unitSearchPageData<B2BCustomerModel>findPagedApproversForUnitByGroupMembership(PageableData pageableData, java.lang.String unitUid, java.lang.String... userGroupUid)Deprecated.Gets list ofSearchPageDataB2BCustomerModelprovided with required pagination parameters withPageableData<T extends B2BCustomerModel>
TgetCustomerForUid(java.lang.String uid)Deprecated.Gets a customer for a given uidB2BCustomerModelremoveApproverFromUnit(java.lang.String unitUid, java.lang.String approverUid)Deprecated.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-
Methods 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 Detail
-
getCustomerForUid
<T extends B2BCustomerModel> T getCustomerForUid(java.lang.String uid)
Deprecated.Gets a customer for a given uid- Parameters:
uid- A unique identifier forB2BCustomerModel- Returns:
- A
B2BCustomerModelfor the given uid
-
addApproverToUnit
B2BCustomerModel addApproverToUnit(java.lang.String unitId, java.lang.String approverId)
Deprecated.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
B2BCustomerModel removeApproverFromUnit(java.lang.String unitUid, java.lang.String approverUid)
Deprecated.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, java.lang.String unitUid, java.lang.String... userGroupUid)
Deprecated.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
-
-