com.stratelia.silverpeas.domains.ldapdriver
Class LDAPGroupSubTree

java.lang.Object
  extended by com.stratelia.silverpeas.domains.ldapdriver.AbstractLDAPGroup
      extended by com.stratelia.silverpeas.domains.ldapdriver.LDAPGroupSubTree

public class LDAPGroupSubTree
extends AbstractLDAPGroup

This class manage groups that are described as follows : The group object are root to their childs Method used to retreive users and groups that are direct childs of a given group : GroupG (i.e. childs that have no groups between group node to their node) : 1) Search all child groups of GroupG 2) Sort the result by DN 3) Remove from the search all the groups that are not directly under GroupG (i.e. there is another group between) => Those groups are the direct childs of GroupG (result of "getChildGroupsEntryByLDAPEntry" call) 4) Performs a search of the users that have for baseDN GroupG's DN and that have NOT : (DN substring of any direct child groups' DN)

Author:
tleroi

Constructor Summary
LDAPGroupSubTree()
           
 
Method Summary
protected  com.novell.ldap.LDAPEntry[] getChildGroupsEntry(String lds, String parentId, String extraFilter)
          Method declaration
 String[] getGroupMemberGroupIds(String lds, String groupId)
          return the group's parent groups IDs THIS FUNCTION ALWAYS THROW EXCEPTION (EVEN IF A SYNCHRO IS RUNNING)
protected  String[] getMemberGroupIds(String lds, String memberId, boolean isGroup)
           
protected  String[] getUserIds(String lds, com.novell.ldap.LDAPEntry groupEntry)
          Method declaration
 String[] getUserMemberGroupIds(String lds, String userId)
          return the users groups IDs THIS FUNCTION ALWAYS THROW EXCEPTION (EVEN IF A SYNCHRO IS RUNNING)
 
Methods inherited from class com.stratelia.silverpeas.domains.ldapdriver.AbstractLDAPGroup
beginSynchronization, endSynchronization, getAllChangedGroups, getAllGroups, getGroup, getGroupByName, getGroupEntry, getGroupEntryByName, getGroups, getMaxTimeStamp, init, translateGroup, translateGroups
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LDAPGroupSubTree

public LDAPGroupSubTree()
Method Detail

getMemberGroupIds

protected String[] getMemberGroupIds(String lds,
                                     String memberId,
                                     boolean isGroup)
                              throws AdminException
Throws:
AdminException

getGroupMemberGroupIds

public String[] getGroupMemberGroupIds(String lds,
                                       String groupId)
                                throws AdminException
Description copied from class: AbstractLDAPGroup
return the group's parent groups IDs THIS FUNCTION ALWAYS THROW EXCEPTION (EVEN IF A SYNCHRO IS RUNNING)

Specified by:
getGroupMemberGroupIds in class AbstractLDAPGroup
groupId - the group's Id
Returns:
the groups that contain the group
Throws:
AdminException

getUserMemberGroupIds

public String[] getUserMemberGroupIds(String lds,
                                      String userId)
                               throws AdminException
Description copied from class: AbstractLDAPGroup
return the users groups IDs THIS FUNCTION ALWAYS THROW EXCEPTION (EVEN IF A SYNCHRO IS RUNNING)

Specified by:
getUserMemberGroupIds in class AbstractLDAPGroup
userId - the user's Id
Returns:
the groups that contain the user
Throws:
AdminException

getUserIds

protected String[] getUserIds(String lds,
                              com.novell.ldap.LDAPEntry groupEntry)
                       throws AdminException
Method declaration

Specified by:
getUserIds in class AbstractLDAPGroup
Parameters:
lds -
groupEntry -
Returns:
Throws:
AdminException
See Also:

getChildGroupsEntry

protected com.novell.ldap.LDAPEntry[] getChildGroupsEntry(String lds,
                                                          String parentId,
                                                          String extraFilter)
                                                   throws AdminException
Method declaration

Specified by:
getChildGroupsEntry in class AbstractLDAPGroup
Parameters:
lds -
parentId -
Returns:
Throws:
AdminException
See Also:


Copyright © 2016 Silverpeas. All Rights Reserved.