[ejabberd] xep-0223 Persistent Storage of Private Data via PubSub

Pablo Platt pablo.platt at yahoo.com
Wed Jan 20 15:35:28 MSK 2010


works.
thanks.




________________________________
From: kael <ka-el at laposte.net>
To: ejabberd at jabber.ru
Sent: Wed, January 20, 2010 2:31:10 PM
Subject: Re: [ejabberd] xep-0223 Persistent Storage of Private Data via PubSub

On 01/19/2010 10:52 PM, Pablo Platt wrote:
> Is there a way I can define a whitelist and set the node to be persistent without 'publish-options'?

You can create and configure a node simultaneously before publishing items :

<iq type='set'>
http://jabber.org/protocol/pubsub'>
  <create node='storage:bookmarks'/>
  <configure>
   <x xmlns='jabber:x:data' type='submit'>
    <field var='FORM_TYPE' type='hidden'>
    http://jabber.org/protocol/pubsub#node_config
    </field>
    <field var='pubsub#persist_items'><value>1</value></field>
    <field var='pubsub#access_model'><value>whitelist</value></field>
   </x>
  </configure>
</pubsub>
</iq>


cf. <http://xmpp.org/extensions/xep-0060.html#owner-create-and-configure>


Or configure an already created node :

<iq type='set'>
http://jabber.org/protocol/pubsub#owner'>
  <configure node='storage:bookmarks'>
   <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#persist_items'><value>1</value></field>
    <field var='pubsub#access_model'><value>whitelist</value></field>
   </x>
  </configure>
</pubsub>
</iq>


cf. <http://xmpp.org/extensions/xep-0060.html#owner-configure-submit>


-- kael

_______________________________________________
ejabberd mailing list
ejabberd at jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20100120/ed72aa0c/attachment.html>


More information about the ejabberd mailing list