Smack

org.jivesoftware.smackx
Class SharedGroupManager

java.lang.Object
  extended by org.jivesoftware.smackx.SharedGroupManager

public class SharedGroupManager
extends Object

A SharedGroupManager provides services for discovering the shared groups where a user belongs.

Important note: This functionality is not part of the XMPP spec and it will only work with Wildfire.

Author:
Gaston Dombiak

Constructor Summary
SharedGroupManager()
           
 
Method Summary
static List<String> getSharedGroups(Connection connection)
          Returns the collection that will contain the name of the shared groups where the user logged in with the specified session belongs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SharedGroupManager

public SharedGroupManager()
Method Detail

getSharedGroups

public static List<String> getSharedGroups(Connection connection)
                                    throws XMPPException
Returns the collection that will contain the name of the shared groups where the user logged in with the specified session belongs.

Parameters:
connection - connection to use to get the user's shared groups.
Returns:
collection with the shared groups' name of the logged user.
Throws:
XMPPException

Smack

Copyright © 2003-2007 Jive Software.