Class ClassificationGroupByOperation
java.lang.Object
org.odpi.openmetadata.accessservices.subjectarea.utilities.ClassificationGroupByOperation
A list of exiting classifications are compared with a list of requested Classifications, and the classifications are grouped into whether they
need to be added (if they are requested but do not exist), removed (if they are not requested but already exist) or updated if they exist and are requested.
This class only effects the relevant classifictions; a set of classification names - so that other classifications that may by in the existing Classification
List are not effected.
-
Constructor Summary
ConstructorsConstructorDescriptionClassificationGroupByOperation
(Set<String> relevantClassificationNames, Set<Classification> existing, Set<Classification> requested) Constructor -
Method Summary
Modifier and TypeMethodDescriptionList of classifications to be addedList of classification names to removedList of classifications to be updated
-
Constructor Details
-
ClassificationGroupByOperation
public ClassificationGroupByOperation(Set<String> relevantClassificationNames, Set<Classification> existing, Set<Classification> requested) Constructor- Parameters:
relevantClassificationNames
- - this is a Set of relevant classifications names,existing
- This is expected to be a non null list of Classifications that already exist in the repositoryrequested
- This is expected to be a non null list of clssifications that are the desired state for the classifications
-
-
Method Details
-
getAddClassifications
List of classifications to be added- Returns:
- List of classifications to be added
-
getRemoveClassifications
List of classification names to removed- Returns:
- List of classification names to be removed
-
getUpdateClassifications
List of classifications to be updated- Returns:
- List of classifications to be updated
-