com.atlassian.crowd.integration.jive
Class CrowdGroupManager

java.lang.Object
  extended by com.atlassian.crowd.integration.jive.CrowdGroupManager
All Implemented Interfaces:
com.jivesoftware.base.GroupManager

public class CrowdGroupManager
extends java.lang.Object
implements com.jivesoftware.base.GroupManager

This is a modified version of the Jive LDAP group integration class LdapGroupManager. All calls to LDAP have been replaced with calls to Crowd.

Thus the caching mechanisms and inherent inefficiency in some of the calls have been retained from the original implementation. This is "as good as" Jive's LDAP implementation.

In particular, calls to findAllGroupsFromCrowd and getUserGroups could potentially be expensive.


Constructor Summary
CrowdGroupManager()
          Constructor of the CrowdGroupProvider class.
CrowdGroupManager(SecurityServerClient securityServerClient)
           
 
Method Summary
 com.jivesoftware.base.Group createGroup(java.lang.String name)
           
 void deleteGroup(com.jivesoftware.base.Group group)
           
 com.jivesoftware.base.Group getGroup(long groupID)
           
 com.jivesoftware.base.Group getGroup(java.lang.String name)
           
 int getGroupCount()
           
 com.jivesoftware.util.LongList getGroupIDs(com.jivesoftware.base.User user)
           
 java.util.Iterator getGroups()
           
 java.util.Iterator getGroups(int startIndex, int numResults)
           
 java.util.Iterator getUserGroups(com.jivesoftware.base.User user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CrowdGroupManager

public CrowdGroupManager()
Constructor of the CrowdGroupProvider class. Gets an CrowdManager instance from the CrowdManager class.


CrowdGroupManager

public CrowdGroupManager(SecurityServerClient securityServerClient)
Method Detail

createGroup

public com.jivesoftware.base.Group createGroup(java.lang.String name)
                                        throws com.jivesoftware.base.GroupAlreadyExistsException
Specified by:
createGroup in interface com.jivesoftware.base.GroupManager
Throws:
com.jivesoftware.base.GroupAlreadyExistsException

getGroup

public com.jivesoftware.base.Group getGroup(long groupID)
                                     throws com.jivesoftware.base.GroupNotFoundException
Specified by:
getGroup in interface com.jivesoftware.base.GroupManager
Throws:
com.jivesoftware.base.GroupNotFoundException

getGroup

public com.jivesoftware.base.Group getGroup(java.lang.String name)
                                     throws com.jivesoftware.base.GroupNotFoundException
Specified by:
getGroup in interface com.jivesoftware.base.GroupManager
Throws:
com.jivesoftware.base.GroupNotFoundException

deleteGroup

public void deleteGroup(com.jivesoftware.base.Group group)
                 throws com.jivesoftware.base.UnauthorizedException
Specified by:
deleteGroup in interface com.jivesoftware.base.GroupManager
Throws:
com.jivesoftware.base.UnauthorizedException

getGroupCount

public int getGroupCount()
Specified by:
getGroupCount in interface com.jivesoftware.base.GroupManager

getGroups

public java.util.Iterator getGroups()
Specified by:
getGroups in interface com.jivesoftware.base.GroupManager

getGroups

public java.util.Iterator getGroups(int startIndex,
                                    int numResults)
Specified by:
getGroups in interface com.jivesoftware.base.GroupManager

getUserGroups

public java.util.Iterator getUserGroups(com.jivesoftware.base.User user)
Specified by:
getUserGroups in interface com.jivesoftware.base.GroupManager

getGroupIDs

public com.jivesoftware.util.LongList getGroupIDs(com.jivesoftware.base.User user)
Specified by:
getGroupIDs in interface com.jivesoftware.base.GroupManager


Copyright © 2010 Atlassian. All Rights Reserved.