Class MalwareDetectionService
- java.lang.Object
-
- org.exoplatform.social.service.malwareDetection.MalwareDetectionService
-
public class MalwareDetectionService extends Object
Is extended by all MalwareDetectionItemConnector and MalwareDetectionConnector connectors, and allows to build configuration needed by a list of connectors that is used for Malware detection.
-
-
Constructor Summary
Constructors Constructor Description MalwareDetectionService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMalwareDetectionConnector(MalwareDetectionConnector malwareDetectionConnector)Add Malware detection connector to the servicevoidaddMalwareDetectionConnector(MalwareDetectionConnector malwareDetectionConnector, Boolean override)Add malware detection connector to the servicevoidaddMalwareDetectionItemConnector(MalwareDetectionItemConnector malwareDetectionItemConnector)Add Malware detection item connector to the servicevoidaddMalwareDetectionItemConnector(MalwareDetectionItemConnector malwareDetectionItemConnector, Boolean override)Add malware detection item connector to the servicevoidcheckAndProcessNewInfectedItems()MalwareDetectionConnectorgetDefaultMalwareDetectionConnector()Gets default malware detection connectorMap<String,MalwareDetectionConnector>getMalwareDetectionConnectors()Gets all current malware detection connectorsMap<String,MalwareDetectionItemConnector>getMalwareDetectionItemConnectors()Gets all current malware detection item connectorsvoidprocessInfectedItem(String infectedItemPath)
-
-
-
Method Detail
-
addMalwareDetectionItemConnector
public void addMalwareDetectionItemConnector(MalwareDetectionItemConnector malwareDetectionItemConnector)
Add Malware detection item connector to the service- Parameters:
malwareDetectionItemConnector- the Malware detection item connector to add- eXo level API
- Experimental
-
addMalwareDetectionConnector
public void addMalwareDetectionConnector(MalwareDetectionConnector malwareDetectionConnector)
Add Malware detection connector to the service- Parameters:
malwareDetectionConnector- the Malware detection connector to add- eXo level API
- Experimental
-
addMalwareDetectionItemConnector
public void addMalwareDetectionItemConnector(MalwareDetectionItemConnector malwareDetectionItemConnector, Boolean override)
Add malware detection item connector to the service- Parameters:
malwareDetectionItemConnector- the malware detection item connector to addoverride- equal true if we can override an existing connector, false otherwise- eXo level API
- Experimental
-
addMalwareDetectionConnector
public void addMalwareDetectionConnector(MalwareDetectionConnector malwareDetectionConnector, Boolean override)
Add malware detection connector to the service- Parameters:
malwareDetectionConnector- the malware detection connector to addoverride- equal true if we can override an existing connector, false otherwise- eXo level API
- Experimental
-
getMalwareDetectionItemConnectors
public Map<String,MalwareDetectionItemConnector> getMalwareDetectionItemConnectors()
Gets all current malware detection item connectors- Returns:
- Malware detection item connectors
- eXo level API
- Experimental
-
getMalwareDetectionConnectors
public Map<String,MalwareDetectionConnector> getMalwareDetectionConnectors()
Gets all current malware detection connectors- Returns:
- Malware detection connectors
- eXo level API
- Experimental
-
getDefaultMalwareDetectionConnector
public MalwareDetectionConnector getDefaultMalwareDetectionConnector()
Gets default malware detection connector- Returns:
- Default malware detection connector
- eXo level API
- Experimental
-
checkAndProcessNewInfectedItems
public void checkAndProcessNewInfectedItems()
-
processInfectedItem
public void processInfectedItem(String infectedItemPath)
-
-