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 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 repository
      requested - This is expected to be a non null list of clssifications that are the desired state for the classifications
  • Method Details

    • 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