Class CustomerAnonymizationHandler

java.lang.Object
com.broadleafcommerce.customer.service.anonymization.AbstractAnonymizationHandler
com.broadleafcommerce.customer.service.anonymization.CustomerAnonymizationHandler
All Implemented Interfaces:
com.broadleafcommerce.common.extension.data.DataRoutePartitionAware, com.broadleafcommerce.common.privacy.anonymization.AnonymizationHandler, org.springframework.core.Ordered

public class CustomerAnonymizationHandler extends AbstractAnonymizationHandler
Updates PII fields for the Customer domain.
  • Constructor Details

  • Method Details

    • getDataRoutePartition

      public String getDataRoutePartition()
    • getOrder

      public int getOrder()
    • anonymize

      public List<com.broadleafcommerce.common.privacy.anonymization.AnonymizationRecord> anonymize(String boundedContextIdentifier, Object context)
    • handleRecords

      protected List<com.broadleafcommerce.common.privacy.anonymization.AnonymizationRecord> handleRecords(String boundedContextIdentifier, Customer member, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • getRandomEmail

      protected String getRandomEmail()
      Generates a random email with the pattern AnonymizationUtils.ANONYMOUS_EMAIL_PATTERN. The domain of the email will be the random part based on a v4 UUID.
      Returns:
      An email with a randomly generated string for the domain.
    • getRandomString

      protected String getRandomString()
      Generates a v4 UUID and removes all hyphens.
      Returns:
      A v4 UUID and removes all hyphens.
    • getCustomerService

      protected CustomerService<Customer> getCustomerService()