Class MalwareDetectionService

java.lang.Object
org.exoplatform.antimalware.service.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 Details

    • MalwareDetectionService

      public MalwareDetectionService(org.exoplatform.services.listener.ListenerService listenerService)
  • Method Details

    • 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 add
      override - 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 add
      override - 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)