public class LdapSearch extends Object
LdapConnection.| Constructor and Description |
|---|
LdapSearch(LdapConnection conn,
ObjectClass oclass,
LdapFilter filter,
ResultsHandler handler,
OperationOptions options) |
LdapSearch(LdapConnection conn,
ObjectClass oclass,
LdapFilter filter,
ResultsHandler handler,
OperationOptions options,
String... baseDNs) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
void |
execute(ResultsHandler handler)
Performs the search and passes the resulting
ConnectorObjects to
the given handler. |
static Set<String> |
getAttributesReturnedByDefault(LdapConnection conn,
ObjectClass oclass) |
ConnectorObject |
getSingleResult()
Executes the query against all configured base DNs and returns the first
ConnectorObject or null. |
public LdapSearch(LdapConnection conn, ObjectClass oclass, LdapFilter filter, ResultsHandler handler, OperationOptions options)
public LdapSearch(LdapConnection conn, ObjectClass oclass, LdapFilter filter, ResultsHandler handler, OperationOptions options, String... baseDNs)
public static Set<String> getAttributesReturnedByDefault(LdapConnection conn, ObjectClass oclass)
public final void execute()
public final void execute(ResultsHandler handler)
ConnectorObjects to
the given handler.handler - the handler.NamingException - if a JNDI exception occurs.public final ConnectorObject getSingleResult()
ConnectorObject or null.Copyright © 2018–2025. All rights reserved.