Class DefaultAnonymizationService
java.lang.Object
com.broadleafcommerce.common.privacy.anonymization.DefaultAnonymizationService
- All Implemented Interfaces:
AnonymizationService
Default implementation of
AnonymizationService
.-
Constructor Summary
ConstructorDescriptionDefaultAnonymizationService
(List<AnonymizationHandler> handlers, com.broadleafcommerce.common.extension.data.DataRouteReference reference) -
Method Summary
Modifier and TypeMethodDescriptionGiven an identifier, find the associated entity containing personal identifiable information and apply anonymized data for all relevant fields.
-
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 interfaceAnonymizationService
- 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. SeeDataRoutePartitionAware.getDataRoutePartition()
.- Returns:
- Aggregate result of change as a detailed report
-