public class LdapConnection extends AbstractConnection
For configuration details and examples see overview page.
AbstractConnection.StatementCounter| Modifier and Type | Field and Description |
|---|---|
static String |
FILE_MAXLENGTH_KEY
Names of the Max File Length connection property.
|
static String |
SEARCH_BASEDN_KEY
Name of the Search base DN connection property.
|
static String |
SEARCH_COUNTLIMIT_KEY
Name of the Count Limit(maximum number of entries to be returned)
connection property.
|
static String |
SEARCH_SCOPE_KEY
Name of the Search scope connection property.
|
static String |
SEARCH_TIMELIMIT_KEY
Name of the Time Limit connection property.
|
counter| Constructor and Description |
|---|
LdapConnection() |
LdapConnection(ConnectionParameters parameters)
Creates a connnection to a directory.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
executeQuery(Resource queryContent,
ParametersCallback parametersCallback,
QueryCallback queryCallback) |
void |
executeScript(Resource scriptContent,
ParametersCallback parametersCallback) |
protected void |
initializeContext(Hashtable<String,Object> env)
Creates a directory context.
|
commit, getDialectIdentifier, getExecutedStatementsCount, isReadonly, rollback, setDialectIdentifier, toStringpublic static final String SEARCH_SCOPE_KEY
The value must be one of the: object, onelevel, subtree
public static final String SEARCH_BASEDN_KEY
public static final String SEARCH_TIMELIMIT_KEY
The value must be integer.
public static final String SEARCH_COUNTLIMIT_KEY
The value must be integer.
public static final String FILE_MAXLENGTH_KEY
This property specifies the maximum size in Kb of the external files referenced from LDIFs. The default value is 10000 (10MB)
public LdapConnection()
public LdapConnection(ConnectionParameters parameters)
parameters - parameters to establish connection.protected void initializeContext(Hashtable<String,Object> env)
env - environment to create initial context.public void executeScript(Resource scriptContent, ParametersCallback parametersCallback) throws ProviderException
ProviderExceptionpublic void executeQuery(Resource queryContent, ParametersCallback parametersCallback, QueryCallback queryCallback) throws ProviderException
ProviderExceptionpublic void close()
throws ProviderException
ProviderExceptionCopyright © 2006–2019. All rights reserved.