public class ScanChecker extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ExecutorService |
threadPool |
| Constructor and Description |
|---|
ScanChecker() |
| Modifier and Type | Method and Description |
|---|---|
ScanResult |
checkFile(org.nuxeo.ecm.core.api.DocumentModel docToScan,
org.nuxeo.ecm.core.api.CoreSession session,
boolean save,
long timeout)
check the file and throws a VirusScanException if a virus is detected
|
static ScanChecker |
getInstance() |
protected ExecutorService |
getThreadPool()
build the pool
|
protected ExecutorService threadPool
protected ExecutorService getThreadPool()
public static ScanChecker getInstance()
public ScanResult checkFile(org.nuxeo.ecm.core.api.DocumentModel docToScan, org.nuxeo.ecm.core.api.CoreSession session, boolean save, long timeout)
docToScan - Copyright © 2020. All rights reserved.