Class DefaultAnonymizationService

java.lang.Object
com.broadleafcommerce.common.privacy.anonymization.DefaultAnonymizationService
All Implemented Interfaces:
AnonymizationService

public class DefaultAnonymizationService extends Object implements AnonymizationService
Default implementation of AnonymizationService.
  • Constructor Details

    • DefaultAnonymizationService

      public DefaultAnonymizationService(List<AnonymizationHandler> handlers, com.broadleafcommerce.common.extension.data.DataRouteReference reference)
  • Method Details

    • anonymize

      public AnonymizationReport anonymize(String boundedContextIdentifier, Object context, String routeFragment)
      Description copied from interface: AnonymizationService
      Given an identifier, find the associated entity containing personal identifiable information and apply anonymized data for all relevant fields.
      Specified by:
      anonymize in interface AnonymizationService
      Parameters:
      boundedContextIdentifier - Identifier for an entity containing personal identifiable information. Usually customer id.
      context - ContextInfo from data tracking used to inform fetch request filtration. Optional.
      routeFragment - The data route identifying package fragment. See DataRoutePartitionAware.getDataRoutePartition().
      Returns:
      Aggregate result of change as a detailed report