Entity declassification profile¶
The performance of programmatically declassifying existing entity instances from existing classifications.
The Open Metadata Repository Services (OMRS) interface for a metadata repository defines optional methods for declassifying entity instances:
| Method | Description |
|---|---|
declassifyEntity |
removes a classification from an existing entity instance, where the technology under test is the home repository for that classification |
purgeClassificationReferenceCopy |
removes a classification from an existing entity instance, where the technology under test is not the home repository for that classification |
Assertions
| ID | Description |
|---|---|
repository-entity-declassification-performance-declassifyEntity |
See (2) in detailed logic below. |
repository-entity-declassification-performance-purgeClassificationReferenceCopy |
See (4) in detailed logic below. |
For every classification type supported by the technology under test, this profile does the following (in order):
- Searches for
instancesPerTypeentities homed in the technology under test with the classification. (This usesfindEntitiesByClassificationwith a condition onmetadataCollectionIdand its performance is recorded as part of the classification search profile.) - For each of these entity instances,
declassifyEntityis called to remove the classification of this type from that instance. - Searches for
instancesPerTypereference copy entities with the classification. (This usesfindEntitiesByClassificationwith a condition onmetadataCollectionIdand its performance is recorded as part of the classification search profile.) - For each of these reference copy entity instances,
purgeClassificationReferenceCopyis called to remove the reference copy classification of this type from that instance.
Example
So, for example, if the technology under test supports 50 classification types, and the instancesPerType parameter is set to 100, then this profile will remove 50 (types) x 100 (instances per type) x 2 (home + reference copy methods) = 10 000 classifications. (And it will run findEntitiesByClassification 100 times.)
Raise an issue or comment below