add "autocomplete-sort" plugin type to collaboration type (#524)

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
blizzz 2017-10-13 11:15:42 +02:00 коммит произвёл Bernhard Posselt
Родитель a1653c3463
Коммит 8fefd08083
3 изменённых файлов: 8 добавлений и 3 удалений

Просмотреть файл

@ -280,6 +280,7 @@ A full blown example would look like this (needs to be utf-8 encoded):
<collaboration>
<plugins>
<plugin type="collaborator-search" share-type="SHARE_TYPE_CIRCLE">OCA\Circles\Collaboration\v1\CollaboratorSearchPlugin</plugin>
<plugin type="autocomplete-sort">OCA\Circles\Collaboration\v1\CircleSorter</plugin>
</plugins>
</collaboration>
</info>
@ -496,8 +497,10 @@ collaboration/plugins
collaboration/plugins/plugin
* required
* the PHP class name of the plugin
* must contain **type** attribute (currently only *collaboration-search*). The class must implement OCP\Collaboration\Collaborators\ISearchPlugin.
* must contain **share-type** attribute, according to the specific \OCP\Share constants
* must contain **type** attribute which can be
* *collaboration-search* (The class must implement OCP\Collaboration\Collaborators\ISearchPlugin), requires **share-type** attribute
* *autocomplete-sort* (The class must implement OCP\Collaboration\AutoComplete\ISorter)
* optionally contain **share-type** attribute
The following character maximum lengths are enforced:

Просмотреть файл

@ -452,7 +452,7 @@
<xs:simpleContent>
<xs:extension base="php-class">
<xs:attribute name="type" type="collaboration-plugin-type" use="required"/>
<xs:attribute name="share-type" type="share-type" use="required" />
<xs:attribute name="share-type" type="share-type" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
@ -460,6 +460,7 @@
<xs:simpleType name="collaboration-plugin-type">
<xs:restriction base="xs:string">
<xs:enumeration value="collaborator-search"/>
<xs:enumeration value="autocomplete-sort"/>
</xs:restriction>
</xs:simpleType>

Просмотреть файл

@ -54,6 +54,7 @@ Those groups of users (or 'circles') can then be used by any other app for shari
<collaboration>
<plugins>
<plugin type="collaborator-search" share-type="SHARE_TYPE_CIRCLE">OCA\Circles\Collaboration\v1\CollaboratorSearchPlugin</plugin>
<plugin type="autocomplete-sort">OCA\Circles\Collaboration\v1\CircleSorter</plugin>
</plugins>
</collaboration>
</info>