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

public class CartAnonymizationHandler extends AbstractAnonymizationHandler
Updates PII fields for the Cart domain.
  • Constructor Details

  • Method Details

    • getDataRoutePartition

      public String getDataRoutePartition()
    • getOrder

      public int getOrder()
    • anonymize

      public List<com.broadleafcommerce.common.privacy.anonymization.AnonymizationRecord> anonymize(String boundedContextIdentifier, Object context)
    • 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 and AnonymizationRecord.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

      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)
    • processFulfillmentGroups

      protected List<com.broadleafcommerce.common.privacy.anonymization.AnonymizationRecord> processFulfillmentGroups(String boundedContextIdentifier, @Nullable List<com.broadleafcommerce.cart.client.domain.FulfillmentGroup> groups, String type, String fieldName)
    • getCartService

      protected CartService<com.broadleafcommerce.cart.client.domain.Cart> getCartService()
    • getProperties

      protected CartAnonymizationProperties getProperties()