Class LDAPGroupAllRoot
- java.lang.Object
-
- org.silverpeas.core.admin.domain.driver.ldapdriver.AbstractLDAPGroup
-
- org.silverpeas.core.admin.domain.driver.ldapdriver.LDAPGroupAllRoot
-
public class LDAPGroupAllRoot extends AbstractLDAPGroup
This class manage groups that are described as follows : The group object contains an attribute that point to each users and sub-groups DN Example (with the attribute 'member') : member cn=user1,ou=people,o=stratelia member cn=user2,ou=people,o=stratelia .... THOSE GROUPS ARE ALL CONSIDERED AS ROOT GROUPS ALL DESCENDENT USERS ARE PUT IN FIRST LEVEL USERS
-
-
Constructor Summary
Constructors Constructor Description LDAPGroupAllRoot()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.novell.ldap.LDAPEntry[]
getChildGroupsEntry(String lds, String parentId, String extraFilter)
Gets a set of LDAP entries that are the child groups of a parent one THIS FUNCTION THROW EXCEPTION ONLY WHEN NO SYNCHRO IS RUNNINGString[]
getGroupMemberGroupIds(String lds, String groupId)
Gets the group's parent groups IDs THIS FUNCTION ALWAYS THROW EXCEPTION (EVEN IF A SYNCHRO IS RUNNING)protected String[]
getUserIds(String lds, com.novell.ldap.LDAPEntry groupEntry)
Gets the users ID that are directly in the group describes by groupEntry THIS FUNCTION ALWAYS THROW EXCEPTION (EVEN IF A SYNCHRO IS RUNNING)String[]
getUserMemberGroupIds(String lds, String userId)
Gets the users groups IDs THIS FUNCTION ALWAYS THROW EXCEPTION (EVEN IF A SYNCHRO IS RUNNING)-
Methods inherited from class org.silverpeas.core.admin.domain.driver.ldapdriver.AbstractLDAPGroup
beginSynchronization, endSynchronization, getAllGroups, getGroup, getGroupByName, getGroupEntry, getGroupEntryByName, getGroups, getMemberEntry, getSpecificId, init, translateGroup, translateGroups
-
-
-
-
Method Detail
-
getGroupMemberGroupIds
public String[] getGroupMemberGroupIds(String lds, String groupId)
Description copied from class:AbstractLDAPGroup
Gets the group's parent groups IDs THIS FUNCTION ALWAYS THROW EXCEPTION (EVEN IF A SYNCHRO IS RUNNING)- Specified by:
getGroupMemberGroupIds
in classAbstractLDAPGroup
groupId
- the group's Id- Returns:
- the groups that contain the group
-
getUserMemberGroupIds
public String[] getUserMemberGroupIds(String lds, String userId) throws AdminException
Description copied from class:AbstractLDAPGroup
Gets the users groups IDs THIS FUNCTION ALWAYS THROW EXCEPTION (EVEN IF A SYNCHRO IS RUNNING)- Specified by:
getUserMemberGroupIds
in classAbstractLDAPGroup
userId
- the user's Id- Returns:
- the groups that contain the user
- Throws:
AdminException
- if an error occurs.
-
getUserIds
protected String[] getUserIds(String lds, com.novell.ldap.LDAPEntry groupEntry)
Description copied from class:AbstractLDAPGroup
Gets the users ID that are directly in the group describes by groupEntry THIS FUNCTION ALWAYS THROW EXCEPTION (EVEN IF A SYNCHRO IS RUNNING)- Specified by:
getUserIds
in classAbstractLDAPGroup
groupEntry
- the group that contains users- Returns:
- the father's group ID or empty string if the group is at the root level
-
getChildGroupsEntry
protected com.novell.ldap.LDAPEntry[] getChildGroupsEntry(String lds, String parentId, String extraFilter) throws AdminException
Description copied from class:AbstractLDAPGroup
Gets a set of LDAP entries that are the child groups of a parent one THIS FUNCTION THROW EXCEPTION ONLY WHEN NO SYNCHRO IS RUNNING- Specified by:
getChildGroupsEntry
in classAbstractLDAPGroup
- Parameters:
lds
- the LDAP connectionparentId
- Id of the parent group- Returns:
- all founded child groups or root groups if parentId is equal to null or is empty
- Throws:
AdminException
- if an error occur during LDAP operations
-
-