Interface B2BApproverFacade
- All Known Implementing Classes:
DefaultB2BApproverFacade
public interface B2BApproverFacade
The B2BApproverFacade manages approvals
- Since:
- 6.0
-
Method Summary
Modifier and TypeMethodDescriptionaddApproverForCustomer(String customerUid, String approverUid) Adds an approver for a customer.addApproverToUnit(String unitUid, String approverUid) Adds an approver to a unit.getPagedApproversForCustomer(PageableData pageableData, String customerUid) Returns the list of approvers for a customers.getPagedApproversForUnit(PageableData pageableData, String unitUid) Gets a paged list of approvers.removeApproverFromCustomer(String customerUid, String approverUid) Removes an approver from a customer.removeApproverFromUnit(String unitUid, String approverUid) Removes an approver from a unit.
-
Method Details
-
getPagedApproversForUnit
Gets a paged list of approvers. Approvers already assigned to the business unit with unitUid are marked as selected.- Parameters:
pageableData- Pagination dataunitUid- A unit id of the business unit from which to check selected approvers.- Returns:
- A paged approver data.
-
addApproverToUnit
Adds an approver to a unit.- Parameters:
unitUid- A unit to add an approver toapproverUid- The approver to add to a unit's list of approvers- Returns:
- An approver if added successfully otherwise null.
-
removeApproverFromUnit
Removes an approver from a unit.- Parameters:
unitUid- A business unit uid.approverUid- An approver uid.- Returns:
- An approver
-
getPagedApproversForCustomer
SearchPageData<CustomerData> getPagedApproversForCustomer(PageableData pageableData, String customerUid) Returns the list of approvers for a customers.- Parameters:
pageableData- Pagination DatacustomerUid- the uid of the customer- Returns:
- Get Paginated list found approvers
-
addApproverForCustomer
Adds an approver for a customer.- Parameters:
customerUid- the uid of the customerapproverUid- the uid of the approver- Returns:
- Returns the
B2BSelectionData
-
removeApproverFromCustomer
Removes an approver from a customer.- Parameters:
customerUid- the uid of the customerapproverUid- the uid of the approver- Returns:
- Returns the
B2BSelectionData
-