No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

xep-0057.xml 7.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE xep SYSTEM 'xep.dtd' [
  3. <!ENTITY % ents SYSTEM "xep.ent">
  4. %ents;
  5. ]>
  6. <?xml-stylesheet type="text/xsl" href="xep.xsl"?>
  7. <xep>
  8. <header>
  9. <title>Extended Roster</title>
  10. <abstract>This document defines a way to handle extended roster items.</abstract>
  11. &LEGALNOTICE;
  12. <number>0057</number>
  13. <status>Retracted</status>
  14. <type>Standards Track</type>
  15. <sig>Standards</sig>
  16. <dependencies/>
  17. <supersedes/>
  18. <supersededby/>
  19. <shortname>None</shortname>
  20. <author>
  21. <firstname>Alexey</firstname>
  22. <surname>Shchepin</surname>
  23. <email>alexey@sevcom.net</email>
  24. <jid>aleksey@jabber.ru</jid>
  25. </author>
  26. <revision>
  27. <version>0.2</version>
  28. <date>2003-04-28</date>
  29. <initials>psa</initials>
  30. <remark>Changed the status to Retracted at the request of the author, since the proposed protocol was incompatible with XMPP and clients have begun using jabber:iq:private for this kind of functionality.</remark>
  31. </revision>
  32. <revision>
  33. <version>0.1</version>
  34. <date>2002-11-12</date>
  35. <initials>as</initials>
  36. <remark>Initial version.</remark>
  37. </revision>
  38. </header>
  39. <section1 topic="Introduction">
  40. <p>The main purpose of this document is to make roster not only a "contact list", but also a "list of useful items". This means that the user has the ability to store not only users' JIDs, but any JID that he wants to quickly access with more information than just the name, subscription and roster groups.</p>
  41. </section1>
  42. <section1 topic="What we need to store">
  43. <p>All information, that can be stored for each item can be divided into three categories:</p>
  44. <ol>
  45. <li>Information necessary only for server-side. E.g. we can have a server module that can process "visibility" to each user in roster (by sending custom presence to this user automatically, without special client-side support of this).</li>
  46. <li>Information, neccessary only for client-side. E.g. user description of this item.</li>
  47. <li>Information for both sides. This is at least the JID, category and type.</li>
  48. </ol>
  49. </section1>
  50. <section1 topic="Where to store">
  51. <p>Using <tt>jabber:iq:private</tt> as in &xep0048; for storing this information has one big problem: it is hard to mantain roster data in two separate places. When a client is online, then the client application can handle <tt>jabber:iq:roster</tt> changes and make similar changes in private storage, but when the user is online with a few different resources, or when he is offline, then making the information consistent is very hard task (a roster can be changed when user offline, e.g. if someone is making an account transfer).</p>
  52. <p>But we have a place where this problem does not exist: <tt>jabber:iq:roster</tt>. We can store it in <tt>&lt;item/&gt;</tt> subtags. Existing server implementation MUST NOT remove <tt>&lt;x/&gt;</tt> tags from it. In this case all information always relates to its JID and disappears when this JID removed.</p>
  53. </section1>
  54. <section1 topic="How to store">
  55. <section2 topic="General information">
  56. <p> JID, category and type are stored as attributes of <tt>&lt;item/&gt;</tt> tag. Categories and types are the same as in disco. Official categories and types associated with disco are administered by the &REGISTRAR; see &DISCOCATEGORIES;.</p>
  57. <example><![CDATA[<item jid="jdev@conference.jabber.org"
  58. category="conference"
  59. type="text">]]></example>
  60. </section2>
  61. <section2 topic="Server-side information">
  62. <p>This information is implementation-dependent, so to provide flexibility for it, the <tt>jabber:x:data</tt> namespace defined in &xep0004; must be used. The client can set these parameters by setting this item with this form with <tt>type='submit'</tt>.</p>
  63. <example><![CDATA[<item jid="romeo@montague.net"
  64. name="Romeo"
  65. subscription="both">
  66. <x xmlns='jabber:x:data' type='form'>
  67. <field type='list-single' label='Visibility' var='visibility'>
  68. <value>visible</value>
  69. <option label='Normal'>
  70. <value>normal</value>
  71. </option>
  72. <option label='Always visible'>
  73. <value>visible</value>
  74. </option>
  75. <option label='Always invisible'>
  76. <value>invisible</value>
  77. </option>
  78. </field>
  79. </x>
  80. ...
  81. </item>]]></example>
  82. </section2>
  83. <section2 topic="Client-side information">
  84. <p>This information stored in <tt>&lt;x/&gt;</tt> tag with namespace <tt>jabber:x:roster:item</tt>. Following subtags can be used for diferent types of JIDs, however client applications can make this set bigger, to implement more functions.</p>
  85. <section3 topic="Generic JIDs">
  86. <p>
  87. For all categories and types of JID allowed following subtag:
  88. </p>
  89. <ul>
  90. <li>
  91. <strong>desc</strong>: A description or note describing the JID.
  92. </li>
  93. </ul>
  94. </section3>
  95. <section3 topic="Client JIDs">
  96. <p>For all JIDs with category=client allowed following subtags:</p>
  97. <ul>
  98. <li>
  99. <strong>always-visible</strong>, <strong>always-invisible</strong>:
  100. The client should send custom presence to this JID to be always
  101. visible or invisible to it.
  102. </li>
  103. </ul>
  104. </section3>
  105. <section3 topic="Conference JIDs">
  106. <p>
  107. For all JIDs with category=conference allowed following subtags:
  108. </p>
  109. <ul>
  110. <li>
  111. <strong>nick</strong>: The nickname to be used when joining the
  112. room. If few such tags in one item, then first is used by default,
  113. and others used if first not available.
  114. </li>
  115. <li>
  116. <strong>password</strong>: The password to be used to joing the
  117. room.
  118. </li>
  119. <li>
  120. <strong>auto-join</strong>: The client should automatically join
  121. this room once the user has been authenticated, and the roster have
  122. been fetched.
  123. </li>
  124. </ul>
  125. </section3>
  126. <example><![CDATA[<x xmlns="jabber:x:roster:item">
  127. <always-visible/>
  128. <desc>My old good friend</desc>
  129. </x>]]></example>
  130. </section2>
  131. <section2 topic="Complete example">
  132. <example><![CDATA[<iq id="roster_1" type="result">
  133. <query xmlns="jabber:iq:roster">
  134. <item jid="romeo@montague.net"
  135. name="Romeo"
  136. category="user"
  137. type="client"
  138. subscription="both">
  139. <x xmlns="jabber:x:roster:item">
  140. <always-visible/>
  141. <desc>bla bla bla</desc>
  142. </x>
  143. <x xmlns='jabber:x:data' type='form'>
  144. <field type='list-single' label='Visibility' var='visibility'>
  145. <value>visible</value>
  146. <option label='Normal'>
  147. <value>normal</value>
  148. </option>
  149. <option label='Always visible'>
  150. <value>visible</value>
  151. </option>
  152. <option label='Always invisible'>
  153. <value>invisible</value>
  154. </option>
  155. </field>
  156. </x>
  157. </item>
  158. <item jid="jdev@conference.jabber.org"
  159. name="Developers Zone"
  160. category="conference"
  161. type="text"
  162. subscription="none">
  163. <x xmlns="jabber:x:roster:item">
  164. <password>bigsecret</password>
  165. <auto-join/>
  166. <nick>aleksey</nick>
  167. <nick>alexey</nick>
  168. <desc>Jabber developers talks</desc>
  169. </x>
  170. </item>
  171. </query>
  172. </iq>]]> </example>
  173. </section2>
  174. </section1>
  175. </xep>