use of org.hisp.dhis.dataset.Section in project dhis2-core by dhis2.
the class GetSectionIndicatorsAction method execute.
// -------------------------------------------------------------------------
// Action Implementation
// -------------------------------------------------------------------------
@Override
public String execute() throws Exception {
if (dataSetId == null) {
return SUCCESS;
}
DataSet dataSet = dataSetService.getDataSet(dataSetId);
indicators = new ArrayList<>(dataSet.getIndicators());
for (Section section : dataSet.getSections()) {
indicators.removeAll(section.getIndicators());
}
Collections.sort(indicators);
return SUCCESS;
}
Aggregations