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-0140.xml 11KB

  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>Shared Groups</title>
  10. <abstract>This document defines a protocol profile for centrally defined and administered roster groups; the protocol described herein has been retracted in favor of XEP-0144: Roster Item Exchange.</abstract>
  12. <number>0140</number>
  13. <status>Retracted</status>
  14. <type>Informational</type>
  15. <sig>Standards</sig>
  16. <dependencies>
  17. <spec>XMPP Core</spec>
  18. <spec>XMPP IM</spec>
  19. <spec>XEP-0060</spec>
  20. <spec>XEP-0093</spec>
  21. </dependencies>
  22. <supersedes/>
  23. <supersededby>
  24. <spec>XEP-0144</spec>
  25. </supersededby>
  26. <shortname>groups</shortname>
  27. &stpeter;
  28. <revision>
  29. <version>0.2</version>
  30. <date>2004-10-27</date>
  31. <initials>psa</initials>
  32. <remark>Retracted in favor of XEP-0144.</remark>
  33. </revision>
  34. <revision>
  35. <version>0.1</version>
  36. <date>2004-07-26</date>
  37. <initials>psa</initials>
  38. <remark>Initial version.</remark>
  39. </revision>
  40. </header>
  41. <section1 topic='Introduction' anchor='intro'>
  42. <p>&xmppim; defines a protocol for personal rosters (also known as contact lists). So far all Jabber rosters are personal rosters that are defined by a single user and accessed only by that user. However, in some contexts it would be helpful to centrally define and administer roster groups so that they can be shared among a user population in an organized fashion. This functionality is often called "shared groups".</p>
  43. <p>One context in which shared groups might be useful is the enterprise environment. For example, when Alice is hired by the marketing department of Big Company Enterprises, it makes sense for her to automatically have the other members of the marketing department in her roster the first time she logs in, and for the rest of the marketing department to have Alice in their rosters as soon as her account has been set up. Similarly, when Bob in logistics gets fired, it makes sense for him to disappear from the rosters of everyone else in the logistics department.</p>
  44. <p>This functionality is not limited to the enterprise environment. It could prove quite useful in academic settings, social networking applications, consumer IM services, and anywhere else that it is important to build and manage small communities of users.</p>
  45. <p>Although &xep0093; defines a format for sharing roster items between two users and therefore enables one user to send roster items to another user, it does not currently provide a way to share or coordinate a group of roster items in an organized fashion. To make that possible, this document extends XEP-0093 by defining &xep0060; as the distribution mechanism, resulting in a basic solution for shared groups over Jabber.</p>
  46. </section1>
  47. <section1 topic='Requirements' anchor='reqs'>
  48. <p>This document addresses the following use cases:</p>
  49. <ol>
  50. <li>Creating a shared group.</li>
  51. <li>Adding a member to the group.</li>
  52. <li>Removing a member from the group.</li>
  53. </ol>
  54. <p>This document does not address the following use cases, which instead are discussed in the <link url="#impl">Implementation Guidelines</link> section of this document:</p>
  55. <ul>
  56. <li>Exchanging presence with members of a shared group.</li>
  57. <li>Sending a message to all members of a shared group.</li>
  58. <li>Inviting all members of a shared group to a groupchat room.</li>
  59. </ul>
  60. </section1>
  61. <section1 topic='Use Cases' anchor='usecases'>
  62. <p>The following examples show the protocol flow for an administrator to complete the use cases defined above. Naturally, these tasks could be performed just as well by an automated application that is tied to an existing user database (e.g., LDAP).</p>
  63. <section2 topic='Creating a Shared Group' anchor='create'>
  64. <p>A group is implemented as a pubsub node. If a contact is a member of multiple groups, the contact MUST be added to each pubsub node separately. There is a one-to-one relationship between a group and a node. It is OPTIONAL for the NodeID to include the name of the group (e.g., "groups/Marketing"), although in general it is best not to overload NodeIDs and this is unnecessary given the structure of the groups protocol as described below.</p>
  65. <example caption='Admin Creates a Group'><![CDATA[
  66. <iq type='set'
  67. from=''
  68. to=''
  69. id='create1'>
  70. <pubsub xmlns=''>
  71. <create node-id='groups/Marketing/Europe'/>
  72. </pubsub>
  73. </iq>
  74. ]]></example>
  75. <example caption='Service Informs Admin of Success'><![CDATA[
  76. <iq type='result'
  77. from=''
  78. to=''
  79. id='create1'/>
  80. ]]></example>
  81. </section2>
  82. <section2 topic='Adding a Member to the Group' anchor='add'>
  83. <p>There are two steps to adding a member to a group, which SHOULD be performed in this order:</p>
  84. <ol>
  85. <li>Add new member to subscriber list. (OPTIONAL)</li>
  86. <li>Publish member information to node.</li>
  87. </ol>
  88. <example caption='Admin Adds Member to Subscriber List'><![CDATA[
  89. <iq type='set'
  90. from=''
  91. to=''
  92. id='sub1'>
  93. <pubsub xmlns=''>
  94. <entities node='groups/Marketing/Europe'>
  95. <entity jid=''
  96. affiliation='none'
  97. subscription='subscribed'/>
  98. </entities>
  99. </pubsub>
  100. </iq>
  101. ]]></example>
  102. <example caption='Service Informs Admin of Success'><![CDATA[
  103. <iq type='result'
  104. from=''
  105. to=''
  106. id='sub1'/>
  107. ]]></example>
  108. <p>(Naturally, a member of a shared group need not be informed of changes to the group, and an entity that is informed of changes to the group need not be a member of the group. However, in most applications a group member will be a pubsub subscriber and vice-versa.)</p>
  109. <p>Now the admin publishes information about the member to the group node.</p>
  110. <example caption='Admin Publishes Member Information'><![CDATA[
  111. <iq type='set'
  112. from=''
  113. to=''
  114. id='pub1'>
  115. <pubsub xmlns=''>
  116. <publish node='groups/Marketing/Europe'>
  117. <item id=''>
  118. <x xmlns='jabber:x:roster'
  119. jid=''
  120. name='Alice Rosenbaum'>
  121. <group>Marketing/Europe</group>
  122. </x>
  123. </item>
  124. </publish>
  125. </pubsub>
  126. </iq>
  127. ]]></example>
  128. <p>The member information is then delivered to all subscribers:</p>
  129. <example caption='Member Information is Delivered to All Subscribers'><![CDATA[
  130. <message
  131. from=''
  132. to=''>
  133. <event xmlns=''>
  134. <items node='groups/Marketing/Europe'>
  135. <item id=''>
  136. <x xmlns='jabber:x:roster'
  137. jid=''
  138. name='Alice Rosenbaum'>
  139. <group>Marketing/Europe</group>
  140. </x>
  141. </item>
  142. </items>
  143. </event>
  144. </message>
  145. .
  146. .
  147. .
  148. ]]></example>
  149. <p>Note: It is the receiving application's responsibility to add the newly-published roster item to the recipient's roster by following the protocols defined in <strong>XMPP IM</strong>. The receiving application SHOULD NOT prompt the recipient regarding whether or not to add the roster item, but if and only the roster item is received via pubsub (i.e., it SHOULD prompt the user when roster items are received from individual users and not via pubsub).</p>
  150. </section2>
  151. <section2 topic='Removing a Member from the Group' anchor='remove'>
  152. <p>There are two steps to adding a member to a group, which SHOULD be performed in this order:</p>
  153. <ol>
  154. <li>Remove member from subscriber list.</li>
  155. <li>Purge member information from node.</li>
  156. </ol>
  157. <example caption='Admin Removes Member from Subscriber List'><![CDATA[
  158. <iq type='set'
  159. from=''
  160. to=''
  161. id='del1'>
  162. <pubsub xmlns=''>
  163. <entities node='groups/Marketing/Europe'>
  164. <entity jid=''
  165. affiliation='none'
  166. subscription='none'/>
  167. </entities>
  168. </pubsub>
  169. </iq>
  170. ]]></example>
  171. <example caption='Service Informs Admin of Success'><![CDATA[
  172. <iq type='result'
  173. from=''
  174. to=''
  175. id='del1'/>
  176. ]]></example>
  177. <p>(As noted, the group member need not be a pubsub subscriber, in which case the foregoing step may not be necessary.)</p>
  178. <p>Now admin can remove the member from the shared group.</p>
  179. <example caption='Admin Removes Member'><![CDATA[
  180. <iq type='set'
  181. from=''
  182. to=''
  183. id='purge1'>
  184. <pubsub xmlns=''>
  185. <retract node='groups/Marketing/Europe'>
  186. <item id=''/>
  187. </retract>
  188. </pubsub>
  189. </iq>
  190. ]]></example>
  191. <p>All remaining subscribers are then informed that the node has been deleted:</p>
  192. <example caption='Tune Information is Delivered to All Subscribers'><![CDATA[
  193. <message
  194. from=''
  195. to=''>
  196. <event xmlns=''>
  197. <retract node='groups/Marketing/Europe'>
  198. <item id=''/>
  199. </retract>
  200. </event>
  201. </message>
  202. .
  203. .
  204. .
  205. ]]></example>
  206. </section2>
  207. </section1>
  208. <section1 topic='Implementation Guidelines' anchor='impl'>
  209. <section2 topic='Group Hierarchies' anchor='impl-hier'>
  210. <p>An administrator may wish to define a hierarchy of shared groups (e.g., "Marketing/Europe" and "Marketing/North America"). This can be done using collection nodes as defined in Section 9 of XEP-0060. The receiving application MAY use &xep0083; to define the roster group names.</p>
  211. </section2>
  212. <section2 topic='Exchanging Presence' anchor='impl-pres'>
  213. <p>Presence is exchanged via the normal mechanisms defined in <strong>XMPP IM</strong>.</p>
  214. </section2>
  215. <section2 topic='Sending Messages' anchor='impl-msg'>
  216. <p>In order to send a message to all members of a shared group, a group member's sending application (usually an end-user client) SHOULD either send multiple messages or use &xep0033;.</p>
  217. </section2>
  218. <section2 topic='Sending Groupchat Invites' anchor='impl-gc'>
  219. <p>In order to invite all members of a shared group to a groupchat room, a group member's sending application SHOULD use the mechanisms defined in &xep0045;.</p>
  220. </section2>
  221. </section1>
  222. <section1 topic='Security Considerations' anchor='security'>
  223. <p>This protocol introduces no security considerations above and beyond those defined in <strong>XEP-0060: Publish-Subscribe</strong> and <strong>XEP-0093: Roster Item Exchange</strong>.</p>
  224. </section1>
  225. <section1 topic='IANA Considerations' anchor='iana'>
  226. <p>This document requires no interaction with &IANA;.</p>
  227. </section1>
  228. <section1 topic='XMPP Registrar Considerations' anchor='registrar'>
  229. <p>This document requires no interaction with the &REGISTRAR;.</p>
  230. </section1>
  231. </xep>