com.atlassian.user.impl.ldap.adaptor
Class LDAPDynamicGroupAdaptor

java.lang.Object
  extended bycom.atlassian.user.impl.ldap.adaptor.AbstractLDAPGroupAdaptor
      extended bycom.atlassian.user.impl.ldap.adaptor.LDAPDynamicGroupAdaptor
All Implemented Interfaces:
LDAPGroupAdaptor

public class LDAPDynamicGroupAdaptor
extends AbstractLDAPGroupAdaptor

Dynamic groups, in 'LDAP speak', express their membership via user entries (you need to examine the user entry to discover what groups the user belongs to). The role of this class is locate dynamic groups via a getGroupEntries and call the appropriate factory to construct Groups from the LDAP getGroupEntries results.


Field Summary
 
Fields inherited from class com.atlassian.user.impl.ldap.adaptor.AbstractLDAPGroupAdaptor
groupFactory, log, repository, searchProperties
 
Constructor Summary
LDAPDynamicGroupAdaptor(LdapContextFactory repo, LdapSearchProperties searchProperties, LDAPGroupFactory groupFactory, LdapFilterFactory filterFactory, LDAPUserFactory userFactory, LdapMembershipProperties membershipProperties)
           
 
Method Summary
 Pager findMemberNames(Group group)
           
 Pager findMembers(Group group)
           
 LDAPPagerInfo getGroupEntriesViaMembership(java.lang.String username)
           
 LDAPPagerInfo getGroupEntriesViaMembership(java.lang.String username, java.lang.String[] attributesToReturn)
           
 LDAPPagerInfo getGroupEntriesViaMembership(User user)
           
 Pager getGroups(User user)
           
 boolean hasMembership(Group group, User user)
           
 boolean hasStaticGroups()
           
 
Methods inherited from class com.atlassian.user.impl.ldap.adaptor.AbstractLDAPGroupAdaptor
constructGroupSearchFilter, constructGroupSearchFilter, getFirstPhraseFromDN, getGroup, getGroupDN, getGroupDN, getGroupEntries, getGroupEntries, getGroupEntries, getGroupEntries, getGroupFactory, getGroups, search, search
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LDAPDynamicGroupAdaptor

public LDAPDynamicGroupAdaptor(LdapContextFactory repo,
                               LdapSearchProperties searchProperties,
                               LDAPGroupFactory groupFactory,
                               LdapFilterFactory filterFactory,
                               LDAPUserFactory userFactory,
                               LdapMembershipProperties membershipProperties)
Method Detail

getGroups

public Pager getGroups(User user)
                throws EntityException
Returns:
A Pager holding containing a Group for each group the user belongs to. An empty pager will be returned if the user does not belong to any groups that this manager knows about.
Throws:
EntityException

findMembers

public Pager findMembers(Group group)
                  throws EntityException
Throws:
EntityException

findMemberNames

public Pager findMemberNames(Group group)
                      throws EntityException
Throws:
EntityException

hasStaticGroups

public boolean hasStaticGroups()

hasMembership

public boolean hasMembership(Group group,
                             User user)
                      throws EntityException
Throws:
EntityException

getGroupEntriesViaMembership

public LDAPPagerInfo getGroupEntriesViaMembership(User user)
                                           throws EntityException
Throws:
EntityException

getGroupEntriesViaMembership

public LDAPPagerInfo getGroupEntriesViaMembership(java.lang.String username)
                                           throws EntityException
Throws:
EntityException

getGroupEntriesViaMembership

public LDAPPagerInfo getGroupEntriesViaMembership(java.lang.String username,
                                                  java.lang.String[] attributesToReturn)
                                           throws EntityException
Throws:
EntityException


Copyright © 2005-2007 Atlassian Software Systems Pty Ltd. All Rights Reserved.