Package util
Class Common
java.lang.Object
util.Common
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetIDNames(String projectId, Constants.QMLevel QMLevel) Get the IDs and names of all the existing entities in each QMLevel.static List<FactorEvaluationDTO>processFactorsBuckets(List<org.bson.Document> result) Create a list of FactorEvaluationDTO from a List of Document, containing factors' evaluations.static List<MetricEvaluationDTO>processMetricsBuckets(List<org.bson.Document> result) Create a list of MetricEvaluationDTO from a List of Document, containing metrics' evaluations.static List<StrategicIndicatorEvaluationDTO>processStrategicIndicatorsBuckets(List<org.bson.Document> result) Create a list of StrategicIndicatorEvaluationDTO from a List of Document, containing strategic indicators' evaluations.
-
Constructor Details
-
Common
public Common()
-
-
Method Details
-
processMetricsBuckets
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
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
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.
-