|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.silverpeas.domains.ldapdriver.AbstractLDAPGroup
com.stratelia.silverpeas.domains.ldapdriver.LDAPGroupSubTree
public class LDAPGroupSubTree
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)
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 |
---|
public LDAPGroupSubTree()
Method Detail |
---|
protected String[] getMemberGroupIds(String lds, String memberId, boolean isGroup) throws AdminException
AdminException
public String[] getGroupMemberGroupIds(String lds, String groupId) throws AdminException
AbstractLDAPGroup
getGroupMemberGroupIds
in class AbstractLDAPGroup
groupId
- the group's Id
AdminException
public String[] getUserMemberGroupIds(String lds, String userId) throws AdminException
AbstractLDAPGroup
getUserMemberGroupIds
in class AbstractLDAPGroup
userId
- the user's Id
AdminException
protected String[] getUserIds(String lds, com.novell.ldap.LDAPEntry groupEntry) throws AdminException
getUserIds
in class AbstractLDAPGroup
lds
- groupEntry
-
AdminException
protected com.novell.ldap.LDAPEntry[] getChildGroupsEntry(String lds, String parentId, String extraFilter) throws AdminException
getChildGroupsEntry
in class AbstractLDAPGroup
lds
- parentId
-
AdminException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |