com.atlassian.user.impl.ldap.adaptor
Interface LDAPGroupAdaptor

All Known Implementing Classes:
AbstractLDAPGroupAdaptor, LDAPDynamicGroupAdaptor, LDAPStaticGroupAdaptor

public interface LDAPGroupAdaptor


Method Summary
 Pager<String> findMemberNames(Group group)
           
 Pager<String> findMembers(Group group)
           
 Group getGroup(String name)
           
 String getGroupDN(Group group)
           
 String getGroupDN(String group)
           
 LDAPPagerInfo getGroupEntries()
           
 LDAPPagerInfo getGroupEntries(String groupName)
          If groupName is null, returns all groups.
 LDAPPagerInfo getGroupEntries(String[] attributesToReturn, net.sf.ldaptemplate.support.filter.Filter additionalSearchFilter)
           
 LDAPPagerInfo getGroupEntries(String groupName, String[] attributesToReturn, net.sf.ldaptemplate.support.filter.Filter additionalSearchFilter)
           
 LDAPPagerInfo getGroupEntriesViaMembership(String username)
           
 LDAPPagerInfo getGroupEntriesViaMembership(String username, String[] attributesToReturn)
           
 LDAPPagerInfo getGroupEntriesViaMembership(User user)
           
 Pager<Group> getGroups()
           
 Pager<Group> getGroups(User user)
           
 boolean hasMembership(Group group, User user)
           
 boolean hasStaticGroups()
           
 LDAPPagerInfo search(net.sf.ldaptemplate.support.filter.Filter searchFilter)
           
 

Method Detail

getGroup

Group getGroup(String name)
               throws EntityException
Throws:
EntityException

getGroups

Pager<Group> 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

getGroups

Pager<Group> getGroups()
                       throws EntityException
Throws:
EntityException

findMembers

Pager<String> findMembers(Group group)
                          throws EntityException
Throws:
EntityException

findMemberNames

Pager<String> findMemberNames(Group group)
                              throws EntityException
Throws:
EntityException

hasStaticGroups

boolean hasStaticGroups()

getGroupDN

String getGroupDN(Group group)
                  throws EntityException
Throws:
EntityException

getGroupDN

String getGroupDN(String group)
                  throws EntityException
Throws:
EntityException

hasMembership

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

getGroupEntries

LDAPPagerInfo getGroupEntries()
                              throws EntityException
Throws:
EntityException

getGroupEntries

LDAPPagerInfo getGroupEntries(String groupName)
                              throws EntityException
If groupName is null, returns all groups.

Throws:
EntityException

getGroupEntries

LDAPPagerInfo getGroupEntries(String[] attributesToReturn,
                              net.sf.ldaptemplate.support.filter.Filter additionalSearchFilter)
                              throws EntityException
Throws:
EntityException

getGroupEntries

LDAPPagerInfo getGroupEntries(String groupName,
                              String[] attributesToReturn,
                              net.sf.ldaptemplate.support.filter.Filter additionalSearchFilter)
                              throws EntityException
Throws:
EntityException

getGroupEntriesViaMembership

LDAPPagerInfo getGroupEntriesViaMembership(User user)
                                           throws EntityException
Throws:
EntityException

getGroupEntriesViaMembership

LDAPPagerInfo getGroupEntriesViaMembership(String username)
                                           throws EntityException
Throws:
EntityException

getGroupEntriesViaMembership

LDAPPagerInfo getGroupEntriesViaMembership(String username,
                                           String[] attributesToReturn)
                                           throws EntityException
Throws:
EntityException

search

LDAPPagerInfo search(net.sf.ldaptemplate.support.filter.Filter searchFilter)
                     throws RepositoryException
Returns:
an LDAPPagerInfo holding the search query used, the result, and the original base context.
Throws:
RepositoryException


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