Class OrderAnonymizationEndpoint

java.lang.Object
com.broadleafcommerce.order.web.endpoint.OrderAnonymizationEndpoint

@FrameworkRestController @FrameworkMapping("/pii/orders") @DataRouteByExample(com.broadleafcommerce.order.client.domain.Order.class) @ConditionalOnProperty(value="broadleaf.order.anonymization.enabled", matchIfMissing=true) public class OrderAnonymizationEndpoint extends Object
Supply the anonymization related endpoint to the service. Supplies the entrypoint for anonymization of PII data for a customer.
  • Constructor Summary

    Constructors
    Constructor
    Description
    OrderAnonymizationEndpoint(com.broadleafcommerce.common.privacy.anonymization.AnonymizationService anonymizationService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.broadleafcommerce.common.privacy.anonymization.AnonymizationReport
    anonymize(String customerId, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OrderAnonymizationEndpoint

      public OrderAnonymizationEndpoint(com.broadleafcommerce.common.privacy.anonymization.AnonymizationService anonymizationService)
  • Method Details

    • anonymize

      @Policy(permissionRoots="ORDER", identityTypes=ADMIN) @FrameworkDeleteMapping("/{id}") public com.broadleafcommerce.common.privacy.anonymization.AnonymizationReport anonymize(@PathVariable("id") String customerId, @ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context)