<?xml version="1.0" encoding="UTF-8"?>
<ajxpdriver name="remote_fs" enabled="false" label="CONF_MESSAGE[Remote Server (via API)]" description="CONF_MESSAGE[Access a remote server implementing the Pydio API (most commonly a remote server with another Pydio installed)]" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:../core.ajaxplorer/ajxp_registry.xsd">
	<client_settings icon="plugins/access.remote_fs/remote_fs_icon.png" description_template="{HOST}{URI}" iconClass="icon-sitemap">
        <resources>
            <i18n namespace="remote_fs_access" path="plugins/access.remote_fs/i18n"/>
        </resources>
    </client_settings>

	<server_settings>
		<param name="HOST" type="string" label="CONF_MESSAGE[Host]" description="CONF_MESSAGE[Domain name or IP to the remote server, without http]" mandatory="true"/>
		<param name="URI" type="string" label="CONF_MESSAGE[Uri]" description="CONF_MESSAGE[Path of the API implementor on the remote server.]" default="/ajaxplorer/content.php" mandatory="true"/>
		<param name="USE_AUTH" type="boolean" label="CONF_MESSAGE[Remote Authentication]" description="CONF_MESSAGE[Whether we should authenticate to the remote server or not. If yes, will try to login as an Pydio user, or with standard http auth if Http Auth URI is set.]" default="true" mandatory="true"/>
		<param name="AUTH_USER" type="string" label="CONF_MESSAGE[Login]" description="CONF_MESSAGE[Login for http authentication]" mandatory="false"/>
		<param name="AUTH_PASS" type="string" label="CONF_MESSAGE[Password]" description="CONF_MESSAGE[Password for http authentication]" mandatory="false"/>
		<param name="AUTH_URI" type="string" label="CONF_MESSAGE[Http Auth URI]" description="CONF_MESSAGE[Path to the authentication script, e.g. /ajaxplorer/index.php (only if you are using basic http auth)]" default="" mandatory="false"/>
		<param name="TMP_UPLOAD" type="string" label="CONF_MESSAGE[Temporary Folder]" description="CONF_MESSAGE[Temporary folder on the local server used for file uploads. For the moment, it must be placed under your ajaxplorer folder and you must create it and set it writeable by Apache.]" default="tmp" mandatory="true"/>
		<param name="API_CAPABILITIES" type="string" label="CONF_MESSAGE[Api Capabilities]" description="CONF_MESSAGE[Pydio plugins actions supported by remote server, thus forwarded directly instead of executed locally.]" default="" mandatory="false"/>
	</server_settings>
	<registry_contributions>
        <external_file filename="plugins/access.fs/fsTemplatePart.xml" include="client_configs/*" exclude=""/>
		<client_configs>
			<template_part ajxpId="search_container" ajxpClass="SearchEngine" ajxpOptions="{}"/>
            <template_part ajxpId="search_container" ajxpClass="SearchEngine" ajxpOptions='{"toggleResultsVisibility":"search_results_cont", "fitMarginBottom":20}' theme="vision"/>
            <template_part ajxpId="search_container" ajxpClass="SearchEngine" ajxpOptions='{"toggleResultsVisibility":"search_results_cont", "openSearchInput":"true", "openSearchStickLeftTo":"topPane", "searchChooserAsResultsHeader":true, "toggleResultsFitTo":"cpane_tabs", "fitMarginBottom":0, "toggleResultsOffsetRight":0, "toggleResultsOffsetTop":0, "detailThumbSize":24}' theme="orbit"/>
            <component_config className="FilesList">
				<columns switchGridMode="filelist">
					<column messageId="1" attributeName="ajxp_label"/>
					<column messageId="2" attributeName="filesize"/>
					<column messageId="3" attributeName="mimestring"/>
					<column messageId="4" attributeName="ajxp_modiftime"/>
				</columns>
			</component_config>
		</client_configs>
		<external_file filename="plugins/access.fs/fsActions.xml" include="actions/*" exclude=""/>
		<external_file filename="plugins/access.fs/fsActions.xml" include="client_configs/*"/>
        <external_file filename="plugins/access.fs/manifest.xml" include="registry_contributions/hooks/*" exclude=""/>
		<external_file filename="plugins/access.remote_fs/additionalActions.xml" include="actions/*"/>
		<actions uuidAttr="name">
			<action name="switch_repository">
				<post_processing>
					<serverCallback methodName="resetConnexionRepository"></serverCallback>
				</post_processing>
			</action>
		</actions>
	</registry_contributions>
	<class_definition filename="plugins/access.remote_fs/class.remote_fsAccessDriver.php" classname="remote_fsAccessDriver"/>
	<dependencies>
		<pluginClass pluginName="access.fs"/>
	</dependencies>
    <class_stream_wrapper filename="plugins/access.remote_fs/class.remote_fsAccessWrapper.php" classname="remote_fsAccessWrapper" protocol="ajxp.remotefs"/>
</ajxpdriver>
