mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-28 12:12:22 -05:00
collection tweaks
git-svn-id: file:///home/ksmith/gitmigration/svn/xmpp/trunk@2037 4b5297f7-1745-476d-ba37-a9c6900126ab
This commit is contained in:
parent
93e0c30096
commit
7f6f9303b9
22
xep-0060.xml
22
xep-0060.xml
@ -49,8 +49,8 @@
|
|||||||
&ralphm;
|
&ralphm;
|
||||||
|
|
||||||
<revision>
|
<revision>
|
||||||
<version>1.12pre1</version>
|
<version>1.12pre2</version>
|
||||||
<date>in progress, last updated 2008-06-12</date>
|
<date>in progress, last updated 2008-07-02</date>
|
||||||
<initials>psa</initials>
|
<initials>psa</initials>
|
||||||
<remark>
|
<remark>
|
||||||
<ul>
|
<ul>
|
||||||
@ -4926,13 +4926,13 @@ And by opposing end them?
|
|||||||
</pubsub>
|
</pubsub>
|
||||||
</iq>
|
</iq>
|
||||||
]]></example>
|
]]></example>
|
||||||
<p>In order to send notification of node associations and disassociations, the service shall send an event that contains a <collection/> element that in turns contains an <associate/> element whose 'id' attribute specifies the NodeID of the new node.</p>
|
<p>If the root collection node is configured to send notification of node associations and disassociations, the service shall send an event that contains a <collection/> element whose 'node' attribute specifies the NodeID of the collection (in this case the NodeID is empty to signify that the collection is the root collection); this element in turn contains an <associate/> element whose 'node' attribute specifies the NodeID of node that has been associated with the collection.</p>
|
||||||
<example caption='Notification of node association'><![CDATA[
|
<example caption='Notification of node association'><![CDATA[
|
||||||
<message from='pubsub.shakespeare.lit'
|
<message from='pubsub.shakespeare.lit'
|
||||||
to='francisco@denmark.lit'
|
to='francisco@denmark.lit'
|
||||||
id='newnode1'>
|
id='newnode1'>
|
||||||
<event xmlns='http://jabber.org/protocol/pubsub#event'>
|
<event xmlns='http://jabber.org/protocol/pubsub#event'>
|
||||||
<collection>
|
<collection node='some-collection'>
|
||||||
<associate node='new-node-id'>
|
<associate node='new-node-id'>
|
||||||
</collection>
|
</collection>
|
||||||
</event>
|
</event>
|
||||||
@ -4944,7 +4944,7 @@ And by opposing end them?
|
|||||||
to='francisco@denmark.lit'
|
to='francisco@denmark.lit'
|
||||||
id='newnode2'>
|
id='newnode2'>
|
||||||
<event xmlns='http://jabber.org/protocol/pubsub#event'>
|
<event xmlns='http://jabber.org/protocol/pubsub#event'>
|
||||||
<collection>
|
<collection node=''>
|
||||||
<associate node='new-node-id'>
|
<associate node='new-node-id'>
|
||||||
<x xmlns='jabber:x:data' type='result'>
|
<x xmlns='jabber:x:data' type='result'>
|
||||||
<field var='FORM_TYPE' type='hidden'>
|
<field var='FORM_TYPE' type='hidden'>
|
||||||
@ -5299,13 +5299,13 @@ And by opposing end them?
|
|||||||
</pubsub>
|
</pubsub>
|
||||||
</iq>
|
</iq>
|
||||||
]]></example>
|
]]></example>
|
||||||
<p>If the collection node is configured to send notification of node associations and disassociations, the service shall send an event that contains a <collection/> element that in turns contains an <associate/> element whose 'id' attribute specifies the NodeID of the new node.</p>
|
<p>If the collection node is configured to send notification of node associations and disassociations, the service shall send an event that contains a <collection/> element whose 'node' attribute specifies the NodeID of the collection; this element in turn contains an <associate/> element whose 'node' attribute specifies the NodeID of node that has been associated with the collection.</p>
|
||||||
<example caption='Notification of node association'><![CDATA[
|
<example caption='Notification of node association'><![CDATA[
|
||||||
<message from='pubsub.shakespeare.lit'
|
<message from='pubsub.shakespeare.lit'
|
||||||
to='francisco@denmark.lit'
|
to='francisco@denmark.lit'
|
||||||
id='newnode1'>
|
id='newnode3'>
|
||||||
<event xmlns='http://jabber.org/protocol/pubsub#event'>
|
<event xmlns='http://jabber.org/protocol/pubsub#event'>
|
||||||
<collection>
|
<collection node='some-collection'>
|
||||||
<associate node='new-node-id'>
|
<associate node='new-node-id'>
|
||||||
</collection>
|
</collection>
|
||||||
</event>
|
</event>
|
||||||
@ -5367,20 +5367,20 @@ And by opposing end them?
|
|||||||
</pubsub>
|
</pubsub>
|
||||||
</iq>
|
</iq>
|
||||||
]]></example>
|
]]></example>
|
||||||
<p>If the collection node is configured to send notification of node associations and disassociations, the service shall send an event that contains a <collection/> element that in turns contains an <disassociate/> element whose 'id' attribute specifies the NodeID of the new node.</p>
|
<p>If the collection node is configured to send notification of node associations and disassociations, the service shall send an event that contains a <collection/> element whose 'node' attribute specifies the NodeID of the collection; this element in turn contains a <disassociate/> element whose 'node' attribute specifies the NodeID of node that has been disassociated from the collection.</p>
|
||||||
<example caption='Notification of node disassociation'><![CDATA[
|
<example caption='Notification of node disassociation'><![CDATA[
|
||||||
<message from='pubsub.shakespeare.lit'
|
<message from='pubsub.shakespeare.lit'
|
||||||
to='francisco@denmark.lit'
|
to='francisco@denmark.lit'
|
||||||
id='oldnode1'>
|
id='oldnode1'>
|
||||||
<event xmlns='http://jabber.org/protocol/pubsub#event'>
|
<event xmlns='http://jabber.org/protocol/pubsub#event'>
|
||||||
<collection>
|
<collection node='some-collection'>
|
||||||
<disassociate node='new-node-id'>
|
<disassociate node='new-node-id'>
|
||||||
</collection>
|
</collection>
|
||||||
</event>
|
</event>
|
||||||
</message>
|
</message>
|
||||||
]]></example>
|
]]></example>
|
||||||
<p>If a node is disassociated from a collection node and a new association is not formed, the implementation MAY associate the node with the root collection node or associate it with no collection node.</p>
|
<p>If a node is disassociated from a collection node and a new association is not formed, the implementation MAY associate the node with the root collection node or associate it with no collection node.</p>
|
||||||
<p>Note: The combination of associating and disassociating a node with a collection can be used to move a node from one collection to another.</p>
|
<p>Note: The combination of associating a node with one collection and disassociating the same node from another collection can be used to move a node from one collection to another.</p>
|
||||||
</section2>
|
</section2>
|
||||||
|
|
||||||
<section2 topic='Generating Publish Notifications for Collections' anchor='collections-notify'>
|
<section2 topic='Generating Publish Notifications for Collections' anchor='collections-notify'>
|
||||||
|
Loading…
Reference in New Issue
Block a user