Package com.logicaldoc.enterprise
Class AntivirusScanner
- java.lang.Object
-
- com.logicaldoc.enterprise.AntivirusScanner
-
- All Implemented Interfaces:
com.logicaldoc.core.document.DocumentListener
public class AntivirusScanner extends Object implements com.logicaldoc.core.document.DocumentListener
Listener that checks if a new document is infected- Since:
- 7.1
- Author:
- Marco Meschieri - LogicalDOC
-
-
Constructor Summary
Constructors Constructor Description AntivirusScanner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterCheckin(com.logicaldoc.core.document.Document document, com.logicaldoc.core.document.DocumentHistory transaction, Map<String,Object> dictionary)
void
afterSaveHistory(com.logicaldoc.core.document.Document document, com.logicaldoc.core.document.DocumentHistory event, Map<String,Object> dictionary)
void
afterStore(com.logicaldoc.core.document.Document document, com.logicaldoc.core.document.DocumentHistory transaction, Map<String,Object> dictionary)
void
beforeCheckin(com.logicaldoc.core.document.Document document, com.logicaldoc.core.document.DocumentHistory transaction, Map<String,Object> dictionary)
void
beforeStore(com.logicaldoc.core.document.Document document, com.logicaldoc.core.document.DocumentHistory transaction, Map<String,Object> dictionary)
boolean
scan(String tenant, String file, String fileName)
-
-
-
Method Detail
-
afterCheckin
public void afterCheckin(com.logicaldoc.core.document.Document document, com.logicaldoc.core.document.DocumentHistory transaction, Map<String,Object> dictionary) throws Exception
- Specified by:
afterCheckin
in interfacecom.logicaldoc.core.document.DocumentListener
- Throws:
Exception
-
afterStore
public void afterStore(com.logicaldoc.core.document.Document document, com.logicaldoc.core.document.DocumentHistory transaction, Map<String,Object> dictionary) throws Exception
- Specified by:
afterStore
in interfacecom.logicaldoc.core.document.DocumentListener
- Throws:
Exception
-
beforeCheckin
public void beforeCheckin(com.logicaldoc.core.document.Document document, com.logicaldoc.core.document.DocumentHistory transaction, Map<String,Object> dictionary) throws Exception
- Specified by:
beforeCheckin
in interfacecom.logicaldoc.core.document.DocumentListener
- Throws:
Exception
-
beforeStore
public void beforeStore(com.logicaldoc.core.document.Document document, com.logicaldoc.core.document.DocumentHistory transaction, Map<String,Object> dictionary) throws Exception
- Specified by:
beforeStore
in interfacecom.logicaldoc.core.document.DocumentListener
- Throws:
Exception
-
afterSaveHistory
public void afterSaveHistory(com.logicaldoc.core.document.Document document, com.logicaldoc.core.document.DocumentHistory event, Map<String,Object> dictionary) throws Exception
- Specified by:
afterSaveHistory
in interfacecom.logicaldoc.core.document.DocumentListener
- Throws:
Exception
-
-