Package no.oslomet.aaas.utils
Class ARXConfigurationFactory
- java.lang.Object
-
- no.oslomet.aaas.utils.ARXConfigurationFactory
-
- All Implemented Interfaces:
ConfigurationFactory
@Component public class ARXConfigurationFactory extends java.lang.Object implements ConfigurationFactory
-
-
Field Summary
Fields Modifier and Type Field Description private ARXPrivacyCriterionFactoryarxPrivacyCriterionFactory
-
Constructor Summary
Constructors Constructor Description ARXConfigurationFactory(ARXPrivacyCriterionFactory arxPrivacyCriterionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.deidentifier.arx.ARXConfigurationcreate(MetaData metaData)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.private voidsetPrivacyModels(org.deidentifier.arx.ARXConfiguration config, MetaData metaData)Mutates an ARXARXConfigurationobject by setting the privacy models defined by the payload.private voidsetSuppressionLimit(org.deidentifier.arx.ARXConfiguration config)Mutates ARXARXConfigurationobject by setting the suppression limit configuration for anonymization.
-
-
-
Field Detail
-
arxPrivacyCriterionFactory
private ARXPrivacyCriterionFactory arxPrivacyCriterionFactory
-
-
Constructor Detail
-
ARXConfigurationFactory
@Autowired public ARXConfigurationFactory(ARXPrivacyCriterionFactory arxPrivacyCriterionFactory)
-
-
Method Detail
-
create
public org.deidentifier.arx.ARXConfiguration create(MetaData metaData)
- Specified by:
createin interfaceConfigurationFactory
-
setSuppressionLimit
private void setSuppressionLimit(org.deidentifier.arx.ARXConfiguration config)
Mutates ARXARXConfigurationobject by setting the suppression limit configuration for anonymization.- Parameters:
config- an ARXARXConfigurationobject that holds the anonymization/data set settings
-
setPrivacyModels
private void setPrivacyModels(org.deidentifier.arx.ARXConfiguration config, MetaData metaData)Mutates an ARXARXConfigurationobject by setting the privacy models defined by the payload.- Parameters:
config- an ARXARXConfigurationobject that holds the anonymize/data set settingsmetaData- object containing parameters that defines the privacy models to be used
-
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
-
-