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

All Known Implementing Classes:
AbstractLDAPGroupAdaptor

public interface LDAPGroupAdaptor


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

Method Detail

getGroup

public Group getGroup(java.lang.String name)
               throws EntityException
Throws:
EntityException

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

getGroups

public Pager getGroups()
                throws EntityException
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()

getGroupDN

public java.lang.String getGroupDN(Group group)
                            throws EntityException
Throws:
EntityException

getGroupDN

public java.lang.String getGroupDN(java.lang.String group)
                            throws EntityException
Throws:
EntityException

hasMembership

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

getGroupEntries

public LDAPPagerInfo getGroupEntries()
                              throws EntityException
Throws:
EntityException

getGroupEntries

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

Throws:
EntityException

getGroupEntries

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

getGroupEntries

public LDAPPagerInfo getGroupEntries(java.lang.String groupName,
                                     java.lang.String[] attributesToReturn,
                                     net.sf.ldaptemplate.support.filter.Filter additionalSearchFilter)
                              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

search

public 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-2007 Atlassian Software Systems Pty Ltd. All Rights Reserved.