<?xml version="1.0" encoding="UTF-8"?>
<meta id="meta.filehasher" label="CONF_MESSAGE[File Hasher]" description="CONF_MESSAGE[Compute on-demand a hash of the file content and stores it in the metadata if a metastore is provided]" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:noNamespaceSchemaLocation="file:../core.ajaxplorer/ajxp_registry.xsd">
    <class_definition filename="plugins/meta.filehasher/class.FileHasher.php" classname="FileHasher"/>
   	<client_settings>
   		<resources>
   			<i18n namespace="meta.filehasher" path="plugins/meta.filehasher/i18n" />
   		</resources>
   	</client_settings>
   	<registry_contributions>
           <actions>
               <action name="filehasher_signature">
                   <rightsContext adminOnly="false" noUser="false" read="true" userLogged="true" write="false"/>
                   <processing>
                       <serverCallback methodName="switchActions"/>
                   </processing>
               </action>
               <action name="filehasher_delta">
                   <rightsContext adminOnly="false" noUser="false" read="true" userLogged="true" write="false"/>
                   <processing>
                       <serverCallback methodName="switchActions"/>
                   </processing>
               </action>
               <action name="filehasher_patch">
                   <rightsContext adminOnly="false" noUser="false" read="true" userLogged="true" write="true"/>
                   <processing>
                       <serverCallback methodName="switchActions"/>
                   </processing>
               </action>
           </actions>
   		<hooks>
   			<serverCallback hookName="node.info" methodName="getFileHash" applyCondition="$apply = isSet($_GET['recursive']);"/>
   			<serverCallback hookName="node.change" methodName="invalidateHash" defer="true"/>
   		</hooks>
    </registry_contributions>
</meta>