public interface RepositoryAnonymizer
Repository.newAnonymizer()
Modifier and Type | Interface and Description |
---|---|
static interface |
RepositoryAnonymizer.RecordContext
Represents a record to be anonymized, granting the
privilege to modify some field values.
|
Modifier and Type | Method and Description |
---|---|
void |
anonymizeHistory(Consumer<RepositoryAnonymizer.RecordContext> aRecordAnonymizer)
Anonymizes the history records as specified by this object.
|
RepositoryAnonymizer |
setDatasetReference(AdaptationReference aDataset)
Specifies the dataset reference in which records must be anonymized.
|
RepositoryAnonymizer |
setRecordKey(PrimaryKey aRecordKey)
Specifies the records to be anonymized.
|
RepositoryAnonymizer |
setTable(Path aTablePath,
SchemaLocation aDataModel)
Specifies the table to be impacted by the anonymization.
|
RepositoryAnonymizer setTable(Path aTablePath, SchemaLocation aDataModel)
RepositoryAnonymizer setDatasetReference(AdaptationReference aDataset)
Adaptation.getDatasetReference()
RepositoryAnonymizer setRecordKey(PrimaryKey aRecordKey)
void anonymizeHistory(Consumer<RepositoryAnonymizer.RecordContext> aRecordAnonymizer)
specified table
for the
dataset reference
will be anonymized.
Some fields cannot be modified:
AdaptationTable.getHistory()
).Limitations:
IllegalStateException
is thrown.aRecordAnonymizer
- Anonymization operation to be applied;
the accept
method
will be called for every record to be anonymized.IllegalStateException
- If the specification of this object is incomplete or not consistent, or
if history is not activated by the data model for the specified table.AdaptationTable.getHistory()