Class AbstractAnonymizationHandler

java.lang.Object
com.broadleafcommerce.paymenttransaction.service.anonymization.AbstractAnonymizationHandler
All Implemented Interfaces:
com.broadleafcommerce.common.extension.data.DataRoutePartitionAware, com.broadleafcommerce.common.privacy.anonymization.AnonymizationHandler, org.springframework.core.Ordered
Direct Known Subclasses:
PaymentAnonymizationHandler, SavedPaymentMethodAnonymizationHandler

public abstract class AbstractAnonymizationHandler extends Object implements com.broadleafcommerce.common.privacy.anonymization.AnonymizationHandler
Provide common processing functionality to all payment-related AnonymizationHandler instances.
  • 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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected List<com.broadleafcommerce.common.privacy.anonymization.AnonymizationRecord>
    process(@NonNull String boundedContextIdentifier, @NonNull Map<String,String> map, @NonNull List<String> keysToProcess, @NonNull String type, @NonNull String fieldName)
    Process a Map instance
    protected List<com.broadleafcommerce.common.privacy.anonymization.AnonymizationRecord>
    process(@NonNull String boundedContextIdentifier, Address address, @NonNull String type, @NonNull String fieldName)
    Process a Address instance
    protected List<com.broadleafcommerce.common.privacy.anonymization.AnonymizationRecord>
    process(@NonNull String boundedContextIdentifier, CustomerRef customerRef, @NonNull String type, @NonNull String fieldName)
    Process a CustomerRef instance
    protected List<com.broadleafcommerce.common.privacy.anonymization.AnonymizationRecord>
    process(@NonNull String boundedContextIdentifier, Phone phone, @NonNull String type, @NonNull String fieldName)
    Process a Phone instance

    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

    anonymize, empty, fail, getOrder, process

    Methods inherited from interface com.broadleafcommerce.common.extension.data.DataRoutePartitionAware

    getDataRoutePartition
  • Constructor Details

    • AbstractAnonymizationHandler

      public AbstractAnonymizationHandler()
  • Method Details

    • process

      protected List<com.broadleafcommerce.common.privacy.anonymization.AnonymizationRecord> process(@NonNull @NonNull String boundedContextIdentifier, @Nullable CustomerRef customerRef, @NonNull @NonNull String type, @NonNull @NonNull String fieldName)
      Process a CustomerRef instance
      Parameters:
      boundedContextIdentifier - Identifier for an entity containing personal identifiable information. Usually customer id.
      customerRef - The instance to process
      type - The simple class name for the entity containing the CustomerRef
      fieldName - The name of the field being changed in the entity
      Returns:
      List of change information for all updated fields
    • process

      protected List<com.broadleafcommerce.common.privacy.anonymization.AnonymizationRecord> process(@NonNull @NonNull String boundedContextIdentifier, @Nullable Phone phone, @NonNull @NonNull String type, @NonNull @NonNull String fieldName)
      Process a Phone instance
      Parameters:
      boundedContextIdentifier - Identifier for an entity containing personal identifiable information. Usually customer id.
      phone - The instance to process
      type - The simple class name for the entity containing the CustomerRef
      fieldName - The name of the field being changed in the entity
      Returns:
      List of change information for all updated fields
    • process

      protected List<com.broadleafcommerce.common.privacy.anonymization.AnonymizationRecord> process(@NonNull @NonNull String boundedContextIdentifier, @Nullable Address address, @NonNull @NonNull String type, @NonNull @NonNull String fieldName)
      Process a Address instance
      Parameters:
      boundedContextIdentifier - Identifier for an entity containing personal identifiable information. Usually customer id.
      address - The instance to process
      type - The simple class name for the entity containing the CustomerRef
      fieldName - The name of the field being changed in the entity
      Returns:
      List of change information for all updated fields
    • process

      protected List<com.broadleafcommerce.common.privacy.anonymization.AnonymizationRecord> process(@NonNull @NonNull String boundedContextIdentifier, @NonNull @NonNull Map<String,String> map, @NonNull @NonNull List<String> keysToProcess, @NonNull @NonNull String type, @NonNull @NonNull String fieldName)
      Process a Map instance
      Parameters:
      boundedContextIdentifier - Identifier for an entity containing personal identifiable information. Usually customer id.
      map - The map instance to process
      keysToProcess - The map keys to be processed
      type - The simple class name for the entity containing the CustomerRef
      fieldName - The name of the field being changed in the entity
      Returns:
      List of change information for all updated fields