T - the principal (customer)public interface B2BApproverService<T>
| Modifier and Type | Method and Description |
|---|---|
B2BCustomerModel |
addApproverToCustomer(java.lang.String user,
java.lang.String approver)
Add an approver for a given user and return the updated
B2BCustomerModel object updated with approver
details |
B2BCustomerModel |
addApproverToUnit(java.lang.String unitId,
java.lang.String approverId)
Add approver to given unit
|
SearchPageData<B2BCustomerModel> |
findPagedApproversForUnitByGroupMembership(PageableData pageableData,
java.lang.String unitUid,
java.lang.String... userGroupUid)
Gets list of
SearchPageData B2BCustomerModel provided with required pagination parameters with
PageableData |
java.util.List<UserModel> |
getAccountManagerApprovers(PrincipalModel principal)
Gets the list of account manager approvers.
|
java.util.List<T> |
getAllActiveApprovers(B2BCustomerModel principal)
Gets all the active approvers for a given customer
|
java.util.List<T> |
getAllApprovers(T principal)
Gets the approvers assigned to principal(customer) directly or as approver groups including its parent unit and
all the units assigned to its parent up to the root unit.
|
boolean |
isMemberOf(PrincipalGroupModel principal,
java.lang.String userGroupUid)
|
B2BCustomerModel |
removeApproverFromCustomer(java.lang.String user,
java.lang.String approver)
Remove an approver for a given user and return the updated
B2BCustomerModel object updated with approver
details |
B2BCustomerModel |
removeApproverFromUnit(java.lang.String unitUid,
java.lang.String approverUid)
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 from
B2BUnitModel.getApprovers()
relationship |
java.util.List<T> getAllApprovers(T principal)
principal - the principal (customer)@Deprecated boolean isMemberOf(PrincipalGroupModel principal, java.lang.String userGroupUid)
DefaultUserService.isMemberOfGroup(de.hybris.platform.core.model.user.UserGroupModel, de.hybris.platform.core.model.user.UserGroupModel)principal - the principaluserGroupUid - the uid of the user group to check if the principal is a memeber of.java.util.List<UserModel> getAccountManagerApprovers(PrincipalModel principal)
principal - the principaljava.util.List<T> getAllActiveApprovers(B2BCustomerModel principal)
principal - B2BCustomerModel addApproverToCustomer(java.lang.String user, java.lang.String approver)
B2BCustomerModel object updated with approver
detailsuser - A unique identifier for B2BCustomerModel representing a userapprover - A unique identifier for B2BCustomerModel representing a approverB2BCustomerModel object updated with approvers{@link - IllegalArgumentException} if the approver is not in the approver groupB2BCustomerModel removeApproverFromCustomer(java.lang.String user, java.lang.String approver)
B2BCustomerModel object updated with approver
detailsuser - A unique identifier for B2BCustomerModel representing a userapprover - A unique identifier for B2BCustomerModel representing a approverB2BCustomerModel object removed with approverB2BCustomerModel addApproverToUnit(java.lang.String unitId, java.lang.String approverId)
unitId - A unique identifier for B2BUnitModelapproverId - A unique identifier for B2BCustomerModel who is a approverB2BCustomerModel object after adding approver to customer.B2BCustomerModel removeApproverFromUnit(java.lang.String unitUid, java.lang.String approverUid)
B2BUnitModel.getApprovers()
relationshipunitUid - A unique identifier of B2BUnitModelapproverUid - A unique identifier of B2BCustomerModelB2BUnitModel.getApprovers()SearchPageData<B2BCustomerModel> findPagedApproversForUnitByGroupMembership(PageableData pageableData, java.lang.String unitUid, java.lang.String... userGroupUid)
SearchPageData B2BCustomerModel provided with required pagination parameters with
PageableDatapageableData - Pagination informationunitUid - A unique identifier of B2BUnitModeluserGroupUid - A unique identifier of B2BUserGroupModelB2BCostCenterModel objectsCopyright © 2018 SAP SE. All Rights Reserved.