");
-
- sb.append(createDataPointsSelectComponent(idPrefix + "_dp1"));
- sb.append(createDataPointsSelectComponent(idPrefix + "_dp2"));
- sb.append(createDataPointsSelectComponent(idPrefix + "_dp3"));
- sb.append(createDataPointsSelectComponent(idPrefix + "_dp4"));
+ GetDataPointsWithAccess dataPointsWithAccess = new GetDataPointsWithAccess(new DataPointDAO());
+ User user = Common.getUser();
+ List
dataPoints = dataPointsWithAccess.getObjectIdentifiersWithAccess(user);
+ sb.append(createDataPointsSelectComponent(idPrefix + "_dp1", dataPoints));
+ sb.append(createDataPointsSelectComponent(idPrefix + "_dp2", dataPoints));
+ sb.append(createDataPointsSelectComponent(idPrefix + "_dp3", dataPoints));
+ sb.append(createDataPointsSelectComponent(idPrefix + "_dp4", dataPoints));
sb.append("
");
sb.append("
");
@@ -99,16 +104,15 @@ public String createChartComparatorContent() {
return sb.toString();
}
- private String createDataPointsSelectComponent(String idPrefix) {
- List dataPoints = new DataPointDao().getDataPoints(null,
- false);
+ private String createDataPointsSelectComponent(String idPrefix, List dataPoints) {
+
StringBuilder sb = new StringBuilder();
sb.append("