This parameter activates antivirus analysis on file submit in forms
Configuration:
<param id="plugins.forms.antivirus.activated" type="boolean" group-switch="true">
<label i18n="true">PLUGINS_FORMS_ANTIVIRUS_ACTIVATED_PARAM</label>
<description i18n="true">PLUGINS_FORMS_ANTIVIRUS_ACTIVATED_PARAM_DESCRIPTION</description>
<validation>
<mandatory/>
</validation>
<default-value>false</default-value>
<category i18n="true">PLUGINS_FORMS_FORMS_CATEGORY</category>
<group i18n="true">PLUGINS_FORMS_ANTIVIRUS_GROUP</group>
<order>10</order>
</param>
This parameter contains the command to analyze a file by the antivirus
Configuration:
<param id="plugins.forms.antivirus.command" type="string">
<label i18n="true">PLUGINS_FORMS_ANTIVIRUS_COMMAND_PARAM</label>
<description i18n="true">PLUGINS_FORMS_ANTIVIRUS_COMMAND_PARAM_DESCRIPTION</description>
<validation>
<mandatory/>
</validation>
<default-value>clamscan</default-value>
<category i18n="true">PLUGINS_FORMS_FORMS_CATEGORY</category>
<group i18n="true">PLUGINS_FORMS_ANTIVIRUS_GROUP</group>
<order>20</order>
</param>
This parameter contains the data source to use to connect the forms database
Configuration:
<param id="plugins.forms.datasource" type="datasource">
<label i18n="true">PLUGINS_FORMS_CONFIG_DATASOURCE_LABEL</label>
<description i18n="true">PLUGINS_FORMS_CONFIG_DATASOURCE_DESCRIPTION</description>
<widget>edition.datasource-sql</widget>
<widget-params>
<param name="allowCreation">true</param>
<param name="allowPrivate">true</param>
<param name="allowInternal">true</param>
<param name="allowedDbTypes">derby,mysql,oracle,postgresql,hsqldb</param>
</widget-params>
<validation>
<custom-validator class="org.ametys.core.datasource.SQLDatabaseTypeValidator">
<mandatory/>
<allowed-dbtypes>derby,mysql,oracle,postgresql,hsqldb</allowed-dbtypes>
</custom-validator>
</validation>
<category i18n="true">PLUGINS_FORMS_FORMS_CATEGORY</category>
<group i18n="true">PLUGINS_FORMS_DATASOURCE_GROUP</group>
<order>10</order>
</param>