Class CustomerAnonymizationEndpoint

java.lang.Object
com.broadleafcommerce.customer.web.endpoint.CustomerAnonymizationEndpoint

@FrameworkRestController @FrameworkMapping("/pii/customers") @DataRouteByExample(Customer.class) @ConditionalOnProperty(value="broadleaf.customer.anonymization.enabled", matchIfMissing=true) public class CustomerAnonymizationEndpoint extends Object
Supply the anonymization related endpoint to the service. Supplies the entrypoint for anonymization of PII data for a customer.
  • Constructor Details

    • CustomerAnonymizationEndpoint

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

    • anonymize

      @Policy(permissionRoots="CUSTOMER", 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)