Class OrderFulfillmentAnonymizationHandler

java.lang.Object
com.broadleafcommerce.order.anonymization.AbstractAnonymizationHandler
com.broadleafcommerce.order.anonymization.OrderFulfillmentAnonymizationHandler
All Implemented Interfaces:
com.broadleafcommerce.common.extension.data.DataRoutePartitionAware, com.broadleafcommerce.common.privacy.anonymization.AnonymizationHandler, org.springframework.core.Ordered

public class OrderFulfillmentAnonymizationHandler extends AbstractAnonymizationHandler
Updates PII fields for the OrderFulfillment 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)
    • validateAgainstUnfulfilledOrder

      protected List<com.broadleafcommerce.common.privacy.anonymization.AnonymizationRecord> validateAgainstUnfulfilledOrder(String boundedContextIdentifier, com.broadleafcommerce.data.tracking.core.context.ContextInfo filtered, com.broadleafcommerce.data.tracking.core.context.ContextInfo original)
      Validate that the customer does not have an unfulfilled order. 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.
      filtered - The context information that may inform filtering of fetch results
      original - The context information without any filters applied
      Returns:
      The records informing that an unfulfilled order is present, if applicable.
    • handleRecords

      protected List<com.broadleafcommerce.common.privacy.anonymization.AnonymizationRecord> handleRecords(String boundedContextIdentifier, List<com.broadleafcommerce.order.client.domain.OrderFulfillment> members, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • processShipment

      protected List<com.broadleafcommerce.common.privacy.anonymization.AnonymizationRecord> processShipment(String boundedContextIdentifier, @Nullable com.broadleafcommerce.order.client.domain.Shipment shipment, String type, String fieldName)
    • processAdditionalShipments

      protected List<com.broadleafcommerce.common.privacy.anonymization.AnonymizationRecord> processAdditionalShipments(String boundedContextIdentifier, @Nullable List<com.broadleafcommerce.order.client.domain.Shipment> shipments, String type, String fieldName)
    • getOrderService

      protected OrderService<com.broadleafcommerce.order.client.domain.Order> getOrderService()
    • getFulfillmentService

      protected OrderFulfillmentService<com.broadleafcommerce.order.client.domain.OrderFulfillment> getFulfillmentService()
    • getProperties

      protected OrderAnonymizationProperties getProperties()