<?xml version="1.0" encoding="UTF-8"?>
<meta id="meta.watch" label="CONF_MESSAGE[Watch Metadata]" description="CONF_MESSAGE[Register watched on files or folders]"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:../core.ajaxplorer/ajxp_registry.xsd">
    <class_definition filename="plugins/meta.watch/WatchRegister.php" classname="Pydio\Access\Meta\Watch\WatchRegister"/>
    <client_settings>
        <resources>
            <i18n namespace="meta.watch" path="plugins/meta.watch/i18n"/>
            <js className="WatcherActions" file="plugins/meta.watch/res/build/WatcherActions.js"/>
        </resources>
    </client_settings>
    <registry_contributions>
        <actions>
            <action name="toggle_watch">
                <gui src="meta.watch/ICON_SIZE/watch.png" text="meta.watch.1" title="meta.watch.2" iconClass="icon-rss" weight="10">
                    <context dir="true" recycle="hidden" selection="true" actionBar="true" actionBarGroup="0_get" contextMenu="true"/>
                    <selectionContext dir="true" file="true" recycle="false" unique="true" enableRoot="true"/>
                </gui>
                <rightsContext adminOnly="false" noUser="false" read="false" userLogged="only" write="false"/>
                <subMenu>
                    <dynamicBuilder module="WatcherActions.Listeners.dynamicBuilder"/>
                </subMenu>
                <processing>
                    <clientCallback module="WatcherActions.Callbacks.toggleWatch"/>
                    <serverCallback methodName="switchActions" restParams="/file+" developerComment="Set or unset a monitor watch on the selected node">
                        <input_param name="file" type="path" description="Path to the node to wath/unwatch"/>
                        <input_param name="watch_action" type="string"
                                     description="watch_change|watch_read|watch_both|watch_stop"/>
                    </serverCallback>
                </processing>
            </action>
        </actions>
        <hooks>
            <serverCallback hookName="node.read" methodName="processReadHook" defer="true"/>
            <serverCallback hookName="node.change" methodName="processChangeHook" defer="true"/>
            <serverCallback hookName="node.info.nocache" methodName="enrichNode" />
        </hooks>
    </registry_contributions>
</meta>
