Interface B2BApproverFacade

All Known Implementing Classes:
DefaultB2BApproverFacade

public interface B2BApproverFacade
The B2BApproverFacade manages approvals
Since:
6.0
  • Method Details

    • getPagedApproversForUnit

      SearchPageData<CustomerData> getPagedApproversForUnit(PageableData pageableData, String unitUid)
      Gets a paged list of approvers. Approvers already assigned to the business unit with unitUid are marked as selected.
      Parameters:
      pageableData - Pagination data
      unitUid - A unit id of the business unit from which to check selected approvers.
      Returns:
      A paged approver data.
    • addApproverToUnit

      B2BSelectionData addApproverToUnit(String unitUid, String approverUid)
      Adds an approver to a unit.
      Parameters:
      unitUid - A unit to add an approver to
      approverUid - The approver to add to a unit's list of approvers
      Returns:
      An approver if added successfully otherwise null.
    • removeApproverFromUnit

      B2BSelectionData removeApproverFromUnit(String unitUid, String approverUid)
      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 Data
      customerUid - the uid of the customer
      Returns:
      Get Paginated list found approvers
    • addApproverForCustomer

      B2BSelectionData addApproverForCustomer(String customerUid, String approverUid)
      Adds an approver for a customer.
      Parameters:
      customerUid - the uid of the customer
      approverUid - the uid of the approver
      Returns:
      Returns the B2BSelectionData
    • removeApproverFromCustomer

      B2BSelectionData removeApproverFromCustomer(String customerUid, String approverUid)
      Removes an approver from a customer.
      Parameters:
      customerUid - the uid of the customer
      approverUid - the uid of the approver
      Returns:
      Returns the B2BSelectionData