Modifier and Type | Method and Description |
---|---|
AddResponse |
LdapConnection.add(AddRequest addRequest)
Add an entry present in the AddRequest to the server.
|
AddResponse |
LdapConnection.add(org.apache.directory.shared.ldap.entry.Entry entry)
Add an entry to the server.
|
AddFuture |
LdapConnection.addAsync(AddRequest addRequest)
Add an entry present in the AddRequest to the server.
|
AddFuture |
LdapConnection.addAsync(org.apache.directory.shared.ldap.entry.Entry entry)
Add an entry to the server asynchronously.
|
BindResponse |
LdapConnection.bind()
Anonymous Bind on a server.
|
BindResponse |
LdapConnection.bind(BindRequest bindRequest)
Bind to the server using a BindRequest object.
|
BindResponse |
LdapConnection.bind(org.apache.directory.shared.ldap.name.DN name,
String credentials)
Simple Bind on a server.
|
BindResponse |
LdapConnection.bind(String name,
String credentials)
Simple Bind on a server.
|
BindFuture |
LdapConnection.bindAsync()
Anonymous asynchronous Bind on a server.
|
BindFuture |
LdapConnection.bindAsync(BindRequest bindRequest)
Do an asynchronous bind, based on a BindRequest.
|
BindFuture |
LdapConnection.bindAsync(org.apache.directory.shared.ldap.name.DN name,
String credentials)
Simple asynchronous Bind on a server.
|
BindFuture |
LdapConnection.bindAsync(String name,
String credentials)
Simple asynchronous Bind on a server.
|
CompareResponse |
LdapConnection.compare(CompareRequest compareRequest)
compares an entry's attribute's value with that of the given value
|
CompareResponse |
LdapConnection.compare(org.apache.directory.shared.ldap.name.DN dn,
String attributeName,
byte[] value)
Compares a whether a given attribute's value matches that of the
existing value of the attribute present in the entry with the given DN
|
CompareResponse |
LdapConnection.compare(org.apache.directory.shared.ldap.name.DN dn,
String attributeName,
String value)
Compares a whether a given attribute's value matches that of the
existing value of the attribute present in the entry with the given DN
|
CompareResponse |
LdapConnection.compare(org.apache.directory.shared.ldap.name.DN dn,
String attributeName,
org.apache.directory.shared.ldap.entry.Value<?> value)
Compares a whether a given attribute's value matches that of the
existing value of the attribute present in the entry with the given DN
|
CompareResponse |
LdapConnection.compare(String dn,
String attributeName,
byte[] value)
Compares a whether a given attribute's value matches that of the
existing value of the attribute present in the entry with the given DN
|
CompareResponse |
LdapConnection.compare(String dn,
String attributeName,
String value)
Compares a whether a given attribute's value matches that of the
existing value of the attribute present in the entry with the given DN
|
CompareResponse |
LdapConnection.compare(String dn,
String attributeName,
org.apache.directory.shared.ldap.entry.Value<?> value)
Compares a whether a given attribute's value matches that of the
existing value of the attribute present in the entry with the given DN
|
CompareFuture |
LdapConnection.compareAsync(CompareRequest compareRequest)
Asynchronously compares an entry's attribute's value with that of the given value
|
boolean |
LdapConnection.connect()
Connect to the remote LDAP server.
|
DeleteResponse |
LdapConnection.delete(DeleteRequest deleteRequest)
Performs a delete operation based on the delete request object.
|
DeleteResponse |
LdapConnection.delete(org.apache.directory.shared.ldap.name.DN dn)
deletes the entry with the given DN
|
DeleteResponse |
LdapConnection.delete(String dn)
deletes the entry with the given DN
|
DeleteFuture |
LdapConnection.deleteAsync(DeleteRequest delRequest)
Performs an asynchronous delete operation based on the delete request object.
|
DeleteResponse |
LdapConnection.deleteTree(org.apache.directory.shared.ldap.name.DN dn)
deletes the entry with the given DN, and all its children
|
DeleteResponse |
LdapConnection.deleteTree(String dn)
deletes the entry with the given DN, and all its children
|
ExtendedResponse |
LdapConnection.extended(ExtendedRequest extendedRequest)
Performs an extended operation based on the Extended request object.
|
ExtendedResponse |
LdapConnection.extended(org.apache.directory.shared.asn1.primitives.OID oid) |
ExtendedResponse |
LdapConnection.extended(org.apache.directory.shared.asn1.primitives.OID oid,
byte[] value)
sends a extended operation request to the server with the given OID and value
|
ExtendedResponse |
LdapConnection.extended(String oid) |
ExtendedResponse |
LdapConnection.extended(String oid,
byte[] value) |
ExtendedFuture |
LdapConnection.extendedAsync(ExtendedRequest extendedRequest)
Asynchronously requests the server to perform an extended operation based on the given request.
|
List<String> |
LdapConnection.getSupportedControls()
get the Controls supported by server.
|
boolean |
LdapConnection.isControlSupported(String controlOID)
checks if a control with the given OID is supported
|
void |
LdapConnection.loadSchema()
loads the default schema that is bundled in the shared-ldap-schema.jar
|
SearchResponse |
LdapConnection.lookup(String dn) |
SearchResponse |
LdapConnection.lookup(String dn,
String... attributes)
searches for an entry having the given DN
|
ModifyResponse |
LdapConnection.modify(org.apache.directory.shared.ldap.entry.Entry entry,
org.apache.directory.shared.ldap.entry.ModificationOperation modOp)
modifies all the attributes present in the entry by applying the same operation.
|
ModifyResponse |
LdapConnection.modify(ModifyRequest modRequest)
Performs an modify operation based on the modifications present in
the ModifyRequest.
|
ModifyFuture |
LdapConnection.modifyAsync(ModifyRequest modRequest)
Performs an asynchronous modify operation based on the modifications present in
the ModifyRequest.
|
ModifyDnResponse |
LdapConnection.modifyDn(ModifyDnRequest modDnRequest)
performs the modifyDn operation based on the given ModifyDnRequest.
|
ModifyDnFuture |
LdapConnection.modifyDnAsync(ModifyDnRequest modDnRequest)
performs the modifyDn operation based on the given ModifyDnRequest.
|
ModifyDnResponse |
LdapConnection.move(org.apache.directory.shared.ldap.name.DN entryDn,
org.apache.directory.shared.ldap.name.DN newSuperiorDn)
moves the given entry DN under the new superior DN
|
ModifyDnResponse |
LdapConnection.move(String entryDn,
String newSuperiorDn) |
ModifyDnResponse |
LdapConnection.rename(org.apache.directory.shared.ldap.name.DN entryDn,
org.apache.directory.shared.ldap.name.RDN newRdn)
renames the given entryDn with new RDN and deletes the old RDN.
|
ModifyDnResponse |
LdapConnection.rename(org.apache.directory.shared.ldap.name.DN entryDn,
org.apache.directory.shared.ldap.name.RDN newRdn,
boolean deleteOldRdn)
renames the given entryDn with new RDN and deletes the old Rdn if
deleteOldRdn is set to true.
|
ModifyDnResponse |
LdapConnection.rename(String entryDn,
String newRdn)
renames the given entryDn with new Rdn and deletes the old RDN.
|
ModifyDnResponse |
LdapConnection.rename(String entryDn,
String newRdn,
boolean deleteOldRdn) |
org.apache.directory.shared.ldap.cursor.Cursor<SearchResponse> |
LdapConnection.search(SearchRequest searchRequest)
Performs search in a synchronous mode.
|
org.apache.directory.shared.ldap.cursor.Cursor<SearchResponse> |
LdapConnection.search(String baseDn,
String filter,
org.apache.directory.shared.ldap.filter.SearchScope scope,
String... attributes)
Do a search, on the base object, using the given filter.
|
SearchFuture |
LdapConnection.searchAsync(SearchRequest searchRequest)
Do a search, on the base object, using the given filter.
|
SearchFuture |
LdapConnection.searchAsync(String baseDn,
String filter,
org.apache.directory.shared.ldap.filter.SearchScope scope,
String... attributes)
Do an asynchronous search, on the base object, using the given filter.
|
Modifier and Type | Class and Description |
---|---|
class |
InvalidConnectionException
A InvalidConnectionException is thrown if one tries to apply an operation
on a closed connection
|
Modifier and Type | Method and Description |
---|---|
void |
CompareListener.attributeCompared(LdapConnection connection,
CompareResponse response)
callback method called after completing the compare operation.
|
void |
BindListener.bindCompleted(LdapConnection connection,
BindResponse bindResponse)
A callback method called when the bind operation completed.
|
void |
AddListener.entryAdded(LdapConnection connection,
AddResponse response)
callback method called after completing the add operation.
|
void |
DeleteListener.entryDeleted(LdapConnection connection,
DeleteResponse response)
callback method called after completing the delete operation.
|
void |
SearchListener.entryFound(LdapConnection connection,
SearchResultEntry searchResultEntry)
A callback method for each entry returned by a search operation.
|
void |
ExtendedListener.extendedOperationCompleted(LdapConnection connection,
ExtendedResponse response)
callback method called after completing the extended operation.
|
void |
ModifyListener.modifyCompleted(LdapConnection connection,
ModifyResponse response)
callback method called after completing the modify operation.
|
void |
ModifyDnListener.modifyDnCompleted(LdapConnection connection,
ModifyDnResponse response)
callback method called after completing the modifyDn operation.
|
void |
SearchListener.referralFound(LdapConnection connection,
SearchResultReference searchResultReference)
A callback method for each referral returned by a search operation.
|
void |
SearchListener.searchDone(LdapConnection connection,
SearchResultDone searchResultDone)
A callback method called when the search is done.
|
Modifier and Type | Method and Description |
---|---|
Message |
AbstractMessage.remove(org.apache.directory.shared.ldap.message.control.Control... controls)
Deletes controls, removing them from this Message.
|
Message |
Message.remove(org.apache.directory.shared.ldap.message.control.Control... control)
Deletes controls, removing them from this Message.
|
Copyright © 2009–2013 The Apache Software Foundation. All rights reserved.