Package util

Class Common

java.lang.Object
util.Common

public class Common extends Object
  • Constructor Details

    • Common

      public Common()
  • Method Details

    • processMetricsBuckets

      public static List<MetricEvaluationDTO> processMetricsBuckets(List<org.bson.Document> result)
      Create a list of MetricEvaluationDTO from a List of Document, containing metrics' evaluations.
      Parameters:
      result - The Document list containing the metrics' evaluations.
      Returns:
      The equivalent list of MetricEvaluationDTO.
    • processFactorsBuckets

      public static List<FactorEvaluationDTO> processFactorsBuckets(List<org.bson.Document> result)
      Create a list of FactorEvaluationDTO from a List of Document, containing factors' evaluations.
      Parameters:
      result - The Document list containing the factors' evaluations.
      Returns:
      The equivalent list of FactorEvaluationDTO.
    • processStrategicIndicatorsBuckets

      public static List<StrategicIndicatorEvaluationDTO> processStrategicIndicatorsBuckets(List<org.bson.Document> result)
      Create a list of StrategicIndicatorEvaluationDTO from a List of Document, containing strategic indicators' evaluations.
      Parameters:
      result - The Document list containing the strategic indicators' evaluations.
      Returns:
      The equivalent list of StrategicIndicatorEvaluationDTO.
    • getIDNames

      public static Map<String,String> getIDNames(String projectId, Constants.QMLevel QMLevel)
      Get the IDs and names of all the existing entities in each QMLevel.
      Parameters:
      projectId - The ID of the project.
      QMLevel - The QMLevel (metrics, factors or strategic_indicators).
      Returns:
      A Map of ID,name of the existing entities, for the given project and QMLevel.