Class LDAPGroupUniqueDescriptor


  • public class LDAPGroupUniqueDescriptor
    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 ....
    Author:
    tleroi
    • Constructor Detail

      • LDAPGroupUniqueDescriptor

        public LDAPGroupUniqueDescriptor()
    • Method Detail

      • 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 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
        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 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