Class BankingApprovalServiceImpl
java.lang.Object
org.j7m.middleware.examples.banking.BankingApprovalServiceImpl
- All Implemented Interfaces:
BankingApprovalService
Demonstration-only approval service.
This class intentionally contains no real banking logic. It only shows caller identity, annotation authorization, audit-safe logging, and sensitive value redaction patterns.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a service with an empty safe audit log. -
Method Summary
Modifier and TypeMethodDescriptionapprovePayment(PaymentId id, Money amount) Approves a payment request when the caller has the required role and permission.auditLog()Returns safe audit entries.
-
Constructor Details
-
BankingApprovalServiceImpl
public BankingApprovalServiceImpl()Creates a service with an empty safe audit log.
-
-
Method Details
-
approvePayment
Approves a payment request when the caller has the required role and permission.- Specified by:
approvePaymentin interfaceBankingApprovalService- Parameters:
id- payment identifieramount- sensitive amount value- Returns:
- approval result
-
auditLog
Returns safe audit entries. Sensitive amount values are never included.- Specified by:
auditLogin interfaceBankingApprovalService- Returns:
- immutable audit entries
-