Class LDAPGroupConnector

  • All Implemented Interfaces:
    ConnectorInterface, VersionInfoInterface

    public class LDAPGroupConnector
    extends LDAPConnector
    The LDAPGroup connector extends the LDAPConnector to read entries from an LDAP directory. Each entry returned is processed by the LDAPGroup connector in the following manner
    • If the entry has an attribute called uniquemember or member its member contents is iterated by the LDAPGroup connector.
    • If the entry is not a group entry it is ignored
    • If the member attribute contains other group entries, the current group is completed before nested groups are iterated.
    • Constructor Detail

      • LDAPGroupConnector

        public LDAPGroupConnector()
    • Method Detail

      • getNextEntry

        public Entry getNextEntry()
                           throws java.lang.Exception
        Description copied from class: LDAPConnector
        Get the next entry that was retrieved by selectEntries(). The Entry returned is populated with attributes and values from the next entry in the input set. The $dn Attribute of the returned Entry is the distinguished name. If we are using paged-find, possibly retrieve more results.
        Specified by:
        getNextEntry in interface ConnectorInterface
        Overrides:
        getNextEntry in class LDAPConnector
        Returns:
        The next Entry populated with values, or null if nore more Entries
        Throws:
        java.lang.Exception - Any Exception thrown by the underlying libraries
        See Also:
        ConnectorInterface.selectEntries()
      • isExpandingGroups

        public boolean isExpandingGroups()
        Returns true if we are currently expanding nested groups.
        Returns:
      • setExpandingGroups

        public void setExpandingGroups​(java.lang.Boolean expand)
        Sets the expandNestedGroup flag to determine if groups are to be expanded.
        Parameters:
        expand -
      • initialize

        public void initialize​(java.lang.Object o)
                        throws java.lang.Exception
        Description copied from class: LDAPConnector
        Initialize the Connector, connect to the LDAP Server
        Specified by:
        initialize in interface ConnectorInterface
        Overrides:
        initialize in class LDAPConnector
        Parameters:
        o - An Object sent to the initialize method, ignored.
        Throws:
        java.lang.Exception - Any Exception by the underlying methods to connect to the LDAP Server