Package org.jivesoftware.openfire.crowd
Class CrowdManager
java.lang.Object
org.jivesoftware.openfire.crowd.CrowdManager
-
Method Summary
Modifier and TypeMethodDescriptionvoid
authenticate
(String username, String password) Authenticates a user with crowd.Get all the crowd groupsGet all the users from CrowdGet the description of a group from crowdgetGroupMembers
(String groupName) Get the members of the given groupstatic CrowdManager
getUserGroups
(String username) Get all the groups of a given username
-
Method Details
-
getInstance
-
authenticate
Authenticates a user with crowd. If authentication failed, raises aRemoteException
- Parameters:
username
- the usernamepassword
- the password- Throws:
RemoteException
- if an exception occurred communicating with the crowd server
-
getAllUsers
Get all the users from Crowd- Returns:
- a List of User containing all the users stored in Crowd
- Throws:
RemoteException
- if an exception occurred communicating with the crowd server
-
getAllGroupNames
Get all the crowd groups- Returns:
- a List of group names
- Throws:
RemoteException
- if an exception occurred communicating with the crowd server
-
getUserGroups
Get all the groups of a given username- Parameters:
username
- the user- Returns:
- a List of groups name
- Throws:
RemoteException
- if an exception occurred communicating with the crowd server
-
getGroup
Get the description of a group from crowd- Parameters:
groupName
- the name of the group- Returns:
- a Group object
- Throws:
RemoteException
- if an exception occurred communicating with the crowd server
-
getGroupMembers
Get the members of the given group- Parameters:
groupName
- the name of the group- Returns:
- a List of String with the usernames members of the given group
- Throws:
RemoteException
- if an exception occurred communicating with the crowd server
-