Class AbstractAnonymizationHandler
java.lang.Object
com.broadleafcommerce.customer.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:
AccountMemberAnonymizationHandler
,CustomerAddressAnonymizationHandler
,CustomerAnonymizationHandler
,CustomerNoteAnonymizationHandler
,PaymentAccountAnonymizationHandler
public abstract class AbstractAnonymizationHandler
extends Object
implements com.broadleafcommerce.common.privacy.anonymization.AnonymizationHandler
Provide common processing functionality to all customer 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected List<com.broadleafcommerce.common.privacy.anonymization.AnonymizationRecord>
Process aPhone
instanceprotected List<com.broadleafcommerce.common.privacy.anonymization.AnonymizationRecord>
processAdditionalPhones
(String boundedContextIdentifier, List<AdditionalPhone> members, String type, String fieldName) Process a list ofAdditionalPhone
instancesMethods 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(String boundedContextIdentifier, @Nullable Phone memberPhone, String type, String fieldName) Process aPhone
instance- Parameters:
boundedContextIdentifier
- Identifier for an entity containing personal identifiable information. Usually customer id.memberPhone
- The instance to processtype
- The simple class name for the entity containing the CustomerReffieldName
- The name of the field being changed in the entity- Returns:
- List of change information for all updated fields
-
processAdditionalPhones
protected List<com.broadleafcommerce.common.privacy.anonymization.AnonymizationRecord> processAdditionalPhones(String boundedContextIdentifier, @Nullable List<AdditionalPhone> members, String type, String fieldName) Process a list ofAdditionalPhone
instances- Parameters:
boundedContextIdentifier
- Identifier for an entity containing personal identifiable information. Usually customer id.members
- The instances to processtype
- The simple class name for the entity containing the CustomerReffieldName
- The name of the field being changed in the entity- Returns:
- List of change information for all updated fields
-