Package no.oslomet.aaas.utils
Class ARXConfigurationSetter
- java.lang.Object
-
- no.oslomet.aaas.utils.ARXConfigurationSetter
-
@Component public class ARXConfigurationSetter extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringCOLUMNNAME
-
Constructor Summary
Constructors Constructor Description ARXConfigurationSetter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private org.deidentifier.arx.criteria.PrivacyCriteriongetPrivacyModel(PrivacyModel model, java.util.Map<java.lang.String,java.lang.String> params)Returns an ArxPrivacyCriterionobject for the desired privacy object selected by the user.org.deidentifier.arx.ARXConfigurationsetPrivacyModels(org.deidentifier.arx.ARXConfiguration config, AnonymizationPayload payload)Returns an ARXARXConfigurationobject that sets the privacy models defined by the payload.org.deidentifier.arx.ARXConfigurationsetSuppressionLimit(org.deidentifier.arx.ARXConfiguration config)Sets the suppression limit configuration for anonymization in the ARXARXConfigurationobject, then returns it.
-
-
-
Field Detail
-
COLUMNNAME
private static final java.lang.String COLUMNNAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
setSuppressionLimit
public org.deidentifier.arx.ARXConfiguration setSuppressionLimit(org.deidentifier.arx.ARXConfiguration config)
Sets the suppression limit configuration for anonymization in the ARXARXConfigurationobject, then returns it.- Parameters:
config- an ARXARXConfigurationobject that holds the anonymization/data set settings- Returns:
- an ARX
ARXConfigurationobject with the suppression setting
-
setPrivacyModels
public org.deidentifier.arx.ARXConfiguration setPrivacyModels(org.deidentifier.arx.ARXConfiguration config, AnonymizationPayload payload)Returns an ARXARXConfigurationobject that sets the privacy models defined by the payload.- Parameters:
config- an ARXARXConfigurationobject that holds the anonymize/data set settingspayload- map containing parameters that defines the privacy models to be used- Returns:
- an ARX
ARXConfigurationobject with the assigned privacy models settings
-
getPrivacyModel
private org.deidentifier.arx.criteria.PrivacyCriterion getPrivacyModel(PrivacyModel model, java.util.Map<java.lang.String,java.lang.String> params)
Returns an ArxPrivacyCriterionobject for the desired privacy object selected by the user.- Parameters:
model- enum representing the privacy model type we want createdparams- map containing parameters that defines which settings to be used to created the privacy model- Returns:
- the
PrivacyCriterionobject created with the specified parameters
-
-