Class 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 Detail

      • LDAPGroupAllRoot

        public LDAPGroupAllRoot()
    • Method Detail

      • getGroupMemberGroupIds

        public String[] getGroupMemberGroupIds​(String lds,
                                               String groupId)
        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
      • getUserIds

        protected String[] getUserIds​(String lds,
                                      com.novell.ldap.LDAPEntry groupEntry)
        Description copied from class: AbstractLDAPGroup
        return the users ID that are directly in the group discribes by groupEntry THIS FUNCTION ALWAYS THROW EXCEPTION (EVEN IF A SYNCHRO IS RUNNING)
        Specified by:
        getUserIds in class AbstractLDAPGroup
        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
        Return 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 class AbstractLDAPGroup
        Parameters:
        lds - the LDAP connection
        parentId - 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