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
Updates PII fields for the 
Customer domain.- 
Field Summary
Fields inherited from interface com.broadleafcommerce.common.extension.data.DataRoutePartitionAware
ALL_MATCHFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionList<com.broadleafcommerce.common.privacy.anonymization.AnonymizationRecord>protected CustomerService<Customer>intgetOrder()protected StringGenerates a random email with the patternAnonymizationUtils.ANONYMOUS_EMAIL_PATTERN.protected StringGenerates a v4 UUID and removes all hyphens.protected List<com.broadleafcommerce.common.privacy.anonymization.AnonymizationRecord>handleRecords(String boundedContextIdentifier, Customer member, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Methods inherited from class com.broadleafcommerce.customer.service.anonymization.AbstractAnonymizationHandler
process, processAdditionalPhonesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.broadleafcommerce.common.privacy.anonymization.AnonymizationHandler
empty, fail, process 
- 
Constructor Details
- 
CustomerAnonymizationHandler
 
 - 
 - 
Method Details
- 
getDataRoutePartition
 - 
getOrder
public int getOrder() - 
anonymize
 - 
handleRecords
 - 
getRandomEmail
Generates a random email with the patternAnonymizationUtils.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
Generates a v4 UUID and removes all hyphens.- Returns:
 - A v4 UUID and removes all hyphens.
 
 - 
getCustomerService
 
 -