Package | Description |
---|---|
org.forgerock.opendj.ldap |
Classes and interfaces for core types including connections, entries, and
attributes.
|
org.forgerock.opendj.ldap.messages |
Classes and interfaces for core LDAP requests/responses.
|
org.forgerock.opendj.ldap.schema |
Classes and interfaces for constructing and querying LDAP schemas.
|
org.forgerock.opendj.ldap.spi |
Interfaces and classes for service providers.
|
org.forgerock.opendj.ldif |
Classes and interfaces for reading and writing LDIF.
|
Modifier and Type | Class and Description |
---|---|
class |
AssertionFailureException
Thrown when the result code returned in a Result indicates that the Request
failed because the filter contained in an assertion control failed to match
the target entry.
|
class |
AuthenticationException
Thrown when the result code returned in a Result indicates that the Bind
Request failed due to an authentication failure.
|
class |
AuthorizationException
Thrown when the result code returned in a Result indicates that the Request
failed due to an authorization failure.
|
class |
CancelledResultException
Thrown when the result code returned in a Result indicates that the Request
was cancelled.
|
class |
ConnectionException
Thrown when the result code returned in a Result indicates that the Request
was unsuccessful because of a connection failure.
|
class |
ConstraintViolationException
Thrown when the result code returned in a Result indicates that the update
Request failed because it would have left the Directory in an inconsistent
state.
|
class |
EntryNotFoundException
Thrown when the result code returned in a Result indicates that the Request
failed because the target entry was not found by the Directory Server.
|
class |
MultipleEntriesFoundException
Thrown when the result code returned in a Result indicates that the requested
single entry search operation or read operation failed because the Directory
Server returned multiple matching entries (or search references) when only a
single matching entry was expected.
|
class |
ReferralException
Thrown when the result code returned in a Result indicates that the Request
could not be processed by the Directory Server because the target entry is
located on another server.
|
class |
TimeoutResultException
Thrown when the result code returned in a Result indicates that the Request
was aborted because it did not complete in the required time out period.
|
Modifier and Type | Method and Description |
---|---|
static LdapException |
LdapException.newLdapClientException(Throwable cause)
Creates a new LDAP client exception with the provided cause and a result code depending
on the class cause original
cause . |
static LdapException |
LdapException.newLdapException(Result result)
Creates a new LDAP exception using the provided result.
|
static LdapException |
LdapException.newLdapException(ResultCode resultCode)
Creates a new LDAP exception with the provided result code and an
empty diagnostic message.
|
static LdapException |
LdapException.newLdapException(ResultCode resultCode,
CharSequence diagnosticMessage)
Creates a new LDAP exception with the provided result code and
diagnostic message.
|
static LdapException |
LdapException.newLdapException(ResultCode resultCode,
CharSequence diagnosticMessage,
Dn matchedDn,
Throwable cause)
Creates a new LDAP exception with the provided resultCode, diagnosticMessage, matched DN and cause.
|
static LdapException |
LdapException.newLdapException(ResultCode resultCode,
CharSequence diagnosticMessage,
Throwable cause)
Creates a new LDAP exception with the provided result code,
diagnostic message, and cause.
|
static LdapException |
LdapException.newLdapException(ResultCode resultCode,
Throwable cause)
Creates a new LDAP exception with the provided result code and
cause.
|
static LdapException |
LdapException.newLdapException(Throwable cause)
Creates a new LDAP exception with the provided cause and a result code depending
on the class cause original
cause . |
Modifier and Type | Method and Description |
---|---|
Promise<Connection,LdapException> |
LdapConnectionFactory.getConnectionAsync() |
Promise<Connection,LdapException> |
ConnectionFactory.getConnectionAsync()
Asynchronously obtains a connection to the Directory Server associated
with this connection factory.
|
Modifier and Type | Method and Description |
---|---|
void |
ConnectionEventListener.handleConnectionError(boolean isDisconnectNotification,
LdapException error)
Notifies this connection event listener that a fatal error has occurred
and the connection can no longer be used - the server has crashed, for
example.
|
void |
LdapResultHandler.handleException(LdapException exception)
Invoked when the asynchronous operation has failed.
|
void |
LoadBalancerEventListener.handleLdapClientOffline(LdapClient client,
LdapException error)
Invoked when the load-balancer is unable to obtain a connection from the
specified LDAP client.
|
Modifier and Type | Method and Description |
---|---|
<VOUT> LdapPromise<VOUT> |
LdapPromise.then(Function<? super S,VOUT,LdapException> onResult) |
<VOUT> LdapPromise<VOUT> |
LdapPromise.thenAsync(AsyncFunction<? super S,VOUT,LdapException> onResult) |
LdapPromise<S> |
LdapPromise.thenOnException(ExceptionHandler<? super LdapException> onException) |
LdapPromise<S> |
LdapPromise.thenOnResultOrException(ResultHandler<? super S> onResult,
ExceptionHandler<? super LdapException> onException) |
Modifier and Type | Method and Description |
---|---|
Result |
Connection.add(AddRequest request)
Adds an entry to the Directory Server using the provided add request.
|
Result |
AbstractConnectionWrapper.add(AddRequest request)
Adds an entry to the Directory Server using the provided add request.
|
Result |
AbstractAsynchronousConnection.add(AddRequest request) |
Result |
Connection.add(Entry entry)
Adds the provided entry to the Directory Server.
|
Result |
AbstractConnectionWrapper.add(Entry entry)
Adds the provided entry to the Directory Server.
|
Result |
AbstractConnection.add(Entry entry) |
Result |
Connection.add(String... ldifLines)
Adds an entry to the Directory Server using the provided lines of LDIF.
|
Result |
AbstractConnectionWrapper.add(String... ldifLines)
Adds an entry to the Directory Server using the provided lines of LDIF.
|
Result |
AbstractConnection.add(String... ldifLines) |
Result |
Connection.applyChange(ChangeRecord request)
Applies the provided change request to the Directory Server.
|
Result |
AbstractConnectionWrapper.applyChange(ChangeRecord request)
Applies the provided change request to the Directory Server.
|
Result |
AbstractConnection.applyChange(ChangeRecord request) |
BindResult |
Connection.bind(BindRequest request)
Authenticates to the Directory Server using the provided bind request.
|
BindResult |
AbstractConnectionWrapper.bind(BindRequest request)
Authenticates to the Directory Server using the provided bind request.
|
BindResult |
AbstractAsynchronousConnection.bind(BindRequest request) |
BindResult |
Connection.bind(String name,
char[] password)
Authenticates to the Directory Server using simple authentication and the
provided user name and password.
|
BindResult |
AbstractConnectionWrapper.bind(String name,
char[] password)
Authenticates to the Directory Server using simple authentication and the
provided user name and password.
|
BindResult |
AbstractConnection.bind(String name,
char[] password) |
CompareResult |
Connection.compare(CompareRequest request)
Compares an entry in the Directory Server using the provided compare
request.
|
CompareResult |
AbstractConnectionWrapper.compare(CompareRequest request)
Compares an entry in the Directory Server using the provided compare
request.
|
CompareResult |
AbstractAsynchronousConnection.compare(CompareRequest request) |
CompareResult |
Connection.compare(String name,
String attributeDescription,
String assertionValue)
Compares the named entry in the Directory Server against the provided
attribute value assertion.
|
CompareResult |
AbstractConnectionWrapper.compare(String name,
String attributeDescription,
String assertionValue)
Compares the named entry in the Directory Server against the provided
attribute value assertion.
|
CompareResult |
AbstractConnection.compare(String name,
String attributeDescription,
String assertionValue) |
Result |
Connection.delete(DeleteRequest request)
Deletes an entry from the Directory Server using the provided delete
request.
|
Result |
AbstractConnectionWrapper.delete(DeleteRequest request)
Deletes an entry from the Directory Server using the provided delete
request.
|
Result |
AbstractAsynchronousConnection.delete(DeleteRequest request) |
default Result |
Connection.delete(Dn name)
Deletes the named entry from the Directory Server.
|
Result |
Connection.delete(String name)
Deletes the named entry from the Directory Server.
|
Result |
AbstractConnectionWrapper.delete(String name)
Deletes the named entry from the Directory Server.
|
Result |
AbstractConnection.delete(String name) |
Result |
Connection.deleteSubtree(String name)
Deletes the named entry and all of its subordinates from the Directory
Server.
|
Result |
AbstractConnectionWrapper.deleteSubtree(String name)
Deletes the named entry and all of its subordinates from the Directory
Server.
|
Result |
AbstractConnection.deleteSubtree(String name) |
<R extends ExtendedResult> |
Connection.extendedRequest(ExtendedRequest<R> request)
Requests that the Directory Server performs the provided extended
request.
|
<R extends ExtendedResult> |
AbstractConnectionWrapper.extendedRequest(ExtendedRequest<R> request)
Requests that the Directory Server performs the provided extended
request.
|
<R extends ExtendedResult> |
AbstractConnection.extendedRequest(ExtendedRequest<R> request) |
<R extends ExtendedResult> |
Connection.extendedRequest(ExtendedRequest<R> request,
IntermediateResponseHandler handler)
Requests that the Directory Server performs the provided extended
request, optionally listening for any intermediate responses.
|
<R extends ExtendedResult> |
AbstractConnectionWrapper.extendedRequest(ExtendedRequest<R> request,
IntermediateResponseHandler handler)
Requests that the Directory Server performs the provided extended
request, optionally listening for any intermediate responses.
|
<R extends ExtendedResult> |
AbstractAsynchronousConnection.extendedRequest(ExtendedRequest<R> request,
IntermediateResponseHandler handler) |
GenericExtendedResult |
Connection.extendedRequest(String requestName,
ByteString requestValue)
Requests that the Directory Server performs the provided extended
request.
|
GenericExtendedResult |
AbstractConnectionWrapper.extendedRequest(String requestName,
ByteString requestValue)
Requests that the Directory Server performs the provided extended
request.
|
GenericExtendedResult |
AbstractConnection.extendedRequest(String requestName,
ByteString requestValue) |
Connection |
LdapConnectionFactory.getConnection() |
Connection |
ConnectionFactory.getConnection()
Returns a connection to the Directory Server associated with this
connection factory.
|
Result |
Connection.modify(ModifyRequest request)
Modifies an entry in the Directory Server using the provided modify
request.
|
Result |
AbstractConnectionWrapper.modify(ModifyRequest request)
Modifies an entry in the Directory Server using the provided modify
request.
|
Result |
AbstractAsynchronousConnection.modify(ModifyRequest request) |
Result |
Connection.modify(String... ldifLines)
Modifies an entry in the Directory Server using the provided lines of
LDIF.
|
Result |
AbstractConnectionWrapper.modify(String... ldifLines)
Modifies an entry in the Directory Server using the provided lines of
LDIF.
|
Result |
AbstractConnection.modify(String... ldifLines) |
Result |
Connection.modifyDn(ModifyDnRequest request)
Renames an entry in the Directory Server using the provided modify DN
request.
|
Result |
AbstractConnectionWrapper.modifyDn(ModifyDnRequest request)
Renames an entry in the Directory Server using the provided modify DN
request.
|
Result |
AbstractAsynchronousConnection.modifyDn(ModifyDnRequest request) |
Result |
Connection.modifyDn(String name,
String newRDN)
Renames the named entry in the Directory Server using the provided new
RDN.
|
Result |
AbstractConnectionWrapper.modifyDn(String name,
String newRDN)
Renames the named entry in the Directory Server using the provided new
RDN.
|
Result |
AbstractConnection.modifyDn(String name,
String newRDN) |
static Entry |
Entries.modifyEntry(Entry entry,
Modification change)
Applies the provided modification to an entry.
|
static Entry |
Entries.modifyEntry(Entry entry,
Modification change,
Collection<? super ByteString> conflictingValues)
Applies the provided modification to an entry.
|
static Entry |
Entries.modifyEntry(Entry entry,
ModifyRequest changes)
Applies the provided modification request to an entry.
|
static Entry |
Entries.modifyEntryPermissive(Entry entry,
Collection<Modification> changes)
Applies the provided modifications to an entry using "permissive" modify
semantics.
|
static Entry |
Entries.modifyEntryStrict(Entry entry,
Collection<Modification> changes)
Applies the provided modifications to an entry using "strict" modify
semantics.
|
SearchResultEntry |
Connection.readEntry(Dn name,
String... attributeDescriptions)
Reads the named entry from the Directory Server.
|
SearchResultEntry |
AbstractConnectionWrapper.readEntry(Dn name,
String... attributeDescriptions)
Reads the named entry from the Directory Server.
|
SearchResultEntry |
AbstractConnection.readEntry(Dn baseObject,
String... attributeDescriptions) |
SearchResultEntry |
Connection.readEntry(String name,
String... attributeDescriptions)
Reads the named entry from the Directory Server.
|
SearchResultEntry |
AbstractConnectionWrapper.readEntry(String name,
String... attributeDescriptions)
Reads the named entry from the Directory Server.
|
SearchResultEntry |
AbstractConnection.readEntry(String baseObject,
String... attributeDescriptions) |
static RootDse |
RootDse.readRootDse(Connection connection)
Reads the Root DSE from the Directory Server using the provided
connection.
|
Result |
Connection.search(SearchRequest request,
Collection<? super SearchResultEntry> entries)
Searches the Directory Server using the provided search request.
|
Result |
AbstractConnectionWrapper.search(SearchRequest request,
Collection<? super SearchResultEntry> entries)
Searches the Directory Server using the provided search request.
|
Result |
AbstractConnection.search(SearchRequest request,
Collection<? super SearchResultEntry> entries) |
Result |
Connection.search(SearchRequest request,
Collection<? super SearchResultEntry> entries,
Collection<? super SearchResultReference> references)
Searches the Directory Server using the provided search request.
|
Result |
AbstractConnectionWrapper.search(SearchRequest request,
Collection<? super SearchResultEntry> entries,
Collection<? super SearchResultReference> references)
Searches the Directory Server using the provided search request.
|
Result |
AbstractConnection.search(SearchRequest request,
Collection<? super SearchResultEntry> entries,
Collection<? super SearchResultReference> references) |
Result |
Connection.search(SearchRequest request,
SearchResultHandler handler)
Searches the Directory Server using the provided search request.
|
Result |
AbstractConnectionWrapper.search(SearchRequest request,
SearchResultHandler handler)
Searches the Directory Server using the provided search request.
|
Result |
AbstractAsynchronousConnection.search(SearchRequest request,
SearchResultHandler handler) |
SearchResultEntry |
Connection.searchSingleEntry(SearchRequest request)
Searches the Directory Server for a single entry using the provided
search request.
|
SearchResultEntry |
AbstractConnectionWrapper.searchSingleEntry(SearchRequest request)
Searches the Directory Server for a single entry using the provided
search request.
|
SearchResultEntry |
AbstractConnection.searchSingleEntry(SearchRequest request) |
SearchResultEntry |
Connection.searchSingleEntry(String baseObject,
SearchScope scope,
String filter,
String... attributeDescriptions)
Searches the Directory Server for a single entry using the provided
search parameters.
|
SearchResultEntry |
AbstractConnectionWrapper.searchSingleEntry(String baseObject,
SearchScope scope,
String filter,
String... attributeDescriptions)
Searches the Directory Server for a single entry using the provided
search parameters.
|
SearchResultEntry |
AbstractConnection.searchSingleEntry(String baseObject,
SearchScope scope,
String filter,
String... attributeDescriptions) |
Modifier and Type | Method and Description |
---|---|
LdapException |
InvalidRequest.getReason()
Returns the reason why this request is invalid.
|
Modifier and Type | Method and Description |
---|---|
static InvalidRequest |
Requests.newInvalidRequest(Request.RequestType invalidRequestType,
String invalidRawDn,
LdapException reason)
Creates a new invalid request using the provided reason.
|
Modifier and Type | Method and Description |
---|---|
Function<Dn,Entry,LdapException> |
SchemaValidationPolicy.checkDitStructureRulesParentEntryResolver()
Returns the parent entry resolver which should be used for retrieving the parent entry
during DIT structure rule validation.
|
Modifier and Type | Method and Description |
---|---|
SchemaValidationPolicy |
SchemaValidationPolicy.checkDitStructureRules(SchemaValidationPolicy.Action policy,
Function<Dn,Entry,LdapException> parentEntryResolver)
Specifies the policy for validating entries against structure rules defined in the schema.
|
Modifier and Type | Method and Description |
---|---|
SchemaBuilder |
SchemaBuilder.addSchema(Connection connection,
Dn name,
boolean overwrite)
Reads the schema elements contained in the named subschema sub-entry and
adds them to this schema builder.
|
SchemaBuilder |
SchemaBuilder.addSchemaForEntry(Connection connection,
Dn name,
boolean overwrite)
Reads the schema elements contained in the subschema sub-entry which
applies to the named entry and adds them to this schema builder.
|
static Schema |
Schema.readSchema(Connection connection,
Dn name)
Reads the schema contained in the named subschema sub-entry.
|
static Schema |
Schema.readSchemaForEntry(Connection connection,
Dn name)
Reads the schema contained in the subschema sub-entry which applies to
the named entry.
|
Modifier and Type | Method and Description |
---|---|
static <R,E extends LdapException> |
LdapPromises.newFailedLdapPromise(E error)
Returns a
LdapPromise representing an asynchronous task which has already failed with the provided
error. |
static <R,E extends LdapException> |
LdapPromises.newFailedLdapPromise(E error,
int requestId)
Returns a
LdapPromise representing an asynchronous task, identified by the provided requestId, which has
already failed with the provided error. |
Modifier and Type | Method and Description |
---|---|
LdapException |
ConnectionState.getConnectionError()
Returns the error that caused the connection to fail, or
null if
the connection has not failed. |
Modifier and Type | Method and Description |
---|---|
void |
LdapPromiseImpl.handleException(LdapException exception) |
boolean |
ConnectionState.notifyConnectionError(boolean isDisconnectNotification,
LdapException error)
Attempts to transition this connection state to error and invokes event
listeners if successful.
|
Modifier and Type | Method and Description |
---|---|
static <R> LdapPromise<R> |
LdapPromises.asLdapPromise(Promise<R,LdapException> wrappedPromise)
Converts a
Promise to a LdapPromise with a request ID of -1. |
static <R> LdapPromise<R> |
LdapPromises.asLdapPromise(Promise<R,LdapException> wrappedPromise,
int requestId)
Converts a
Promise to a LdapPromise with the provided request ID. |
Modifier and Type | Method and Description |
---|---|
boolean |
ConnectionEntryReader.hasNext() |
boolean |
ConnectionEntryReader.isEntry()
Waits for the next search result entry or reference to become available
and returns
true if it is an entry, or false if it is a
reference. |
boolean |
ConnectionEntryReader.isReference()
Waits for the next search result entry or reference to become available
and returns
true if it is a reference, or false if it is
an entry. |
SearchResultEntry |
ConnectionEntryReader.readEntry()
Waits for the next search result entry or reference to become available
and, if it is an entry, returns it as a
SearchResultEntry . |
SearchResultReference |
ConnectionEntryReader.readReference()
Waits for the next search result entry or reference to become available
and, if it is a reference, returns it as a
SearchResultReference . |
Result |
ConnectionEntryReader.readResult()
Waits for the next search response to become available and returns it if
it is a search result indicating that the search completed successfully.
|
ConnectionChangeRecordWriter |
ConnectionChangeRecordWriter.writeChangeRecord(AddRequest change)
Writes the provided Add request to the underlying connection, blocking
until the request completes.
|
ConnectionChangeRecordWriter |
ConnectionChangeRecordWriter.writeChangeRecord(ChangeRecord change)
Writes the provided change record to the underlying connection, blocking
until the request completes.
|
ConnectionChangeRecordWriter |
ConnectionChangeRecordWriter.writeChangeRecord(DeleteRequest change)
Writes the provided Delete request to the underlying connection, blocking
until the request completes.
|
ConnectionChangeRecordWriter |
ConnectionChangeRecordWriter.writeChangeRecord(ModifyDnRequest change)
Writes the provided ModifyDN request to the underlying connection,
blocking until the request completes.
|
ConnectionChangeRecordWriter |
ConnectionChangeRecordWriter.writeChangeRecord(ModifyRequest change)
Writes the provided Modify request to the underlying connection, blocking
until the request completes.
|
ConnectionEntryWriter |
ConnectionEntryWriter.writeEntry(Entry entry)
Writes an entry to the underlying connection using an Add request,
blocking until the request completes.
|
Copyright © 2010-2018, ForgeRock All Rights Reserved.