use of com.odysseusinc.arachne.portal.model.DataNode in project ArachneCentralAPI by OHDSI.
the class BaseAchillesController method receiveStats.
@ApiOperation("Store Achilles results for given datasource")
@RequestMapping(value = "datanode/datasource/{id}", method = RequestMethod.POST)
public void receiveStats(@PathVariable("id") Long datasourceId, @RequestParam(value = "file") MultipartFile data) throws NotExistException, IOException, ValidationException {
DS dataSource = checkDataSource(datasourceId);
final DataNode dataNode = dataSource.getDataNode();
if (dataNode.getVirtual()) {
throw new ValidationException("virtual datasource is not allowed for manual uploading");
}
LOGGER.info(ACHILLES_RESULT_LOADED_LOG, dataSource.getId(), dataSource.getName(), dataNode.getId(), dataNode.getName());
achillesService.createCharacterization(dataSource, data);
}
Aggregations