Search in sources :

Example 1 with AntivirusFile

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);
    }
}
Also used : AntivirusFile(com.odysseusinc.arachne.portal.model.AntivirusFile) AntivirusJobResponse(com.odysseusinc.arachne.portal.service.impl.antivirus.events.AntivirusJobResponse)

Aggregations

AntivirusFile (com.odysseusinc.arachne.portal.model.AntivirusFile)1 AntivirusJobResponse (com.odysseusinc.arachne.portal.service.impl.antivirus.events.AntivirusJobResponse)1