Class CartAnonymizationHandler
java.lang.Object
com.broadleafcommerce.cart.service.anonymization.AbstractAnonymizationHandler
com.broadleafcommerce.cart.service.anonymization.CartAnonymizationHandler
- All Implemented Interfaces:
com.broadleafcommerce.common.extension.data.DataRoutePartitionAware
,com.broadleafcommerce.common.privacy.anonymization.AnonymizationHandler
,org.springframework.core.Ordered
Updates PII fields for the
Cart
domain.-
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
ConstructorsConstructorDescriptionCartAnonymizationHandler
(CartService<com.broadleafcommerce.cart.client.domain.Cart> cartService, CartAnonymizationProperties properties) -
Method Summary
Modifier and TypeMethodDescriptionList<com.broadleafcommerce.common.privacy.anonymization.AnonymizationRecord>
protected CartService<com.broadleafcommerce.cart.client.domain.Cart>
int
getOrder()
protected CartAnonymizationProperties
protected List<com.broadleafcommerce.common.privacy.anonymization.AnonymizationRecord>
handleRecords
(String boundedContextIdentifier, Stream<com.broadleafcommerce.cart.client.domain.Cart> members, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected List<com.broadleafcommerce.common.privacy.anonymization.AnonymizationRecord>
processFulfillmentGroups
(String boundedContextIdentifier, List<com.broadleafcommerce.cart.client.domain.FulfillmentGroup> groups, String type, String fieldName) protected com.broadleafcommerce.common.privacy.anonymization.AnonymizationRecord
validateAgainstInProcessCart
(String boundedContextIdentifier, com.broadleafcommerce.data.tracking.core.context.ContextInfo requested) Validate that the customer does not have an in-process cart.Methods inherited from class com.broadleafcommerce.cart.service.anonymization.AbstractAnonymizationHandler
process, process, process
Methods 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
empty, fail, process
-
Constructor Details
-
CartAnonymizationHandler
public CartAnonymizationHandler(CartService<com.broadleafcommerce.cart.client.domain.Cart> cartService, CartAnonymizationProperties properties)
-
-
Method Details
-
getDataRoutePartition
-
getOrder
public int getOrder() -
anonymize
-
validateAgainstInProcessCart
@Nullable protected com.broadleafcommerce.common.privacy.anonymization.AnonymizationRecord validateAgainstInProcessCart(String boundedContextIdentifier, com.broadleafcommerce.data.tracking.core.context.ContextInfo requested) Validate that the customer does not have an in-process cart. This is considered a failing circumstance andAnonymizationRecord.isFailureStopFlow()
will indicate that processing should cease.- Parameters:
boundedContextIdentifier
- Identifier for an entity containing personal identifiable information. Usually customer id.requested
- The context information that may inform filtering of fetch results- Returns:
- The record informing that an in-process cart is present, or null.
-
handleRecords
-
processFulfillmentGroups
-
getCartService
-
getProperties
-