use of com.odysseusinc.arachne.portal.model.AntivirusFile in project ArachneCentralAPI by OHDSI.
the class BasePaperServiceImpl method update.
private void update(AntivirusJobResponseEventBase event, JpaRepository repository) {
final AntivirusJobResponse antivirusJobResponse = event.getAntivirusJobResponse();
final AntivirusFile file = (AntivirusFile) repository.findOne(antivirusJobResponse.getFileId());
if (file != null) {
file.setAntivirusStatus(antivirusJobResponse.getStatus());
file.setAntivirusDescription(antivirusJobResponse.getDescription());
repository.save(file);
}
}
Aggregations