File: servicehelper.rb

# servicehelper.rb

Path: | lib/xmpp4r/pubsub/helper/servicehelper.rb
Last Update: | Tue Aug 10 17:57:27 -0600 2010

# XMPP4R - XMPP Library for Ruby

License: | Ruby‘s license (see the LICENSE file) or GNU GPL, at your option.

Website::http://home.gna.org/xmpp4r/

It‘s recommented to read the XEP-0060 before you use this Helper. (Maybe its better not use the helper for now ) ;) The whole code is getting better, but may still contain bugs - be careful!

Maybe the following structure is good ( taken from the xep-0060 )

entity usecases

     retrieve all subscriptions
     retrieve all affiliations

NOTE: the disco stuff will done by the nodebrowserhelper subscriber usecases

      subscribe
      unsubscribe
      configure subscription options
      retrieve items from a node

publisher usecases

      publish a item to a node
      delete a item from a node

owner usecases

      create a node
      configure a node
      request default configuration options
      delete a node
      purge all node items
      manage subscription requests
      process pending subscriptions
      manage subscriptions
      manage affiliations

collection nodes

     If someone want to implement something i think its better to do this in
     this order because everyone who reads the xep-0060 do know where to search in the file

### Required files

xmpp4r/pubsub/iq/pubsub xmpp4r/pubsub/children/event xmpp4r/pubsub/children/item xmpp4r/pubsub/children/items xmpp4r/pubsub/children/subscription xmpp4r/pubsub/children/unsubscribe xmpp4r/pubsub/children/node_config xmpp4r/pubsub/children/subscription_config xmpp4r/dataforms

[Validate]