<?xml version="1.0" encoding="UTF-8"?>
<ajxp_plugin enabled="false" id="antivirus" label="CONF_MESSAGE[Antivirus]" description="CONF_MESSAGE[antivirus plugin adaptor]" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:../core.ajaxplorer/ajxp_registry.xsd">

	<!-- class file -->
	<class_definition filename="plugins/action.antivirus/AntivirusScanner.php" classname="Pydio\Action\Antivirus\AntivirusScanner"/>

	<!-- plugin information -->
	<plugin_info>
		<plugin_author>Sylvain Letreguilly, Pydio Team</plugin_author>
		<plugin_uri>no</plugin_uri>
		<plugin_version>1</plugin_version>
        <core_relation packaged="true" tested_version="8.2.2"/>
	</plugin_info>

	<client_settings>
		<resources>
			<i18n namespace="action.antivirus" path="plugins/action.antivirus/i18n" />
		</resources>
	</client_settings>

	<!-- plugin parameter -->
	<server_settings>
		<global_param group="CONF_MESSAGE[antivirus]" name="LEGEND1" type="legend" label="CONF_MESSAGE[Antivirus Executable]" description="CONF_MESSAGE[For security reasons, the command executed to scan a file must be set up manually inside the file 'CONFIG_DIR/conf.action.antivirus.inc' on your server.]"/>
		<global_param group="CONF_MESSAGE[antivirus]" name="LEGEND2" type="legend" label="CONF_MESSAGE[Antivirus Executable]" description="CONF_MESSAGE[Use the $FILE symbol to pass the absolute path to the file to be scanned. Default is 'clamscan --remove=yes $FILE']"/>
		<global_param group="CONF_MESSAGE[antivirus]" name="EXT" type="textarea" label="CONF_MESSAGE[File extension to scan]" description="CONF_MESSAGE[List all file extension that are to be scanned. Typing */ at the beginning of the list will scan all files execpt for extensions included after */]" mandatory="false" default="*/"/>
		<global_param group="CONF_MESSAGE[antivirus]" name="SIZE" type="string" label="CONF_MESSAGE[max file size]" description="CONF_MESSAGE[max file size that will be  scanned immediatly after upload]" mandatory="false" default="1G"/>
		<global_param group="CONF_MESSAGE[Generate a trace file for unscanned files]" name="TRACE" type="boolean" label="CONF_MESSAGE[Trace enabled]" description="CONF_MESSAGE[Store the path to the list of file that have not been scanned]" default="false"/>
		<global_param group="CONF_MESSAGE[Generate a trace file for unscanned files]" name="PATH" description="CONF_MESSAGE[Where to store the trace file]" type="string" label="CONF_MESSAGE[Directory path]"  mandatory="false" default="/var/www/trace"/>
	</server_settings>


	<!-- hooks -->
	<registry_contributions>
		<hooks>
			<serverCallback hookName="node.change" methodName="scanFile"/>
		</hooks>
	</registry_contributions>
</ajxp_plugin>
