Class MalwareDetectionItemConnector

  • All Implemented Interfaces:
    org.exoplatform.container.component.ComponentPlugin
    Direct Known Subclasses:
    MalwareDetectionFilesConnector

    public abstract class MalwareDetectionItemConnector
    extends org.exoplatform.container.component.BaseComponentPlugin
    Is extended by all MalwareDetectionItem connectors, and allows to build configuration needed by a list of connectors that is used for Malware detection.
    • Field Detail

      • INFECTED_ITEM_NAME_ARGUMENT

        public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> INFECTED_ITEM_NAME_ARGUMENT
      • INFECTED_ITEM_LAST_MODIFIER_ARGUMENT

        public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> INFECTED_ITEM_LAST_MODIFIER_ARGUMENT
    • Constructor Detail

      • MalwareDetectionItemConnector

        public MalwareDetectionItemConnector​(org.exoplatform.container.xml.InitParams initParams)
        Initializes a malware detection item connector. The constructor is default that connectors must implement.
        Parameters:
        initParams - The parameters which are used for initializing the malware detection item connector from configuration.
        eXo level API
        Experimental
    • Method Detail

      • getType

        public String getType()
        Returns:
        the type
      • setType

        public void setType​(String type)
        Parameters:
        type - the type to set
      • isEnable

        public boolean isEnable()
        Returns:
        the enable
      • setEnable

        public void setEnable​(boolean enable)
        Parameters:
        enable - the enable to set
      • processInfectedItem

        public void processInfectedItem​(String infectedItemPath)
      • canProcessInfectedItem

        public abstract boolean canProcessInfectedItem​(String infectedItemPath)
      • cleanInfectedItem

        public abstract void cleanInfectedItem​(Map<String,​String> infectedItem)
      • getPathSeparator

        protected static String getPathSeparator​(String infectedFilePath)