Class PaymentAnonymizationHandler
java.lang.Object
com.broadleafcommerce.paymenttransaction.service.anonymization.AbstractAnonymizationHandler
com.broadleafcommerce.paymenttransaction.service.anonymization.PaymentAnonymizationHandler
- All Implemented Interfaces:
com.broadleafcommerce.common.extension.data.DataRoutePartitionAware
,com.broadleafcommerce.common.privacy.anonymization.AnonymizationHandler
,org.springframework.core.Ordered
Updates PII fields for the
Payment
domain.-
Field Summary
Fields inherited from interface com.broadleafcommerce.common.extension.data.DataRoutePartitionAware
ALL_MATCH
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionPaymentAnonymizationHandler
(PaymentService<Payment> paymentService, PaymentTransactionService<PaymentTransaction> paymentTransactionService, PaymentAnonymizationProperties properties) -
Method Summary
Modifier and TypeMethodDescriptionList<com.broadleafcommerce.common.privacy.anonymization.AnonymizationRecord>
int
getOrder()
protected PaymentService<Payment>
protected PaymentTransactionService<PaymentTransaction>
protected PaymentAnonymizationProperties
protected List<com.broadleafcommerce.common.privacy.anonymization.AnonymizationRecord>
handleRecords
(@NonNull String boundedContextIdentifier, @NonNull Stream<Payment> payments, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected List<com.broadleafcommerce.common.privacy.anonymization.AnonymizationRecord>
processAddresses
(@NonNull String boundedContextIdentifier, Map<String, Address> addressByType, @NonNull String type, @NonNull String fieldName) protected List<com.broadleafcommerce.common.privacy.anonymization.AnonymizationRecord>
processTransactions
(@NonNull String boundedContextIdentifier, List<PaymentTransaction> transactions, @NonNull String type, @NonNull String fieldName, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Methods inherited from class com.broadleafcommerce.paymenttransaction.service.anonymization.AbstractAnonymizationHandler
process, process, process, process
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.broadleafcommerce.common.privacy.anonymization.AnonymizationHandler
empty, fail, process
-
Constructor Details
-
PaymentAnonymizationHandler
public PaymentAnonymizationHandler(PaymentService<Payment> paymentService, PaymentTransactionService<PaymentTransaction> paymentTransactionService, PaymentAnonymizationProperties properties)
-
-
Method Details
-
getDataRoutePartition
-
getOrder
public int getOrder() -
anonymize
-
handleRecords
-
processAddresses
-
processTransactions
protected List<com.broadleafcommerce.common.privacy.anonymization.AnonymizationRecord> processTransactions(@NonNull @NonNull String boundedContextIdentifier, @Nullable List<PaymentTransaction> transactions, @NonNull @NonNull String type, @NonNull @NonNull String fieldName, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
getPaymentService
-
getPaymentTransactionService
-
getProperties
-