Verifies if the passed customer can participate in the use case as payee, based on the customer's privileges.
Syntax
void
verifyPayeePrivilege
(
Customer
payee
,
UseCase
useCase
) throws TransactionParticipantException
Parameters
-
payee –
the customer to check.
-
useCase –
the current use case.
Exceptions
-
TransactionParticipantException –
if the payee is lacking the required privilege.