use of org.openforis.collect.service.CollectCodeListService in project collect by openforis.
the class CodeListManager method importCodeLists.
@Transactional
public void importCodeLists(CollectSurvey survey, InputStream is) throws CodeListImportException {
int nextSystemId = codeListItemDao.nextSystemId();
CollectCodeListService service = new CollectCodeListService();
service.setCodeListManager(this);
CodeListImporter binder = new CodeListImporter(service, nextSystemId);
try {
binder.importCodeLists(survey, is);
} catch (IdmlParseException e) {
throw new CodeListImportException(e);
}
}
Aggregations