[ejabberd] PubSub collection nodes

Ricardo Otero dos Santos oterosantos at gmail.com
Wed Apr 28 17:37:29 MSD 2010


On Wed, Apr 28, 2010 at 2:26 PM, kael <ka-el at laposte.net> wrote:
> On 04/28/2010 01:08 PM, Ricardo Otero dos Santos wrote:
>>
>> Hi,
>
> Hello,
>
>> I was using pubsub collection nodes extensively while on Openfire, but
>> now that I've migrated to ejabberd I'm having some headaches. I've
>> made some research but can't quite figure out how to do it.
>>
>> The plugin I must use is "dag", right?
>
> Yes, like this :
>
> {plugins, ["dag", "pep"]},
> {nodetree, "dag"}

Ok, that did the trick. I though I didn't need the nodetree line if i
add "dag" to the plugin list.

>
>> Is collection nodes fully implemented? I read somewhere that it wont
>> be supported since is a deferred XEP, is this correct?
>
> It has a basic implementation.

Does it allow collection node subscription with type and depth?

>
>> I've been playing around with configuration but I just can't make it
>> work. I get leaf nodes or server errors.
>
> 1. Create a 'plays' collection node attached to the (implicit) root
> collection node :
>
> <iq type='set' to='pubsub.localhost'>
>  <pubsub xmlns='http://jabber.org/protocol/pubsub'>
>  <create node='plays'/>
>  <configure>
>   <x xmlns='jabber:x:data' type='submit'>
>    <field var='FORM_TYPE' type='hidden'>
>     <value>http://jabber.org/protocol/pubsub#node_config</value>
>    </field>
>    <field var='pubsub#node_type'><value>collection</value></field>
>    <field var='pubsub#collection'><value/></field>
>   </x>
>  </configure>
>  </pubsub>
> </iq>
>
>
> 2. Create a 'shakespeare' collection node attached to the 'plays' collection
> node :
>
> <iq type='set' to='pubsub.localhost'>
>  <pubsub xmlns='http://jabber.org/protocol/pubsub'>
>  <create node='shakespeare'/>
>  <configure>
>   <x xmlns='jabber:x:data' type='submit'>
>    <field var='FORM_TYPE' type='hidden'>
>     <value>http://jabber.org/protocol/pubsub#node_config</value>
>    </field>
>    <field var='pubsub#node_type'><value>collection</value></field>
>    <field var='pubsub#collection'><value>plays</value></field>
>   </x>
>  </configure>
>  </pubsub>
> </iq>
>
>
> 3. Create a 'macbeth' leaf node attached to the 'shakespeare' collection
> node :
>
> <iq type='set' to='pubsub.localhost'>
>  <pubsub xmlns='http://jabber.org/protocol/pubsub'>
>  <create node='macbeth'/>
>  <configure>
>   <x xmlns='jabber:x:data' type='submit'>
>    <field var='pubsub#collection'><value>shakespeare</value></field>
>   </x>
>  </configure>
>  </pubsub>
> </iq>
>
>
> --
> kael
>
> _______________________________________________
> ejabberd mailing list
> ejabberd at jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd
>


More information about the ejabberd mailing list