Package org.dspace.statistics
Class AnonymizeStatistics
java.lang.Object
org.dspace.statistics.AnonymizeStatistics
Script to anonymize solr statistics according to GDPR specifications.
This script will anonymize records older than a certain threshold, configurable with the
'anonymize_statistics.time_threshold' config, with a default value of 90 days.
The records will be anonymized by replacing the last part of the ip address with a mask, this mask is configurable:
For IPv4 addresses, the config is 'anonymize_statistics.ip_v4_mask', with a default value of '255'
For IPv6 addresses, the config is 'anonymize_statistics.ip_v6_mask', with a default value of 'FFFF:FFFF'
The DNS value of the records will also be replaced by a mask, configurable with 'anonymize_statistics.dns_mask',
and with a default value of 'anonymized'.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classCallableimplementation to process a solr document to be anonymized. -
Method Summary
-
Method Details
-
main
- Throws:
org.apache.commons.cli.ParseException
-