<?xml version="1.0" encoding="UTF-8"?>
<ajxpcore id="core.conf" label="CONF_MESSAGE[Configurations Management]"
          description="CONF_MESSAGE[Sets how the application core data (users,roles,etc) is stored.]"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:noNamespaceSchemaLocation="file:../core.ajaxplorer/ajxp_registry.xsd"
          mixins="dibidriver_provider"
        >
    <class_definition classname="Pydio\Conf\Core\CoreConfLoader" filename="plugins/core.conf/CoreConfLoader.php"/>
    <client_settings>
        <resources>
            <i18n namespace="core_conf" path="plugins/core.conf/i18n"/>
        </resources>
    </client_settings>
	<server_settings>
        <param name="ROLE_DISPLAY_NAME" scope="role" description="CONF_MESSAGE[Role Label]" label="CONF_MESSAGE[Role Label]" type="string" expose="true"/>
        <param name="ROLE_FORCE_OVERRIDE" scope="role" description="CONF_MESSAGE[Always override other roles, included group roles.]" label="CONF_MESSAGE[Always Override]" type="boolean" expose="true" default="false"/>
        <param name="USER_DISPLAY_NAME" scope="user" description="CONF_MESSAGE[Full name displayed to others]" label="CONF_MESSAGE[Name]" type="string" expose="true" editable="true"/>
        <param name="avatar" scope="user" description="CONF_MESSAGE[Image displayed next to the user name]" label="CONF_MESSAGE[Avatar]" type="image" expose="true"
               editable="true"
               uploadAction="store_binary_temp"
               loadAction="get_binary_param"
               defaultImage="plugins/core.conf/default_avatar.png"
                />
        <param name="email" scope="user" description="CONF_MESSAGE[Address used for notifications]" label="CONF_MESSAGE[Email]" type="string" expose="true" editable="true"/>
        <param name="lang" scope="role,user" description="CONF_MESSAGE[User Language]" label="CONF_MESSAGE[Language]" type="select" choices="AJXP_AVAILABLE_LANGUAGES" expose="true" editable="true"/>
        <param name="country" scope="role,user" description="CONF_MESSAGE[Country]" label="CONF_MESSAGE[Country]" type="autocomplete" choices="json_file:plugins/core.conf/countries.json" expose="true" editable="true"/>
        <param name="DEFAULT_START_REPOSITORY" scope="role,user,group" description="CONF_MESSAGE[Default start repository]" label="CONF_MESSAGE[Default repository]" type="select" default="ajxp_home" choices="AJXP_AVAILABLE_REPOSITORIES" expose="true" editable="true"/>
        <param name="USER_LOCK_ACTION" scope="role,group" description="CONF_MESSAGE[If set, this action will be triggered automatically at users login. Can be logout (to lock out the users), pass_change (to force password change), or anything else]" label="CONF_MESSAGE[Users Lock Action]" type="string" default=""/>
        <param name="USER_SHARED_USERS_LIMIT" scope="user" description="CONF_MESSAGE[Maximum number of shared users per user]" label="CONF_MESSAGE[Shared users limit]" type="integer" expose="false" editable="false"/>
        <global_param name="DIBI_PRECONFIGURATION" group="CONF_MESSAGE[Core SQL Connexion]" type="group_switch:dibi_provider" label="CONF_MESSAGE[SQL Connexion]" description="CONF_MESSAGE[Simple SQL Connexion definition that can be used by other sql-based plugins]" mandatory="false"/>
        <global_param name="SAVE_GUEST_PREFERENCES" group="CONF_MESSAGE[Preferences Saving]"  type="boolean" label="CONF_MESSAGE[Remember guest preferences]" description="CONF_MESSAGE[If the 'guest' user is enabled, remember her preferences accross sessions.]"  mandatory="true" default="false"/>
        <global_param name="SKIP_USER_HISTORY" expose="true" group="CONF_MESSAGE[Preferences Saving]"  type="boolean" label="CONF_MESSAGE[Skip user history]" description="CONF_MESSAGE[Use this option to avoid automatic reloading of the interface state (last folder, opened tabs, etc)]"  mandatory="false" default="true"/>

        <global_param name="USER_CREATE_REPOSITORY" group="CONF_MESSAGE[Worskpace creation delegation]"  type="boolean" label="CONF_MESSAGE[Let user create repositories from templates]" description="CONF_MESSAGE[Whether users can create their own repositories, based on predefined templates.]"  mandatory="false" default="false"/>

        <global_param group="CONF_MESSAGE[Users Directory Listing]" description="CONF_MESSAGE[Maximum number of users displayed in the users autocompleter]" label="CONF_MESSAGE[Users completer limit]" name="USERS_LIST_COMPLETE_LIMIT" type="integer" default="40"/>
        <global_param group="CONF_MESSAGE[Users Directory Listing]" description="CONF_MESSAGE[Minimum number of characters to trigger the auto completion feature]" label="CONF_MESSAGE[Users completer min chars]" name="USERS_LIST_COMPLETE_MIN_CHARS" type="integer" default="0" expose="true"/>
        <global_param group="CONF_MESSAGE[Users Directory Listing]" description="CONF_MESSAGE[Do not load groups and users list if no regexp is entered. Avoid sending large search on LDAP.]" label="CONF_MESSAGE[Make regexp mandatory]" name="USERS_LIST_REGEXP_MANDATORY" type="boolean" default="false" expose="true"/>
        <global_param group="CONF_MESSAGE[Users Directory Listing]" description="CONF_MESSAGE[Do not display real login in parenthesis]" label="CONF_MESSAGE[Hide real login]" name="USERS_LIST_HIDE_LOGIN" type="boolean" default="false"/>
        <global_param name="ALLOW_CROSSUSERS_SHARING" group="CONF_MESSAGE[Users Directory Listing]" type="boolean" label="CONF_MESSAGE[See existing users]" description="CONF_MESSAGE[Allow the users to pick an existing user when sharing a folder]" mandatory="false" default="true" expose="true"/>
        <global_param name="CROSSUSERS_ALLGROUPS" group="CONF_MESSAGE[Users Directory Listing]" type="boolean" label="CONF_MESSAGE[Share with existing users from all groups]" description="CONF_MESSAGE[Allow to search users from other groups through auto completer (can be handy if previous option is set to false) and share workspaces with them]" mandatory="false" default="true"/>
        <global_param name="CROSSUSERS_ALLGROUPS_DISPLAY" group="CONF_MESSAGE[Users Directory Listing]" type="boolean" label="CONF_MESSAGE[List existing from all groups]" description="CONF_MESSAGE[If previous option is set to True, directly display a full list of users from all groups]" mandatory="false" default="true" expose="true"/>

        <global_param group="CONF_MESSAGE[Roles / Groups Directory Listing]" name="GROUP_OR_ROLE" type="group_switch:GROUP_OR_ROLE"   label="CONF_MESSAGE[Display roles and/or groups]"
                      description="" mandatory="true" default="group"/>

        <global_param group_switch_name="GROUP_OR_ROLE" group_switch_label="CONF_MESSAGE[Users only (do not list groups nor roles)]" group_switch_value="Users" name="USER" type="hidden" label="" description="" default="user"/>
        <global_param group_switch_name="GROUP_OR_ROLE" group_switch_label="CONF_MESSAGE[Allow Group Listing]" group_switch_value="Group" name="GROUP" type="hidden" label="" description="" default="group"/>
        <global_param group_switch_name="GROUP_OR_ROLE" group_switch_label="CONF_MESSAGE[Allow Role Listing]"  group_switch_value="Role"  name="ROLE"  type="hidden" label="" description="" default="role"/>
        <global_param group_switch_name="GROUP_OR_ROLE" group_switch_label="CONF_MESSAGE[Role/Group Listing]"  group_switch_value="RoleGroup"  name="GROUP_AND_ROLE"  type="hidden" label="" description="" default="rolegroup"/>


        <global_param group="CONF_MESSAGE[Roles / Groups Directory Listing]" name="ADDRESSBOOK_GROUP_OR_USERS" type="group_switch:ADDRESSBOOK_GROUP_OR_USERS"   label="CONF_MESSAGE[Address Book directory listing]"
                      description="" mandatory="true" default="both" expose="true"/>

        <global_param group_switch_name="ADDRESSBOOK_GROUP_OR_USERS" group_switch_label="CONF_MESSAGE[Users and Groups/Roles]" group_switch_value="both" name="ABOOK_BOTH" type="hidden" label="" description="" default="both"/>
        <global_param group_switch_name="ADDRESSBOOK_GROUP_OR_USERS" group_switch_label="CONF_MESSAGE[Groups/Roles only]" group_switch_value="groups" name="ABOOK_GROUPS" type="hidden" label="" description="" default="groups"/>
        <global_param group_switch_name="ADDRESSBOOK_GROUP_OR_USERS" group_switch_label="CONF_MESSAGE[Users only]"  group_switch_value="users"  name="ABOOK_USERS"  type="hidden" label="" description="" default="users"/>
        <global_param group_switch_name="ADDRESSBOOK_GROUP_OR_USERS" group_switch_label="CONF_MESSAGE[No listing, search engine only]"  group_switch_value="search"  name="ABOOK_SEARCH"  type="hidden" label="" description="" default="search"/>


        <global_param group_switch_name="GROUP_OR_ROLE" group_switch_label="List role by" group_switch_value="Role" name="LIST_ROLE_BY" type="group_switch:LIST_ROLE_BY"   label="CONF_MESSAGE[List Roles By]"
                      description="CONF_MESSAGE[List Roles By]"  default="all" mandatory="true" />
            <global_param group_switch_name="LIST_ROLE_BY" group_switch_label="CONF_MESSAGE[All roles]"        group_switch_value="allroles"   name="ALL_ROLES"        type="hidden" label="" description="" default="allrolls"/>
            <global_param group_switch_name="LIST_ROLE_BY" group_switch_label="CONF_MESSAGE[User roles only]"  group_switch_value="userroles"  name="USER_ROLES_ONLY"  type="hidden" label="" description="" default="userroles"/>
        <global_param group_switch_name="GROUP_OR_ROLE" group_switch_label="Allow Role Listing" group_switch_value="Role" name="PREFIX" type="string"   label="CONF_MESSAGE[role prefix]"
                      description="CONF_MESSAGE[role prefix]" default="" mandatory="false"/>
        <global_param group_switch_name="GROUP_OR_ROLE" group_switch_label="Allow Role Listing" group_switch_value="Role" name="EXCLUDED" type="textarea"   label="CONF_MESSAGE[Excluded Roles]"
                      description="CONF_MESSAGE[Some roles should be disappered in the list.  list separated by ',' or start with 'preg:' for regex.]"  default="" mandatory="false" />
        <global_param group_switch_name="GROUP_OR_ROLE" group_switch_label="Allow Role Listing" group_switch_value="Role" name="INCLUDED" type="textarea"   label="CONF_MESSAGE[Included Roles]"
                      description="CONF_MESSAGE[Some roles should be shown in the list.  list separated by ',' or start with 'preg:' for regex.]"  default="" mandatory="false" />


        <global_param group_switch_name="GROUP_OR_ROLE" group_switch_label="List role by" group_switch_value="Role" name="LIST_ROLE_BY" type="group_switch:LIST_ROLE_BY"   label="CONF_MESSAGE[List Roles By]"
                      description="CONF_MESSAGE[List Roles By]"  default="all" mandatory="true" />
            <global_param group_switch_name="LIST_ROLE_BY" group_switch_label="CONF_MESSAGE[All roles]"        group_switch_value="allroles"   name="ALL_ROLES"        type="hidden" label="" description="" default="allrolls"/>
            <global_param group_switch_name="LIST_ROLE_BY" group_switch_label="CONF_MESSAGE[User roles only]"  group_switch_value="userroles"  name="USER_ROLES_ONLY"  type="hidden" label="" description="" default="userroles"/>
        <global_param group_switch_name="GROUP_OR_ROLE" group_switch_label="Allow Role Listing" group_switch_value="RoleGroup" name="PREFIX" type="string"   label="CONF_MESSAGE[role prefix]"
                      description="CONF_MESSAGE[role prefix]" default="" mandatory="false" />
        <global_param group_switch_name="GROUP_OR_ROLE" group_switch_label="Allow Role Listing" group_switch_value="RoleGroup" name="EXCLUDED" type="textarea"   label="CONF_MESSAGE[Excluded Roles]"
                      description="CONF_MESSAGE[Some roles should be disappered in the list.  list separated by ',' or start with 'preg:' for regex.]"  default="" mandatory="false" />
        <global_param group_switch_name="GROUP_OR_ROLE" group_switch_label="Allow Role Listing" group_switch_value="RoleGroup" name="INCLUDED" type="textarea"   label="CONF_MESSAGE[Included Roles]"
                      description="CONF_MESSAGE[Some roles should be shown in the list.  list separated by ',' or start with 'preg:' for regex.]"  default="" mandatory="false" />

        <global_param name="USER_CREATE_USERS" group="CONF_MESSAGE[External Users Creation]" type="boolean" label="CONF_MESSAGE[Create external users]" description="CONF_MESSAGE[Allow the users to create a new user when sharing a folder]" mandatory="false" default="true" expose="true"/>
        <global_param name="NEWUSERS_EDIT_PARAMETERS" group="CONF_MESSAGE[External Users Creation]" type="string" label="CONF_MESSAGE[External users parameters]" description="CONF_MESSAGE[List of parameters to be edited when creating a new shared user.]" mandatory="false" default="email,USER_DISPLAY_NAME,lang" expose="true"/>


        <global_param type="plugin_instance:conf" name="UNIQUE_INSTANCE_CONFIG" group="CONF_MESSAGE[Configuration Store Instance]" label="CONF_MESSAGE[Instance]" description="CONF_MESSAGE[Choose the configuration plugin]" mandatory="true" default="boot.conf"/>
    </server_settings>
</ajxpcore>
