[Standards] private storage revisited

Ian Paterson ian.paterson at clientside.co.uk
Sat Jul 7 06:59:07 UTC 2007


Peter Saint-Andre wrote:
> So we'd have something like this:
>
> <iq from='juliet at capulet.com/balcony' type='set' id='foo'>
>   <pubsub xmlns='http://jabber.org/protocol/pubsub'>
>     <publish node='http://jabber.org/protocol/activity'>
>       <item>
>         <activity xmlns='http://jabber.org/protocol/activity'>
>           <relaxing>
>             <partying/>
>           </relaxing>
>           <text xml:lang='en'>My nurse's birthday!</text>
>         </activity>
>       </item>
>     </publish>
>     <preconditions>
>       <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#access_model'>
>           <option><value>whitelist</value></option>
>         </field>
>       </x>
>     </preconditions>
>   </pubsub>
> </iq>
>
> If the node exists and the precondition is not met (in this case, if the
> access model is something other than "whitelist"), then the publish
> fails with a suitable error condition (probably <conflict/> along with
> some pubsub-specific condition).
>
> If the node exists and the precondition is met, then the publish succeeds.
>
> If the node does not exist, then the service auto-creates the node with
> default configuration in all respects except those specified in the
> preconditions (in this case, the node would be created with an access
> model of "whitelist") and the publish succeeds.
>
> Correct?
>   

Correct. +1

Thank you Ralph, Peter.

Wow! consensus on Personal Publishing! I'm off to celebrate :-) :-)

- Ian




More information about the Standards mailing list