use of org.openforis.collect.datacleansing.form.DataCleansingReportForm in project collect by openforis.
the class DataCleansingChainController method loadReports.
@RequestMapping(value = "{chainId}/reports.json", method = RequestMethod.GET)
@ResponseBody
public List<DataCleansingReportForm> loadReports(@PathVariable int chainId) {
CollectSurvey survey = sessionManager.getActiveSurvey();
DataCleansingChain chain = itemManager.loadById(survey, chainId);
List<DataCleansingReport> reports = reportManager.loadByCleansingChain(chain);
List<DataCleansingReportForm> forms = Forms.toForms(reports, DataCleansingReportForm.class);
return forms;
}
Aggregations