|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LdapConnection
The root interface for all the LDAP connection implementations.
| Method Summary | |
|---|---|
void |
abandon(org.apache.directory.api.ldap.model.message.AbandonRequest abandonRequest)
An abandon request essentially with the request message ID of the operation to be canceled and/or potentially some controls and timeout (the controls and timeout are not mandatory). |
void |
abandon(int messageId)
Abandons a request submitted to the server for performing a particular operation The abandonRequest is always non-blocking, because no response is expected |
org.apache.directory.api.ldap.model.message.AddResponse |
add(org.apache.directory.api.ldap.model.message.AddRequest addRequest)
Add an entry present in the AddRequest to the server. |
void |
add(org.apache.directory.api.ldap.model.entry.Entry entry)
Add an entry to the server. |
void |
anonymousBind()
Anonymous Bind on a server. |
void |
bind()
Bind on a server, using the LdapConnectionConfig informations |
org.apache.directory.api.ldap.model.message.BindResponse |
bind(org.apache.directory.api.ldap.model.message.BindRequest bindRequest)
Bind to the server using a BindRequest object. |
void |
bind(org.apache.directory.api.ldap.model.name.Dn name)
Unauthenticated authentication Bind on a server. |
void |
bind(org.apache.directory.api.ldap.model.name.Dn name,
String credentials)
Simple Bind on a server. |
void |
bind(String name)
Unauthenticated authentication bind |
void |
bind(String name,
String credentials)
Simple Bind on a server. |
boolean |
close()
Disconnect from the remote LDAP server |
org.apache.directory.api.ldap.model.message.CompareResponse |
compare(org.apache.directory.api.ldap.model.message.CompareRequest compareRequest)
Compares an entry's attribute's value with that of the given value. |
boolean |
compare(org.apache.directory.api.ldap.model.name.Dn dn,
String attributeName,
byte[] value)
Compares whether a given attribute's value matches that of the existing value of the attribute present in the entry with the given Dn. |
boolean |
compare(org.apache.directory.api.ldap.model.name.Dn dn,
String attributeName,
String value)
Compares whether a given attribute's value matches that of the existing value of the attribute present in the entry with the given Dn. |
boolean |
compare(org.apache.directory.api.ldap.model.name.Dn dn,
String attributeName,
org.apache.directory.api.ldap.model.entry.Value<?> value)
Compares whether a given attribute's value matches that of the existing value of the attribute present in the entry with the given Dn. |
boolean |
compare(String dn,
String attributeName,
byte[] value)
Compares whether a given attribute's value matches that of the existing value of the attribute present in the entry with the given Dn. |
boolean |
compare(String dn,
String attributeName,
String value)
Compares whether a given attribute's value matches that of the existing value of the attribute present in the entry with the given Dn. |
boolean |
compare(String dn,
String attributeName,
org.apache.directory.api.ldap.model.entry.Value<?> value)
Compares whether a given attribute's value matches that of the existing value of the attribute present in the entry with the given Dn. |
boolean |
connect()
Connect to the remote LDAP server. |
org.apache.directory.api.ldap.model.message.DeleteResponse |
delete(org.apache.directory.api.ldap.model.message.DeleteRequest deleteRequest)
Performs a delete operation based on the delete request object. |
void |
delete(org.apache.directory.api.ldap.model.name.Dn dn)
Deletes the entry with the given Dn. |
void |
delete(String dn)
Deletes the entry with the given Dn. |
boolean |
doesFutureExistFor(int messageId)
Checks if there is a ResponseFuture associated with the given message ID. |
boolean |
exists(org.apache.directory.api.ldap.model.name.Dn dn)
Tells if an Entry exists in the server. |
boolean |
exists(String dn)
Tells if an Entry exists in the server. |
org.apache.directory.api.ldap.model.message.ExtendedResponse |
extended(org.apache.directory.api.ldap.model.message.ExtendedRequest extendedRequest)
Performs an extended operation based on the Extended request object. |
org.apache.directory.api.ldap.model.message.ExtendedResponse |
extended(org.apache.directory.api.asn1.util.Oid oid)
Sends a extended operation request to the server with the given OID and no value. |
org.apache.directory.api.ldap.model.message.ExtendedResponse |
extended(org.apache.directory.api.asn1.util.Oid oid,
byte[] value)
Sends a extended operation request to the server with the given OID and value. |
org.apache.directory.api.ldap.model.message.ExtendedResponse |
extended(String oid)
Sends a extended operation request to the server with the given OID and no value. |
org.apache.directory.api.ldap.model.message.ExtendedResponse |
extended(String oid,
byte[] value)
Sends a extended operation request to the server with the given OID and value. |
org.apache.directory.api.ldap.codec.api.BinaryAttributeDetector |
getBinaryAttributeDetector()
|
org.apache.directory.api.ldap.codec.api.LdapApiService |
getCodecService()
Gets the LDAP CODEC service responsible for encoding and decoding messages. |
org.apache.directory.api.ldap.model.entry.Entry |
getRootDse()
Get back the RooDSE from the connected server. |
org.apache.directory.api.ldap.model.entry.Entry |
getRootDse(String... attributes)
Get back the RooDSE from the connected server. |
org.apache.directory.api.ldap.model.schema.SchemaManager |
getSchemaManager()
|
List<String> |
getSupportedControls()
Get the Controls supported by server. |
boolean |
isAuthenticated()
Check if we are authenticated |
boolean |
isConnected()
Check if we are connected |
boolean |
isControlSupported(String controlOID)
Checks if a control with the given OID is supported. |
void |
loadSchema()
Loads all the default schemas that are bundled with the API. Note: This method enables all schemas prior to loading |
org.apache.directory.api.ldap.model.entry.Entry |
lookup(org.apache.directory.api.ldap.model.name.Dn dn)
Searches for an entry having the given Dn. |
org.apache.directory.api.ldap.model.entry.Entry |
lookup(org.apache.directory.api.ldap.model.name.Dn dn,
org.apache.directory.api.ldap.model.message.Control[] controls,
String... attributes)
Searches for an entry having the given Dn. |
org.apache.directory.api.ldap.model.entry.Entry |
lookup(org.apache.directory.api.ldap.model.name.Dn dn,
String... attributes)
Searches for an entry having the given Dn. |
org.apache.directory.api.ldap.model.entry.Entry |
lookup(String dn)
Searches for an entry having the given Dn. |
org.apache.directory.api.ldap.model.entry.Entry |
lookup(String dn,
org.apache.directory.api.ldap.model.message.Control[] controls,
String... attributes)
Searches for an entry having the given Dn. |
org.apache.directory.api.ldap.model.entry.Entry |
lookup(String dn,
String... attributes)
Searches for an entry having the given Dn. |
void |
modify(org.apache.directory.api.ldap.model.name.Dn dn,
org.apache.directory.api.ldap.model.entry.Modification... modifications)
Applies all the modifications to the entry specified by its Dn. |
void |
modify(org.apache.directory.api.ldap.model.entry.Entry entry,
org.apache.directory.api.ldap.model.entry.ModificationOperation modOp)
Modifies all the attributes present in the entry by applying the same operation. |
org.apache.directory.api.ldap.model.message.ModifyResponse |
modify(org.apache.directory.api.ldap.model.message.ModifyRequest modRequest)
Performs an modify operation based on the modifications present in the ModifyRequest. |
void |
modify(String dn,
org.apache.directory.api.ldap.model.entry.Modification... modifications)
Applies all the modifications to the entry specified by its Dn. |
org.apache.directory.api.ldap.model.message.ModifyDnResponse |
modifyDn(org.apache.directory.api.ldap.model.message.ModifyDnRequest modDnRequest)
Performs the modifyDn operation based on the given ModifyDnRequest. |
void |
move(org.apache.directory.api.ldap.model.name.Dn entryDn,
org.apache.directory.api.ldap.model.name.Dn newSuperiorDn)
Moves the given entry Dn under the new superior Dn. |
void |
move(String entryDn,
String newSuperiorDn)
Moves the given entry Dn under the new superior Dn. |
void |
moveAndRename(org.apache.directory.api.ldap.model.name.Dn entryDn,
org.apache.directory.api.ldap.model.name.Dn newDn)
Moves and renames the given entryDn. |
void |
moveAndRename(org.apache.directory.api.ldap.model.name.Dn entryDn,
org.apache.directory.api.ldap.model.name.Dn newDn,
boolean deleteOldRdn)
Moves and renames the given entryDn. |
void |
moveAndRename(String entryDn,
String newDn)
Moves and renames the given entryDn.The old Rdn will be deleted |
void |
moveAndRename(String entryDn,
String newDn,
boolean deleteOldRdn)
Moves and renames the given entryDn. |
void |
rename(org.apache.directory.api.ldap.model.name.Dn entryDn,
org.apache.directory.api.ldap.model.name.Rdn newRdn)
Renames the given entryDn with new Rdn and deletes the old Rdn. |
void |
rename(org.apache.directory.api.ldap.model.name.Dn entryDn,
org.apache.directory.api.ldap.model.name.Rdn newRdn,
boolean deleteOldRdn)
Renames the given entryDn with new Rdn and deletes the old Rdn if deleteOldRdn is set to true. |
void |
rename(String entryDn,
String newRdn)
Renames the given entryDn with new Rdn and deletes the old Rdn. |
void |
rename(String entryDn,
String newRdn,
boolean deleteOldRdn)
Renames the given entryDn with new Rdn and deletes the old Rdn if deleteOldRdn is set to true. |
org.apache.directory.api.ldap.model.cursor.EntryCursor |
search(org.apache.directory.api.ldap.model.name.Dn baseDn,
String filter,
org.apache.directory.api.ldap.model.message.SearchScope scope,
String... attributes)
Do a search, on the base object, using the given filter. |
org.apache.directory.api.ldap.model.cursor.SearchCursor |
search(org.apache.directory.api.ldap.model.message.SearchRequest searchRequest)
Performs search in a synchronous mode. |
org.apache.directory.api.ldap.model.cursor.EntryCursor |
search(String baseDn,
String filter,
org.apache.directory.api.ldap.model.message.SearchScope scope,
String... attributes)
Do a search, on the base object, using the given filter. |
void |
setBinaryAttributeDetector(org.apache.directory.api.ldap.codec.api.BinaryAttributeDetector binaryAttributeDetecter)
Sets the object responsible for the detection of binary attributes |
void |
setTimeOut(long timeOut)
Set the timeOut for the responses. |
void |
unBind()
UnBind from a server. |
| Method Detail |
|---|
boolean isConnected()
true if we are connected.boolean isAuthenticated()
true if we are connected.
boolean connect()
throws org.apache.directory.api.ldap.model.exception.LdapException,
IOException
true if the connection is established, false otherwise
{@link - LdapException} if some error occurred
IOException - if an I/O exception occurred
org.apache.directory.api.ldap.model.exception.LdapException
boolean close()
throws IOException
true if the connection is closed, false otherwise
IOException - if some I/O error occurs
void add(org.apache.directory.api.ldap.model.entry.Entry entry)
throws org.apache.directory.api.ldap.model.exception.LdapException
entry - The entry to add
{@link - LdapException} if some error occurred
org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.message.AddResponse add(org.apache.directory.api.ldap.model.message.AddRequest addRequest)
throws org.apache.directory.api.ldap.model.exception.LdapException
addRequest - the request object containing an entry and controls(if any)
{@link - LdapException} if some error occurred
org.apache.directory.api.ldap.model.exception.LdapExceptionvoid abandon(int messageId)
messageId - the ID of the request message sent to the servervoid abandon(org.apache.directory.api.ldap.model.message.AbandonRequest abandonRequest)
abandonRequest - the abandon operation's request
void bind()
throws org.apache.directory.api.ldap.model.exception.LdapException,
IOException
{@link - LdapException} if some error occurred
IOException - if an I/O exception occurred
org.apache.directory.api.ldap.model.exception.LdapException
void anonymousBind()
throws org.apache.directory.api.ldap.model.exception.LdapException,
IOException
{@link - LdapException} if some error occurred
IOException - if an I/O exception occurred
org.apache.directory.api.ldap.model.exception.LdapException
void bind(String name)
throws org.apache.directory.api.ldap.model.exception.LdapException,
IOException
name - The name we use to authenticate the user. It must be a
valid Dn
{@link - LdapException} if some error occurred
IOException - if an I/O exception occurred
org.apache.directory.api.ldap.model.exception.LdapException
void bind(String name,
String credentials)
throws org.apache.directory.api.ldap.model.exception.LdapException,
IOException
name - The name we use to authenticate the user. It must be a
valid Dncredentials - The password. It can't be null
{@link - LdapException} if some error occurred
IOException - if an I/O exception occurred
org.apache.directory.api.ldap.model.exception.LdapException
void bind(org.apache.directory.api.ldap.model.name.Dn name)
throws org.apache.directory.api.ldap.model.exception.LdapException,
IOException
name - The name we use to authenticate the user. It must be a
valid Dn
{@link - LdapException} if some error occurred
IOException - if an I/O exception occurred
org.apache.directory.api.ldap.model.exception.LdapException
void bind(org.apache.directory.api.ldap.model.name.Dn name,
String credentials)
throws org.apache.directory.api.ldap.model.exception.LdapException,
IOException
name - The name we use to authenticate the user. It must be a
valid Dncredentials - The password. It can't be null
{@link - LdapException} if some error occurred
IOException - if an I/O exception occurred
org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.message.BindResponse bind(org.apache.directory.api.ldap.model.message.BindRequest bindRequest)
throws org.apache.directory.api.ldap.model.exception.LdapException,
IOException
bindRequest - The BindRequest POJO containing all the needed
parameters
{@link - LdapException} if some error occurred
IOException - if an I/O exception occurred
org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.cursor.EntryCursor search(org.apache.directory.api.ldap.model.name.Dn baseDn,
String filter,
org.apache.directory.api.ldap.model.message.SearchScope scope,
String... attributes)
throws org.apache.directory.api.ldap.model.exception.LdapException
baseDn - The base for the search. It must be a valid
Dn, and can't be emtpyfilter - The filter to use for this search. It can't be emptyscope - The search scope : OBJECT, ONELEVEL or SUBTREEattributes - The attributes to use for this search
EntryCursor on the result.
{@link - LdapException} if some error occurred
org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.cursor.EntryCursor search(String baseDn,
String filter,
org.apache.directory.api.ldap.model.message.SearchScope scope,
String... attributes)
throws org.apache.directory.api.ldap.model.exception.LdapException
baseDn - The base for the search. It must be a valid
Dn, and can't be emtpyfilter - The filter to use for this search. It can't be emptyscope - The search scope : OBJECT, ONELEVEL or SUBTREEattributes - The attributes to use for this search
EntryCursor on the result.
{@link - LdapException} if some error occurred
org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.cursor.SearchCursor search(org.apache.directory.api.ldap.model.message.SearchRequest searchRequest)
throws org.apache.directory.api.ldap.model.exception.LdapException
searchRequest - The search configuration
SearchCursor on the result.
{@link - LdapException} if some error occurred
org.apache.directory.api.ldap.model.exception.LdapException
void unBind()
throws org.apache.directory.api.ldap.model.exception.LdapException
{@link - LdapException} if some error occurred
org.apache.directory.api.ldap.model.exception.LdapExceptionvoid setTimeOut(long timeOut)
timeOut - The timeout, in milliseconds
void modify(org.apache.directory.api.ldap.model.name.Dn dn,
org.apache.directory.api.ldap.model.entry.Modification... modifications)
throws org.apache.directory.api.ldap.model.exception.LdapException
dn - The entry's Dnmodifications - The list of modifications to be applied
{@link - LdapException} in case of modify operation failure or timeout happens
org.apache.directory.api.ldap.model.exception.LdapException
void modify(String dn,
org.apache.directory.api.ldap.model.entry.Modification... modifications)
throws org.apache.directory.api.ldap.model.exception.LdapException
dn - The entry's Dnmodifications - The list of modifications to be applied
{@link - LdapException} in case of modify operation failure or timeout happens
org.apache.directory.api.ldap.model.exception.LdapException
void modify(org.apache.directory.api.ldap.model.entry.Entry entry,
org.apache.directory.api.ldap.model.entry.ModificationOperation modOp)
throws org.apache.directory.api.ldap.model.exception.LdapException
entry - the entry with the attributes to be modifiedmodOp - the operation to be applied on all the attributes of the above entry
{@link - LdapException} in case of modify operation failure or timeout happens
org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.message.ModifyResponse modify(org.apache.directory.api.ldap.model.message.ModifyRequest modRequest)
throws org.apache.directory.api.ldap.model.exception.LdapException
modRequest - the request for modify operation
{@link - LdapException} in case of modify operation failure or timeout happens
org.apache.directory.api.ldap.model.exception.LdapException
void rename(String entryDn,
String newRdn)
throws org.apache.directory.api.ldap.model.exception.LdapException
entryDn - the target DnnewRdn - new Rdn for the target Dn
{@link - LdapException} if some error occurred
org.apache.directory.api.ldap.model.exception.LdapExceptionrename(String, String, boolean)
void rename(org.apache.directory.api.ldap.model.name.Dn entryDn,
org.apache.directory.api.ldap.model.name.Rdn newRdn)
throws org.apache.directory.api.ldap.model.exception.LdapException
entryDn - the target DnnewRdn - new Rdn for the target Dn
{@link - LdapException} if some error occurred
org.apache.directory.api.ldap.model.exception.LdapExceptionrename(org.apache.directory.api.ldap.model.name.Dn, org.apache.directory.api.ldap.model.name.Rdn, boolean)
void rename(String entryDn,
String newRdn,
boolean deleteOldRdn)
throws org.apache.directory.api.ldap.model.exception.LdapException
entryDn - the target DnnewRdn - new Rdn for the target DndeleteOldRdn - flag to indicate whether to delete the old Rdn
{@link - LdapException} if some error occurred
org.apache.directory.api.ldap.model.exception.LdapExceptionrename(org.apache.directory.api.ldap.model.name.Dn, org.apache.directory.api.ldap.model.name.Rdn, boolean)
void rename(org.apache.directory.api.ldap.model.name.Dn entryDn,
org.apache.directory.api.ldap.model.name.Rdn newRdn,
boolean deleteOldRdn)
throws org.apache.directory.api.ldap.model.exception.LdapException
entryDn - the target DnnewRdn - new Rdn for the target DndeleteOldRdn - flag to indicate whether to delete the old Rdn
{@link - LdapException} if some error occurred
org.apache.directory.api.ldap.model.exception.LdapException
void move(String entryDn,
String newSuperiorDn)
throws org.apache.directory.api.ldap.model.exception.LdapException
entryDn - the Dn of the target entrynewSuperiorDn - Dn of the new parent/superior
{@link - LdapException} if some error occurred
org.apache.directory.api.ldap.model.exception.LdapExceptionmove(org.apache.directory.api.ldap.model.name.Dn, org.apache.directory.api.ldap.model.name.Dn)
void move(org.apache.directory.api.ldap.model.name.Dn entryDn,
org.apache.directory.api.ldap.model.name.Dn newSuperiorDn)
throws org.apache.directory.api.ldap.model.exception.LdapException
entryDn - the Dn of the target entrynewSuperiorDn - Dn of the new parent/superior
{@link - LdapException} if some error occurred
org.apache.directory.api.ldap.model.exception.LdapException
void moveAndRename(org.apache.directory.api.ldap.model.name.Dn entryDn,
org.apache.directory.api.ldap.model.name.Dn newDn)
throws org.apache.directory.api.ldap.model.exception.LdapException
entryDn - The original entry DnnewDn - The new Entry Dn
{@link - LdapException} if some error occurred
org.apache.directory.api.ldap.model.exception.LdapExceptionmoveAndRename(org.apache.directory.api.ldap.model.name.Dn, org.apache.directory.api.ldap.model.name.Dn, boolean)
void moveAndRename(String entryDn,
String newDn)
throws org.apache.directory.api.ldap.model.exception.LdapException
entryDn - The original entry DnnewDn - The new Entry Dn
{@link - LdapException} if some error occurred
org.apache.directory.api.ldap.model.exception.LdapExceptionmoveAndRename(org.apache.directory.api.ldap.model.name.Dn, org.apache.directory.api.ldap.model.name.Dn, boolean)
void moveAndRename(org.apache.directory.api.ldap.model.name.Dn entryDn,
org.apache.directory.api.ldap.model.name.Dn newDn,
boolean deleteOldRdn)
throws org.apache.directory.api.ldap.model.exception.LdapException
entryDn - The original entry DnnewDn - The new Entry DndeleteOldRdn - Tells if the old Rdn must be removed
{@link - LdapException} if some error occurred
org.apache.directory.api.ldap.model.exception.LdapException
void moveAndRename(String entryDn,
String newDn,
boolean deleteOldRdn)
throws org.apache.directory.api.ldap.model.exception.LdapException
entryDn - The original entry DnnewDn - The new Entry DndeleteOldRdn - Tells if the old Rdn must be removed
{@link - LdapException} if some error occurred
org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.message.ModifyDnResponse modifyDn(org.apache.directory.api.ldap.model.message.ModifyDnRequest modDnRequest)
throws org.apache.directory.api.ldap.model.exception.LdapException
modDnRequest - the request
{@link - LdapException} if some error occurred
org.apache.directory.api.ldap.model.exception.LdapException
void delete(String dn)
throws org.apache.directory.api.ldap.model.exception.LdapException
dn - the target entry's Dn as a String
{@link - LdapException} If the Dn is not valid or if the deletion failed
org.apache.directory.api.ldap.model.exception.LdapException
void delete(org.apache.directory.api.ldap.model.name.Dn dn)
throws org.apache.directory.api.ldap.model.exception.LdapException
dn - the target entry's Dn
{@link - LdapException} If the Dn is not valid or if the deletion failed
org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.message.DeleteResponse delete(org.apache.directory.api.ldap.model.message.DeleteRequest deleteRequest)
throws org.apache.directory.api.ldap.model.exception.LdapException
deleteRequest - the delete operation's request
{@link - LdapException} If the Dn is not valid or if the deletion failed
org.apache.directory.api.ldap.model.exception.LdapException
boolean compare(String dn,
String attributeName,
String value)
throws org.apache.directory.api.ldap.model.exception.LdapException
dn - the target entry's String DnattributeName - the attribute's namevalue - a String value with which the target entry's attribute value to be compared with
{@link - LdapException} if some error occurred
org.apache.directory.api.ldap.model.exception.LdapException
boolean compare(String dn,
String attributeName,
byte[] value)
throws org.apache.directory.api.ldap.model.exception.LdapException
dn - the target entry's String DnattributeName - the attribute's namevalue - a byte[] value with which the target entry's attribute value to be compared with
{@link - LdapException} if some error occurred
org.apache.directory.api.ldap.model.exception.LdapException
boolean compare(String dn,
String attributeName,
org.apache.directory.api.ldap.model.entry.Value<?> value)
throws org.apache.directory.api.ldap.model.exception.LdapException
dn - the target entry's String DnattributeName - the attribute's namevalue - a Value> value with which the target entry's attribute value to be compared with
{@link - LdapException} if some error occurred
org.apache.directory.api.ldap.model.exception.LdapException
boolean compare(org.apache.directory.api.ldap.model.name.Dn dn,
String attributeName,
String value)
throws org.apache.directory.api.ldap.model.exception.LdapException
dn - the target entry's DnattributeName - the attribute's namevalue - a String value with which the target entry's attribute value to be compared with
{@link - LdapException} if some error occurred
org.apache.directory.api.ldap.model.exception.LdapException
boolean compare(org.apache.directory.api.ldap.model.name.Dn dn,
String attributeName,
byte[] value)
throws org.apache.directory.api.ldap.model.exception.LdapException
dn - the target entry's DnattributeName - the attribute's namevalue - a byte[] value with which the target entry's attribute value to be compared with
{@link - LdapException} if some error occurred
org.apache.directory.api.ldap.model.exception.LdapException
boolean compare(org.apache.directory.api.ldap.model.name.Dn dn,
String attributeName,
org.apache.directory.api.ldap.model.entry.Value<?> value)
throws org.apache.directory.api.ldap.model.exception.LdapException
dn - the target entry's DnattributeName - the attribute's namevalue - a Value> value with which the target entry's attribute value to be compared with
{@link - LdapException} if some error occurred
org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.message.CompareResponse compare(org.apache.directory.api.ldap.model.message.CompareRequest compareRequest)
throws org.apache.directory.api.ldap.model.exception.LdapException
compareRequest - the CompareRequest which contains the target Dn, attribute name and value
{@link - LdapException} if some error occurred
org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.message.ExtendedResponse extended(String oid)
throws org.apache.directory.api.ldap.model.exception.LdapException
oid - the object identifier of the extended operation
{@link - LdapException} if some error occurred
org.apache.directory.api.ldap.model.exception.LdapExceptionextended(org.apache.directory.api.asn1.util.Oid, byte[])
org.apache.directory.api.ldap.model.message.ExtendedResponse extended(String oid,
byte[] value)
throws org.apache.directory.api.ldap.model.exception.LdapException
oid - the object identifier of the extended operationvalue - value to be used by the extended operation, can be a null value
{@link - LdapException} if some error occurred
org.apache.directory.api.ldap.model.exception.LdapExceptionextended(org.apache.directory.api.asn1.util.Oid, byte[])
org.apache.directory.api.ldap.model.message.ExtendedResponse extended(org.apache.directory.api.asn1.util.Oid oid)
throws org.apache.directory.api.ldap.model.exception.LdapException
oid - the object identifier of the extended operation
{@link - LdapException} if some error occurred
org.apache.directory.api.ldap.model.exception.LdapExceptionextended(org.apache.directory.api.asn1.util.Oid, byte[])
org.apache.directory.api.ldap.model.message.ExtendedResponse extended(org.apache.directory.api.asn1.util.Oid oid,
byte[] value)
throws org.apache.directory.api.ldap.model.exception.LdapException
oid - the object identifier of the extended operationvalue - value to be used by the extended operation, can be a null value
{@link - LdapException} if some error occurred
org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.message.ExtendedResponse extended(org.apache.directory.api.ldap.model.message.ExtendedRequest extendedRequest)
throws org.apache.directory.api.ldap.model.exception.LdapException
extendedRequest - the extended operation's request
{@link - LdapException} If the Dn is not valid or if the extended operation failed
org.apache.directory.api.ldap.model.exception.LdapException
boolean exists(String dn)
throws org.apache.directory.api.ldap.model.exception.LdapException
dn - The Dn for the entry we want to check the existence
true if the entry exists, false otherwise.
Note that if the entry exists but if the user does not have the permission to
read it, false will also be returned
{@link - LdapException} if some error occurred
org.apache.directory.api.ldap.model.exception.LdapException
boolean exists(org.apache.directory.api.ldap.model.name.Dn dn)
throws org.apache.directory.api.ldap.model.exception.LdapException
dn - The Dn for the entry we want to check the existence
true if the entry exists, false otherwise.
Note that if the entry exists but if the user does not have the permission to
read it, false will also be returned
{@link - LdapException} if some error occurred
org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.entry.Entry getRootDse()
throws org.apache.directory.api.ldap.model.exception.LdapException
{@link - LdapException} If the rootDSE can't be read
org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.entry.Entry getRootDse(String... attributes)
throws org.apache.directory.api.ldap.model.exception.LdapException
attributes - The list of attributes to return
{@link - LdapException} If the rootDSE can't be read
org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.entry.Entry lookup(org.apache.directory.api.ldap.model.name.Dn dn)
throws org.apache.directory.api.ldap.model.exception.LdapException
dn - the Dn of the entry to be fetched
{@link - LdapException} in case of any problems while searching for the Dn or if the returned response contains a referral
org.apache.directory.api.ldap.model.exception.LdapExceptionlookup(org.apache.directory.api.ldap.model.name.Dn, String...)
org.apache.directory.api.ldap.model.entry.Entry lookup(String dn)
throws org.apache.directory.api.ldap.model.exception.LdapException
dn - the Dn of the entry to be fetched
{@link - LdapException} in case of any problems while searching for the Dn or if the returned response contains a referral
org.apache.directory.api.ldap.model.exception.LdapExceptionlookup(String, String...)
org.apache.directory.api.ldap.model.entry.Entry lookup(org.apache.directory.api.ldap.model.name.Dn dn,
String... attributes)
throws org.apache.directory.api.ldap.model.exception.LdapException
dn - the Dn of the entry to be fetchedattributes - the attributes to be returned along with entry
{@link - LdapException} in case of any problems while searching for the Dn or if the returned response contains a referral
org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.entry.Entry lookup(org.apache.directory.api.ldap.model.name.Dn dn,
org.apache.directory.api.ldap.model.message.Control[] controls,
String... attributes)
throws org.apache.directory.api.ldap.model.exception.LdapException
dn - the Dn of the entry to be fetchedcontrols - the controls to useattributes - the attributes to be returned along with entry
{@link - LdapException} in case of any problems while searching for the Dn or if the returned response contains a referral
org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.entry.Entry lookup(String dn,
String... attributes)
throws org.apache.directory.api.ldap.model.exception.LdapException
dn - the Dn of the entry to be fetchedattributes - the attributes to be returned along with entry
{@link - LdapException} in case of any problems while searching for the Dn or if the returned response contains a referral
org.apache.directory.api.ldap.model.exception.LdapExceptionlookup(org.apache.directory.api.ldap.model.name.Dn, String...)
org.apache.directory.api.ldap.model.entry.Entry lookup(String dn,
org.apache.directory.api.ldap.model.message.Control[] controls,
String... attributes)
throws org.apache.directory.api.ldap.model.exception.LdapException
dn - the Dn of the entry to be fetchedcontrols - the controls to useattributes - the attributes to be returned along with entry
{@link - LdapException} in case of any problems while searching for the Dn or if the returned response contains a referral
org.apache.directory.api.ldap.model.exception.LdapExceptionlookup(org.apache.directory.api.ldap.model.name.Dn, String...)
boolean isControlSupported(String controlOID)
throws org.apache.directory.api.ldap.model.exception.LdapException
controlOID - the OID of the control
{@link - LdapException} if some error occurred
org.apache.directory.api.ldap.model.exception.LdapException
List<String> getSupportedControls()
throws org.apache.directory.api.ldap.model.exception.LdapException
{@link - LdapException} if some error occurred
org.apache.directory.api.ldap.model.exception.LdapException
void loadSchema()
throws org.apache.directory.api.ldap.model.exception.LdapException
{@link - LdapException} in case of problems while loading the schema
org.apache.directory.api.ldap.model.exception.LdapExceptionorg.apache.directory.api.ldap.model.schema.SchemaManager getSchemaManager()
org.apache.directory.api.ldap.codec.api.LdapApiService getCodecService()
boolean doesFutureExistFor(int messageId)
messageId - ID of the request
org.apache.directory.api.ldap.codec.api.BinaryAttributeDetector getBinaryAttributeDetector()
void setBinaryAttributeDetector(org.apache.directory.api.ldap.codec.api.BinaryAttributeDetector binaryAttributeDetecter)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||