Class ARXAnonymizer

  • All Implemented Interfaces:
    Anonymizer

    @Component
    public class ARXAnonymizer
    extends java.lang.Object
    implements Anonymizer
    Anonymizer class using the ARX library to implement the anonymization
    • Field Detail

      • logger

        private final org.slf4j.Logger logger
    • Method Detail

      • anonymize

        public AnonymizeResult anonymize​(Request payload)
        Description copied from interface: Anonymizer
        Method to run anonymization on data in the payload with the provided parameters in the payload
        Specified by:
        anonymize in interface Anonymizer
        Parameters:
        payload - Model object containing the data to be anonymized and params to use in anonymization
        Returns:
        AnonymizeResult result object containing the best case anonymization and statistics
      • packageResult

        private AnonymizeResult packageResult​(org.deidentifier.arx.ARXResult result,
                                              Request payload)
        Returns an AnonymizeResult object containing a packaged results from the anonymized dataset
        Parameters:
        result - an ARX ARXResult object containing the anonymized data and meta data
        payload - a Request object containing the dataset to be anonymized and the meta data to determine the settings and attributes on how to anonymized and analyze the data set
        Returns:
        an AnonymizeResult object containing a packaged results from the anonymized dataset
      • createRawDataList

        private java.util.List<java.lang.String[]> createRawDataList​(org.deidentifier.arx.ARXResult result)
        Returns a String that contains the anonymized data. This method is used to prepare the data set to be easily read and imported in the response payload.
        Parameters:
        result - an ARX ARXResult object that holds the anonymized data set.
        Returns:
        a String containing the anonymized data set.