org.identityconnectors.ldap.search
Class LdapSearch
java.lang.Object
org.identityconnectors.ldap.search.LdapSearch
public class LdapSearch
- extends Object
A class to perform an LDAP search against a LdapConnection.
- Author:
- Andrei Badea
|
Constructor Summary |
LdapSearch(LdapConnection conn,
org.identityconnectors.framework.common.objects.ObjectClass oclass,
LdapFilter filter,
org.identityconnectors.framework.common.objects.OperationOptions options)
|
LdapSearch(LdapConnection conn,
org.identityconnectors.framework.common.objects.ObjectClass oclass,
LdapFilter filter,
org.identityconnectors.framework.common.objects.OperationOptions options,
String... baseDNs)
|
|
Method Summary |
void |
execute(org.identityconnectors.framework.common.objects.ResultsHandler handler)
Performs the search and passes the resulting ConnectorObjects to
the given handler. |
static Set<String> |
getAttributesReturnedByDefault(LdapConnection conn,
org.identityconnectors.framework.common.objects.ObjectClass oclass)
|
org.identityconnectors.framework.common.objects.ConnectorObject |
getSingleResult()
Executes the query against all configured base DNs and returns the first
ConnectorObject or null. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LdapSearch
public LdapSearch(LdapConnection conn,
org.identityconnectors.framework.common.objects.ObjectClass oclass,
LdapFilter filter,
org.identityconnectors.framework.common.objects.OperationOptions options)
LdapSearch
public LdapSearch(LdapConnection conn,
org.identityconnectors.framework.common.objects.ObjectClass oclass,
LdapFilter filter,
org.identityconnectors.framework.common.objects.OperationOptions options,
String... baseDNs)
getAttributesReturnedByDefault
public static Set<String> getAttributesReturnedByDefault(LdapConnection conn,
org.identityconnectors.framework.common.objects.ObjectClass oclass)
execute
public final void execute(org.identityconnectors.framework.common.objects.ResultsHandler handler)
- Performs the search and passes the resulting
ConnectorObjects to
the given handler.
- Parameters:
handler - the handler.
- Throws:
NamingException - if a JNDI exception occurs.
getSingleResult
public final org.identityconnectors.framework.common.objects.ConnectorObject getSingleResult()
- Executes the query against all configured base DNs and returns the first
ConnectorObject or null.
Copyright © 2012. All Rights Reserved.