Class SharedGroupManager
- java.lang.Object
-
- org.jivesoftware.smackx.sharedgroups.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.
-
-
Constructor Summary
Constructors Constructor Description SharedGroupManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<String>
getSharedGroups(XMPPConnection connection)
Returns the collection that will contain the name of the shared groups where the user logged in with the specified session belongs.
-
-
-
Constructor Detail
-
SharedGroupManager
public SharedGroupManager()
-
-
Method Detail
-
getSharedGroups
public static List<String> getSharedGroups(XMPPConnection connection) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
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.XMPPErrorException
- if there was an XMPP error returned.SmackException.NoResponseException
- if there was no response from the remote entity.SmackException.NotConnectedException
- if the XMPP connection is not connected.InterruptedException
- if the calling thread was interrupted.
-
-