public class LdapCoreSessionConnection extends org.apache.directory.ldap.client.api.AbstractLdapConnection
Constructor and Description |
---|
LdapCoreSessionConnection() |
LdapCoreSessionConnection(CoreSession session) |
LdapCoreSessionConnection(DirectoryService directoryService) |
Modifier and Type | Method and Description |
---|---|
void |
abandon(org.apache.directory.api.ldap.model.message.AbandonRequest abandonRequest) |
void |
abandon(int messageId) |
org.apache.directory.api.ldap.model.message.AddResponse |
add(org.apache.directory.api.ldap.model.message.AddRequest addRequest) |
void |
add(org.apache.directory.api.ldap.model.entry.Entry entry) |
void |
anonymousBind() |
void |
bind() |
org.apache.directory.api.ldap.model.message.BindResponse |
bind(org.apache.directory.api.ldap.model.message.BindRequest bindRequest) |
boolean |
close() |
org.apache.directory.api.ldap.model.message.CompareResponse |
compare(org.apache.directory.api.ldap.model.message.CompareRequest compareRequest) |
boolean |
compare(org.apache.directory.api.ldap.model.name.Dn dn,
String attributeName,
byte[] value) |
boolean |
compare(org.apache.directory.api.ldap.model.name.Dn dn,
String attributeName,
String value) |
boolean |
compare(org.apache.directory.api.ldap.model.name.Dn dn,
String attributeName,
org.apache.directory.api.ldap.model.entry.Value<?> value) |
boolean |
compare(String dn,
String attributeName,
byte[] value) |
boolean |
compare(String dn,
String attributeName,
String value) |
boolean |
compare(String dn,
String attributeName,
org.apache.directory.api.ldap.model.entry.Value<?> value) |
boolean |
connect() |
org.apache.directory.api.ldap.model.message.DeleteResponse |
delete(org.apache.directory.api.ldap.model.message.DeleteRequest deleteRequest) |
void |
delete(org.apache.directory.api.ldap.model.name.Dn dn) |
void |
delete(String dn) |
boolean |
doesFutureExistFor(int messageId) |
boolean |
exists(org.apache.directory.api.ldap.model.name.Dn dn) |
boolean |
exists(String dn) |
org.apache.directory.api.ldap.model.message.ExtendedResponse |
extended(org.apache.directory.api.ldap.model.message.ExtendedRequest extendedRequest) |
org.apache.directory.api.ldap.model.message.ExtendedResponse |
extended(org.apache.directory.api.asn1.util.Oid oid) |
org.apache.directory.api.ldap.model.message.ExtendedResponse |
extended(org.apache.directory.api.asn1.util.Oid oid,
byte[] value) |
org.apache.directory.api.ldap.model.message.ExtendedResponse |
extended(String oid) |
org.apache.directory.api.ldap.model.message.ExtendedResponse |
extended(String oid,
byte[] value) |
org.apache.directory.api.ldap.codec.api.BinaryAttributeDetector |
getBinaryAttributeDetector() |
org.apache.directory.api.ldap.codec.api.LdapApiService |
getCodecService() |
DirectoryService |
getDirectoryService() |
org.apache.directory.api.ldap.model.entry.Entry |
getRootDse() |
org.apache.directory.api.ldap.model.entry.Entry |
getRootDse(String... attributes) |
org.apache.directory.api.ldap.model.schema.SchemaManager |
getSchemaManager() |
List<String> |
getSupportedControls() |
boolean |
isAuthenticated() |
boolean |
isConnected() |
boolean |
isControlSupported(String controlOID) |
void |
loadSchema() |
org.apache.directory.api.ldap.model.entry.Entry |
lookup(org.apache.directory.api.ldap.model.name.Dn 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) |
org.apache.directory.api.ldap.model.entry.Entry |
lookup(org.apache.directory.api.ldap.model.name.Dn dn,
String... attributes) |
org.apache.directory.api.ldap.model.entry.Entry |
lookup(String dn) |
org.apache.directory.api.ldap.model.entry.Entry |
lookup(String dn,
org.apache.directory.api.ldap.model.message.Control[] controls,
String... attributes) |
org.apache.directory.api.ldap.model.entry.Entry |
lookup(String dn,
String... attributes) |
void |
modify(org.apache.directory.api.ldap.model.name.Dn dn,
org.apache.directory.api.ldap.model.entry.Modification... modifications) |
void |
modify(org.apache.directory.api.ldap.model.entry.Entry entry,
org.apache.directory.api.ldap.model.entry.ModificationOperation modOp) |
org.apache.directory.api.ldap.model.message.ModifyResponse |
modify(org.apache.directory.api.ldap.model.message.ModifyRequest modRequest) |
void |
modify(String dn,
org.apache.directory.api.ldap.model.entry.Modification... modifications) |
org.apache.directory.api.ldap.model.message.ModifyDnResponse |
modifyDn(org.apache.directory.api.ldap.model.message.ModifyDnRequest modDnRequest) |
void |
move(org.apache.directory.api.ldap.model.name.Dn entryDn,
org.apache.directory.api.ldap.model.name.Dn newSuperiorDn) |
void |
move(String entryDn,
String newSuperiorDn) |
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.The old Rdn will be deleted
|
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.The old Rdn will be deleted if requested
|
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.The old Rdn will be deleted if requested
|
void |
rename(org.apache.directory.api.ldap.model.name.Dn entryDn,
org.apache.directory.api.ldap.model.name.Rdn newRdn) |
void |
rename(org.apache.directory.api.ldap.model.name.Dn entryDn,
org.apache.directory.api.ldap.model.name.Rdn newRdn,
boolean deleteOldRdn) |
void |
rename(String entryDn,
String newRdn) |
void |
rename(String entryDn,
String newRdn,
boolean deleteOldRdn) |
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) |
org.apache.directory.api.ldap.model.cursor.SearchCursor |
search(org.apache.directory.api.ldap.model.message.SearchRequest searchRequest) |
org.apache.directory.api.ldap.model.cursor.EntryCursor |
search(String baseDn,
String filter,
org.apache.directory.api.ldap.model.message.SearchScope scope,
String... attributes) |
void |
setBinaryAttributeDetector(org.apache.directory.api.ldap.codec.api.BinaryAttributeDetector binaryAttributeDetector) |
void |
setDirectoryService(DirectoryService directoryService) |
void |
setTimeOut(long timeOut) |
void |
unBind() |
bind, bind, bind, bind, createBindRequest
public LdapCoreSessionConnection()
public LdapCoreSessionConnection(DirectoryService directoryService)
public LdapCoreSessionConnection(CoreSession session)
public boolean close() throws IOException
IOException
public boolean connect() throws org.apache.directory.api.ldap.model.exception.LdapException, IOException
org.apache.directory.api.ldap.model.exception.LdapException
IOException
public 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
org.apache.directory.api.ldap.model.exception.LdapException
public void add(org.apache.directory.api.ldap.model.entry.Entry entry) throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapException
public 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
org.apache.directory.api.ldap.model.exception.LdapException
public boolean compare(org.apache.directory.api.ldap.model.name.Dn dn, String attributeName, byte[] value) throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapException
public boolean compare(org.apache.directory.api.ldap.model.name.Dn dn, String attributeName, String value) throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapException
public boolean compare(String dn, String attributeName, byte[] value) throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapException
public boolean compare(String dn, String attributeName, String value) throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapException
public 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
org.apache.directory.api.ldap.model.exception.LdapException
public boolean compare(String dn, String attributeName, org.apache.directory.api.ldap.model.entry.Value<?> value) throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapException
public 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
org.apache.directory.api.ldap.model.exception.LdapException
public void delete(org.apache.directory.api.ldap.model.name.Dn dn) throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapException
public void delete(String dn) throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapException
public boolean doesFutureExistFor(int messageId)
public org.apache.directory.api.ldap.model.schema.SchemaManager getSchemaManager()
public org.apache.directory.api.ldap.codec.api.LdapApiService getCodecService()
public List<String> getSupportedControls() throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapException
public boolean isAuthenticated()
public boolean isConnected()
public boolean isControlSupported(String controlOID) throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapException
public void loadSchema() throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapException
public 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
org.apache.directory.api.ldap.model.exception.LdapException
public 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
org.apache.directory.api.ldap.model.exception.LdapException
public org.apache.directory.api.ldap.model.entry.Entry lookup(String dn, String... attributes) throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapException
public 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
org.apache.directory.api.ldap.model.exception.LdapException
public boolean exists(String dn) throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapException
public boolean exists(org.apache.directory.api.ldap.model.name.Dn dn) throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapException
public org.apache.directory.api.ldap.model.entry.Entry getRootDse() throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapException
public org.apache.directory.api.ldap.model.entry.Entry getRootDse(String... attributes) throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapException
public 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
org.apache.directory.api.ldap.model.exception.LdapException
public org.apache.directory.api.ldap.model.entry.Entry lookup(String dn) throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapException
public 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
org.apache.directory.api.ldap.model.exception.LdapException
public void modify(String dn, org.apache.directory.api.ldap.model.entry.Modification... modifications) throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapException
public 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
org.apache.directory.api.ldap.model.exception.LdapException
public 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
org.apache.directory.api.ldap.model.exception.LdapException
public 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
org.apache.directory.api.ldap.model.exception.LdapException
public 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
org.apache.directory.api.ldap.model.exception.LdapException
public void move(String entryDn, String newSuperiorDn) throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapException
public 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
org.apache.directory.api.ldap.model.exception.LdapException
public 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
org.apache.directory.api.ldap.model.exception.LdapException
public void rename(String entryDn, String newRdn, boolean deleteOldRdn) throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapException
public void rename(String entryDn, String newRdn) throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapException
public 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
org.apache.directory.api.ldap.model.exception.LdapException
moveAndRename(org.apache.directory.api.ldap.model.name.Dn, org.apache.directory.api.ldap.model.name.Dn, boolean)
public void moveAndRename(String entryDn, String newDn) throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapException
moveAndRename(org.apache.directory.api.ldap.model.name.Dn, org.apache.directory.api.ldap.model.name.Dn, boolean)
public 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 removedorg.apache.directory.api.ldap.model.exception.LdapException
public 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 removedorg.apache.directory.api.ldap.model.exception.LdapException
public 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
org.apache.directory.api.ldap.model.exception.LdapException
public 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
org.apache.directory.api.ldap.model.exception.LdapException
public 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
org.apache.directory.api.ldap.model.exception.LdapException
public void unBind() throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapException
public org.apache.directory.api.ldap.model.message.ExtendedResponse extended(String oid) throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapException
public 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
org.apache.directory.api.ldap.model.exception.LdapException
public 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
org.apache.directory.api.ldap.model.exception.LdapException
public 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
org.apache.directory.api.ldap.model.exception.LdapException
public org.apache.directory.api.ldap.model.message.ExtendedResponse extended(String oid, byte[] value) throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapException
public void setTimeOut(long timeOut)
public void abandon(org.apache.directory.api.ldap.model.message.AbandonRequest abandonRequest)
public void abandon(int messageId)
public void bind() throws org.apache.directory.api.ldap.model.exception.LdapException, IOException
org.apache.directory.api.ldap.model.exception.LdapException
IOException
public void anonymousBind() throws org.apache.directory.api.ldap.model.exception.LdapException, IOException
org.apache.directory.api.ldap.model.exception.LdapException
IOException
public 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
org.apache.directory.api.ldap.model.exception.LdapException
IOException
public DirectoryService getDirectoryService()
public void setDirectoryService(DirectoryService directoryService)
public org.apache.directory.api.ldap.codec.api.BinaryAttributeDetector getBinaryAttributeDetector()
public void setBinaryAttributeDetector(org.apache.directory.api.ldap.codec.api.BinaryAttributeDetector binaryAttributeDetector)
Copyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.