Class 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 Detail

      • CustomerAnonymizationEndpoint

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

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