Class ClassificationGroupByOperation
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.subjectarea.utilities.ClassificationGroupByOperation
-
public class ClassificationGroupByOperation extends Object
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
Constructors Constructor Description ClassificationGroupByOperation(Set<String> relevantClassificationNames, Set<Classification> existing, Set<Classification> requested)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Classification>getAddClassifications()List of classifications to be addedList<String>getRemoveClassifications()List of classification names to removedList<Classification>getUpdateClassifications()List of classifications to be updated
-
-
-
Constructor Detail
-
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 Detail
-
getAddClassifications
public List<Classification> getAddClassifications()
List of classifications to be added- Returns:
- List of classifications to be added
-
getRemoveClassifications
public List<String> getRemoveClassifications()
List of classification names to removed- Returns:
- List of classification names to be removed
-
getUpdateClassifications
public List<Classification> getUpdateClassifications()
List of classifications to be updated- Returns:
- List of classifications to be updated
-
-