public class MockCoreSession extends Object implements CoreSession
| Constructor and Description |
|---|
MockCoreSession(LdapPrincipal principal,
DirectoryService directoryService) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.apache.directory.shared.ldap.message.internal.InternalAddRequest addRequest)
Adds an entry into the DirectoryService associated with this CoreSession.
|
void |
add(org.apache.directory.shared.ldap.message.internal.InternalAddRequest addRequest,
LogChange log)
Adds an entry into the DirectoryService associated with this CoreSession.
|
void |
add(org.apache.directory.shared.ldap.entry.ServerEntry entry)
Adds an entry into the DirectoryService associated with this CoreSession.
|
void |
add(org.apache.directory.shared.ldap.entry.ServerEntry entry,
boolean ignoreReferral)
Adds an entry into the DirectoryService associated with this CoreSession.
|
void |
add(org.apache.directory.shared.ldap.entry.ServerEntry entry,
boolean ignoreReferral,
LogChange log)
Adds an entry into the DirectoryService associated with this CoreSession.
|
void |
add(org.apache.directory.shared.ldap.entry.ServerEntry entry,
LogChange log)
Adds an entry into the DirectoryService associated with this CoreSession.
|
boolean |
compare(org.apache.directory.shared.ldap.name.DN dn,
String oid,
Object value)
Checks to see if an attribute in an entry contains a value.
|
boolean |
compare(org.apache.directory.shared.ldap.name.DN dn,
String oid,
Object value,
boolean ignoreReferral)
Checks to see if an attribute in an entry contains a value.
|
boolean |
compare(org.apache.directory.shared.ldap.message.internal.InternalCompareRequest compareRequest)
Checks to see if an attribute in an entry contains a value.
|
void |
delete(org.apache.directory.shared.ldap.name.DN dn)
Deletes an entry in the server.
|
void |
delete(org.apache.directory.shared.ldap.name.DN dn,
boolean ignoreReferral)
Deletes an entry in the server.
|
void |
delete(org.apache.directory.shared.ldap.name.DN dn,
boolean ignoreReferral,
LogChange log)
Deletes an entry in the server.
|
void |
delete(org.apache.directory.shared.ldap.name.DN dn,
LogChange log)
Deletes an entry in the server.
|
void |
delete(org.apache.directory.shared.ldap.message.internal.InternalDeleteRequest deleteRequest) |
void |
delete(org.apache.directory.shared.ldap.message.internal.InternalDeleteRequest deleteRequest,
LogChange log) |
boolean |
exists(org.apache.directory.shared.ldap.name.DN dn)
Checks to see if an entry exists.
|
LdapPrincipal |
getAuthenticatedPrincipal()
Gets the LDAP principal used to authenticate.
|
org.apache.directory.shared.ldap.constants.AuthenticationLevel |
getAuthenticationLevel()
Gets the authentication level associated with this session.
|
SocketAddress |
getClientAddress()
Gets the socket address of the LDAP client or null if there is no LDAP
client associated with the session.
|
Set<org.apache.directory.shared.ldap.message.control.Control> |
getControls()
Gets the controls enabled for this session.
|
DirectoryService |
getDirectoryService()
Gets the DirectoryService this session is bound to.
|
LdapPrincipal |
getEffectivePrincipal()
Gets the LDAP principal used for the effective identity associated with
this session which may not be the same as the authenticated principal.
|
Set<OperationContext> |
getOutstandingOperations()
Gets all outstanding operations currently being performed that have yet
to be completed.
|
SocketAddress |
getServiceAddress()
Gets the socket address of the LDAP server or null if there is no LDAP
service associated with the session.
|
boolean |
isAdministrator()
TODO - perhaps we should just use a flag that is calculated on creation
of this session
|
boolean |
isAnAdministrator()
TODO - this method impl does not check to see if the principal is in
the administrators group - it only returns true of the principal is
the actual admin user.
|
boolean |
isAnonymous()
Gets whether or not this user is anonymous.
|
boolean |
isConfidential()
Gets whether or not confidentiality is enabled for this session.
|
boolean |
isVirtual()
Gets whether or not this session is virtual.
|
EntryFilteringCursor |
list(org.apache.directory.shared.ldap.name.DN dn,
org.apache.directory.shared.ldap.message.AliasDerefMode aliasDerefMode,
Set<org.apache.directory.shared.ldap.schema.AttributeTypeOptions> returningAttributes)
An optimized search operation using one level search scope which
returns all the children of an entry specified by distinguished name.
|
EntryFilteringCursor |
list(org.apache.directory.shared.ldap.name.DN dn,
org.apache.directory.shared.ldap.message.AliasDerefMode aliasDerefMode,
Set<org.apache.directory.shared.ldap.schema.AttributeTypeOptions> returningAttributes,
long sizeLimit,
int timeLimit)
An optimized search operation using one level search scope which
applies size and time limit constraints and returns all the children
of an entry specified by distinguished name if thes limits are not
violated.
|
ClonedServerEntry |
lookup(org.apache.directory.shared.ldap.name.DN dn)
Looks up an entry in the server returning all attributes: both user and
operational attributes.
|
ClonedServerEntry |
lookup(org.apache.directory.shared.ldap.name.DN dn,
String[] attrId)
Looks up an entry in the server returning all attributes: both user and
operational attributes.
|
void |
modify(org.apache.directory.shared.ldap.name.DN dn,
List<org.apache.directory.shared.ldap.entry.Modification> mods)
Modifies an entry within the server by applying a list of modifications
to the entry.
|
void |
modify(org.apache.directory.shared.ldap.name.DN dn,
List<org.apache.directory.shared.ldap.entry.Modification> mods,
boolean ignoreReferral)
Modifies an entry within the server by applying a list of modifications
to the entry.
|
void |
modify(org.apache.directory.shared.ldap.name.DN dn,
List<org.apache.directory.shared.ldap.entry.Modification> mods,
boolean ignoreReferral,
LogChange log)
Modifies an entry within the server by applying a list of modifications
to the entry.
|
void |
modify(org.apache.directory.shared.ldap.name.DN dn,
List<org.apache.directory.shared.ldap.entry.Modification> mods,
LogChange log)
Modifies an entry within the server by applying a list of modifications
to the entry.
|
void |
modify(org.apache.directory.shared.ldap.message.internal.InternalModifyRequest modifyRequest) |
void |
modify(org.apache.directory.shared.ldap.message.internal.InternalModifyRequest modifyRequest,
LogChange log) |
void |
move(org.apache.directory.shared.ldap.name.DN dn,
org.apache.directory.shared.ldap.name.DN newParent)
Moves an entry or a branch of entries at a specified distinguished name
to a position under a new parent.
|
void |
move(org.apache.directory.shared.ldap.name.DN dn,
org.apache.directory.shared.ldap.name.DN newParent,
boolean ignoreReferral)
Moves an entry or a branch of entries at a specified distinguished name
to a position under a new parent.
|
void |
move(org.apache.directory.shared.ldap.name.DN dn,
org.apache.directory.shared.ldap.name.DN newParent,
boolean ignoreReferral,
LogChange log)
Moves an entry or a branch of entries at a specified distinguished name
to a position under a new parent.
|
void |
move(org.apache.directory.shared.ldap.name.DN dn,
org.apache.directory.shared.ldap.name.DN newParent,
LogChange log)
Moves an entry or a branch of entries at a specified distinguished name
to a position under a new parent.
|
void |
move(org.apache.directory.shared.ldap.message.internal.InternalModifyDnRequest modifyDnRequest)
Move an entry by changing its superior.
|
void |
move(org.apache.directory.shared.ldap.message.internal.InternalModifyDnRequest modifyDnRequest,
LogChange log)
Move an entry by changing its superior.
|
void |
moveAndRename(org.apache.directory.shared.ldap.name.DN dn,
org.apache.directory.shared.ldap.name.DN newParent,
org.apache.directory.shared.ldap.name.RDN newRdn,
boolean deleteOldRdn)
Moves and renames (the relative distinguished name of) an entry (or a
branch if the entry has children) at a specified distinguished name to
a position under a new parent.
|
void |
moveAndRename(org.apache.directory.shared.ldap.name.DN dn,
org.apache.directory.shared.ldap.name.DN newParent,
org.apache.directory.shared.ldap.name.RDN newRdn,
boolean deleteOldRdn,
boolean ignoreReferral)
Moves and renames (the relative distinguished name of) an entry (or a
branch if the entry has children) at a specified distinguished name to
a position under a new parent.
|
void |
moveAndRename(org.apache.directory.shared.ldap.name.DN dn,
org.apache.directory.shared.ldap.name.DN newParent,
org.apache.directory.shared.ldap.name.RDN newRdn,
boolean deleteOldRdn,
boolean ignoreReferral,
LogChange log)
Moves and renames (the relative distinguished name of) an entry (or a
branch if the entry has children) at a specified distinguished name to
a position under a new parent.
|
void |
moveAndRename(org.apache.directory.shared.ldap.name.DN dn,
org.apache.directory.shared.ldap.name.DN newParent,
org.apache.directory.shared.ldap.name.RDN newRdn,
boolean deleteOldRdn,
LogChange log)
Moves and renames (the relative distinguished name of) an entry (or a
branch if the entry has children) at a specified distinguished name to
a position under a new parent.
|
void |
moveAndRename(org.apache.directory.shared.ldap.message.internal.InternalModifyDnRequest modifyDnRequest)
Move and rename an entry.
|
void |
moveAndRename(org.apache.directory.shared.ldap.message.internal.InternalModifyDnRequest modifyDnRequest,
LogChange log)
Move and rename an entry.
|
void |
rename(org.apache.directory.shared.ldap.name.DN dn,
org.apache.directory.shared.ldap.name.RDN newRdn,
boolean deleteOldRdn)
Renames an entry by changing it's relative distinguished name.
|
void |
rename(org.apache.directory.shared.ldap.name.DN dn,
org.apache.directory.shared.ldap.name.RDN newRdn,
boolean deleteOldRdn,
boolean ignoreReferral)
Renames an entry by changing it's relative distinguished name.
|
void |
rename(org.apache.directory.shared.ldap.name.DN dn,
org.apache.directory.shared.ldap.name.RDN newRdn,
boolean deleteOldRdn,
boolean ignoreReferral,
LogChange log)
Renames an entry by changing it's relative distinguished name.
|
void |
rename(org.apache.directory.shared.ldap.name.DN dn,
org.apache.directory.shared.ldap.name.RDN newRdn,
boolean deleteOldRdn,
LogChange log)
Renames an entry by changing it's relative distinguished name.
|
void |
rename(org.apache.directory.shared.ldap.message.internal.InternalModifyDnRequest modifyDnRequest)
Rename an entry applying the ModifyDN request
|
void |
rename(org.apache.directory.shared.ldap.message.internal.InternalModifyDnRequest modifyDnRequest,
LogChange log)
Rename an entry applying the ModifyDN request
|
EntryFilteringCursor |
search(org.apache.directory.shared.ldap.name.DN dn,
org.apache.directory.shared.ldap.filter.SearchScope scope,
org.apache.directory.shared.ldap.filter.ExprNode filter,
org.apache.directory.shared.ldap.message.AliasDerefMode aliasDerefMode,
Set<org.apache.directory.shared.ldap.schema.AttributeTypeOptions> returningAttributes)
Searches the directory using a specified search scope and filter.
|
EntryFilteringCursor |
search(org.apache.directory.shared.ldap.name.DN dn,
org.apache.directory.shared.ldap.filter.SearchScope scope,
org.apache.directory.shared.ldap.filter.ExprNode filter,
org.apache.directory.shared.ldap.message.AliasDerefMode aliasDerefMode,
Set<org.apache.directory.shared.ldap.schema.AttributeTypeOptions> returningAttributes,
long sizeLimit,
int timeLimit)
Searches the directory using a specified search scope and filter.
|
EntryFilteringCursor |
search(org.apache.directory.shared.ldap.name.DN dn,
String filter)
Searches the directory using a specified filter.
|
EntryFilteringCursor |
search(org.apache.directory.shared.ldap.name.DN dn,
String filter,
boolean ignoreReferrals)
Searches the directory using a specified filter.
|
EntryFilteringCursor |
search(org.apache.directory.shared.ldap.message.internal.InternalSearchRequest searchRequest) |
void |
setDirectoryService(DirectoryService directoryService) |
void |
unbind() |
void |
unbind(org.apache.directory.shared.ldap.message.internal.InternalUnbindRequest unbindRequest) |
public MockCoreSession(LdapPrincipal principal, DirectoryService directoryService)
public void add(org.apache.directory.shared.ldap.entry.ServerEntry entry)
throws Exception
add in interface CoreSessionentry - the entry to addException - on failures to add the entrypublic void add(org.apache.directory.shared.ldap.entry.ServerEntry entry,
boolean ignoreReferral)
throws Exception
add in interface CoreSessionentry - the entry to addignoreReferral - a flag to tell the server to ignore referralsException - on failures to add the entrypublic void add(org.apache.directory.shared.ldap.entry.ServerEntry entry,
LogChange log)
throws Exception
add in interface CoreSessionentry - the entry to addlog - a flag set if the added entry should be stored in the changeLogException - on failures to add the entrypublic void add(org.apache.directory.shared.ldap.entry.ServerEntry entry,
boolean ignoreReferral,
LogChange log)
throws Exception
add in interface CoreSessionentry - the entry to addignoreReferral - a flag to tell the server to ignore referralslog - a flag set if the added entry should be stored in the changeLogException - on failures to add the entrypublic void add(org.apache.directory.shared.ldap.message.internal.InternalAddRequest addRequest)
throws Exception
add in interface CoreSessionException - on failures to add the entrypublic void add(org.apache.directory.shared.ldap.message.internal.InternalAddRequest addRequest,
LogChange log)
throws Exception
add in interface CoreSessionlog - a flag set if the added entry should be stored in the changeLogException - on failures to add the entrypublic boolean compare(org.apache.directory.shared.ldap.name.DN dn,
String oid,
Object value)
throws Exception
compare in interface CoreSessiondn - the distinguished name of the entry to checkoid - the OID of the attribute to check for the valuevalue - the value to check forException - if there are failures while comparingpublic boolean compare(org.apache.directory.shared.ldap.name.DN dn,
String oid,
Object value,
boolean ignoreReferral)
throws Exception
compare in interface CoreSessiondn - the distinguished name of the entry to checkoid - the OID of the attribute to check for the valuevalue - the value to check forignoreReferral - a flag to tell the server to ignore referralsException - if there are failures while comparingpublic void delete(org.apache.directory.shared.ldap.name.DN dn)
throws Exception
delete in interface CoreSessiondn - the distinguished name of the entry to deleteException - if there are failures while deleting the entrypublic void delete(org.apache.directory.shared.ldap.name.DN dn,
LogChange log)
throws Exception
delete in interface CoreSessiondn - the distinguished name of the entry to deletelog - a flag set if the added entry should be stored in the changeLogException - if there are failures while deleting the entrypublic void delete(org.apache.directory.shared.ldap.name.DN dn,
boolean ignoreReferral)
throws Exception
delete in interface CoreSessiondn - the distinguished name of the entry to deleteignoreReferral - a flag to tell the server to ignore referralsException - if there are failures while deleting the entrypublic void delete(org.apache.directory.shared.ldap.name.DN dn,
boolean ignoreReferral,
LogChange log)
throws Exception
delete in interface CoreSessiondn - the distinguished name of the entry to deleteignoreReferral - a flag to tell the server to ignore referralslog - a flag set if the added entry should be stored in the changeLogException - if there are failures while deleting the entrypublic LdapPrincipal getAuthenticatedPrincipal()
CoreSessiongetAuthenticatedPrincipal in interface CoreSessionpublic org.apache.directory.shared.ldap.constants.AuthenticationLevel getAuthenticationLevel()
CoreSessiongetAuthenticationLevel in interface CoreSessionpublic SocketAddress getClientAddress()
CoreSessiongetClientAddress in interface CoreSessionpublic Set<org.apache.directory.shared.ldap.message.control.Control> getControls()
CoreSessiongetControls in interface CoreSessionpublic DirectoryService getDirectoryService()
CoreSessiongetDirectoryService in interface CoreSessionpublic LdapPrincipal getEffectivePrincipal()
CoreSessiongetEffectivePrincipal in interface CoreSessionpublic Set<OperationContext> getOutstandingOperations()
CoreSessiongetOutstandingOperations in interface CoreSessionpublic SocketAddress getServiceAddress()
CoreSessiongetServiceAddress in interface CoreSessionpublic boolean isConfidential()
CoreSessionisConfidential in interface CoreSessionpublic boolean isVirtual()
CoreSessionisVirtual in interface CoreSessionpublic boolean isAdministrator()
isAdministrator in interface CoreSessionCoreSession.isAdministrator()public boolean isAnAdministrator()
isAnAdministrator in interface CoreSessionCoreSession.isAnAdministrator()public EntryFilteringCursor list(org.apache.directory.shared.ldap.name.DN dn, org.apache.directory.shared.ldap.message.AliasDerefMode aliasDerefMode, Set<org.apache.directory.shared.ldap.schema.AttributeTypeOptions> returningAttributes) throws Exception
CoreSession(objectClass=*) filter.list in interface CoreSessiondn - the distinguished name of the entry to list the children ofaliasDerefMode - the alias dereferencing mode usedreturningAttributes - the attributes to returnException - if there are failures while listing childrenpublic EntryFilteringCursor list(org.apache.directory.shared.ldap.name.DN dn, org.apache.directory.shared.ldap.message.AliasDerefMode aliasDerefMode, Set<org.apache.directory.shared.ldap.schema.AttributeTypeOptions> returningAttributes, long sizeLimit, int timeLimit) throws Exception
CoreSession(objectClass=*) filter.list in interface CoreSessiondn - the distinguished name of the entry to list the children ofaliasDerefMode - the alias dereferencing mode usedreturningAttributes - the attributes to returnsizeLimit - the upper bound to the number of entries to returntimeLimit - the upper bound to the amount of time before
terminating the searchException - if there are failures while listing childrenpublic ClonedServerEntry lookup(org.apache.directory.shared.ldap.name.DN dn) throws Exception
lookup in interface CoreSessiondn - the name of the entry to lookupException - if there are failures while looking up the entrypublic ClonedServerEntry lookup(org.apache.directory.shared.ldap.name.DN dn, String[] attrId) throws Exception
lookup in interface CoreSessiondn - the name of the entry to lookupattrId - The list of attributes to returnException - if there are failures while looking up the entrypublic void modify(org.apache.directory.shared.ldap.name.DN dn,
List<org.apache.directory.shared.ldap.entry.Modification> mods)
throws Exception
modify in interface CoreSessiondn - the distinguished name of the entry to modifymods - the list of modifications to applyException - if there are failures while modifying the entrypublic void modify(org.apache.directory.shared.ldap.name.DN dn,
List<org.apache.directory.shared.ldap.entry.Modification> mods,
LogChange log)
throws Exception
modify in interface CoreSessiondn - the distinguished name of the entry to modifymods - the list of modifications to applylog - a flag set if the added entry should be stored in the changeLogException - if there are failures while modifying the entrypublic void modify(org.apache.directory.shared.ldap.name.DN dn,
List<org.apache.directory.shared.ldap.entry.Modification> mods,
boolean ignoreReferral)
throws Exception
modify in interface CoreSessiondn - the distinguished name of the entry to modifymods - the list of modifications to applyignoreReferral - a flag to tell the server to ignore referralsException - if there are failures while modifying the entrypublic void modify(org.apache.directory.shared.ldap.name.DN dn,
List<org.apache.directory.shared.ldap.entry.Modification> mods,
boolean ignoreReferral,
LogChange log)
throws Exception
modify in interface CoreSessiondn - the distinguished name of the entry to modifymods - the list of modifications to applyignoreReferral - a flag to tell the server to ignore referralslog - a flag set if the added entry should be stored in the changeLogException - if there are failures while modifying the entrypublic void move(org.apache.directory.shared.ldap.name.DN dn,
org.apache.directory.shared.ldap.name.DN newParent)
throws Exception
move in interface CoreSessiondn - the distinguished name of the entry/branch to movenewParent - the new parent under which the entry/branch is movedExceptionpublic void move(org.apache.directory.shared.ldap.name.DN dn,
org.apache.directory.shared.ldap.name.DN newParent,
LogChange log)
throws Exception
move in interface CoreSessiondn - the distinguished name of the entry/branch to movenewParent - the new parent under which the entry/branch is movedlog - a flag set if the added entry should be stored in the changeLogExceptionpublic void move(org.apache.directory.shared.ldap.name.DN dn,
org.apache.directory.shared.ldap.name.DN newParent,
boolean ignoreReferral)
throws Exception
move in interface CoreSessiondn - the distinguished name of the entry/branch to movenewParent - the new parent under which the entry/branch is movedignoreReferral - a flag to tell the server to ignore referralsExceptionpublic void move(org.apache.directory.shared.ldap.name.DN dn,
org.apache.directory.shared.ldap.name.DN newParent,
boolean ignoreReferral,
LogChange log)
throws Exception
move in interface CoreSessiondn - the distinguished name of the entry/branch to movenewParent - the new parent under which the entry/branch is movedignoreReferral - a flag to tell the server to ignore referralslog - a flag set if the added entry should be stored in the changeLogExceptionpublic void moveAndRename(org.apache.directory.shared.ldap.name.DN dn,
org.apache.directory.shared.ldap.name.DN newParent,
org.apache.directory.shared.ldap.name.RDN newRdn,
boolean deleteOldRdn)
throws Exception
moveAndRename in interface CoreSessiondn - the distinguished name of the entry/branch to movenewParent - the new parent under which the entry/branch is movednewRdn - the new relative distinguished name of the entry at the
root of the branchExceptionpublic void moveAndRename(org.apache.directory.shared.ldap.name.DN dn,
org.apache.directory.shared.ldap.name.DN newParent,
org.apache.directory.shared.ldap.name.RDN newRdn,
boolean deleteOldRdn,
LogChange log)
throws Exception
moveAndRename in interface CoreSessiondn - the distinguished name of the entry/branch to movenewParent - the new parent under which the entry/branch is movednewRdn - the new relative distinguished name of the entry at the
root of the branchlog - a flag set if the added entry should be stored in the changeLogExceptionpublic void moveAndRename(org.apache.directory.shared.ldap.name.DN dn,
org.apache.directory.shared.ldap.name.DN newParent,
org.apache.directory.shared.ldap.name.RDN newRdn,
boolean deleteOldRdn,
boolean ignoreReferral)
throws Exception
moveAndRename in interface CoreSessiondn - the distinguished name of the entry/branch to movenewParent - the new parent under which the entry/branch is movednewRdn - the new relative distinguished name of the entry at the
root of the branchignoreReferral - a flag to tell the server to ignore referralsExceptionpublic void moveAndRename(org.apache.directory.shared.ldap.name.DN dn,
org.apache.directory.shared.ldap.name.DN newParent,
org.apache.directory.shared.ldap.name.RDN newRdn,
boolean deleteOldRdn,
boolean ignoreReferral,
LogChange log)
throws Exception
moveAndRename in interface CoreSessiondn - the distinguished name of the entry/branch to movenewParent - the new parent under which the entry/branch is movednewRdn - the new relative distinguished name of the entry at the
root of the branchignoreReferral - a flag to tell the server to ignore referralslog - a flag set if the added entry should be stored in the changeLogExceptionpublic void rename(org.apache.directory.shared.ldap.name.DN dn,
org.apache.directory.shared.ldap.name.RDN newRdn,
boolean deleteOldRdn)
throws Exception
rename in interface CoreSessiondn - the distinguished name of the entry to renamenewRdn - the new relative distinguished name for the entrydeleteOldRdn - whether or not the old value for the relative
distinguished name is to be deleted from the entryException - if there are failures while renaming the entrypublic void rename(org.apache.directory.shared.ldap.name.DN dn,
org.apache.directory.shared.ldap.name.RDN newRdn,
boolean deleteOldRdn,
LogChange log)
throws Exception
rename in interface CoreSessiondn - the distinguished name of the entry to renamenewRdn - the new relative distinguished name for the entrydeleteOldRdn - whether or not the old value for the relative
distinguished name is to be deleted from the entrylog - a flag set if the added entry should be stored in the changeLogException - if there are failures while renaming the entrypublic void rename(org.apache.directory.shared.ldap.name.DN dn,
org.apache.directory.shared.ldap.name.RDN newRdn,
boolean deleteOldRdn,
boolean ignoreReferral)
throws Exception
rename in interface CoreSessiondn - the distinguished name of the entry to renamenewRdn - the new relative distinguished name for the entrydeleteOldRdn - whether or not the old value for the relative
distinguished name is to be deleted from the entryignoreReferral - a flag to tell the server to ignore referralsException - if there are failures while renaming the entrypublic void rename(org.apache.directory.shared.ldap.name.DN dn,
org.apache.directory.shared.ldap.name.RDN newRdn,
boolean deleteOldRdn,
boolean ignoreReferral,
LogChange log)
throws Exception
rename in interface CoreSessiondn - the distinguished name of the entry to renamenewRdn - the new relative distinguished name for the entrydeleteOldRdn - whether or not the old value for the relative
distinguished name is to be deleted from the entryignoreReferral - a flag to tell the server to ignore referralslog - a flag set if the added entry should be stored in the changeLogException - if there are failures while renaming the entrypublic EntryFilteringCursor search(org.apache.directory.shared.ldap.name.DN dn, String filter) throws Exception
search in interface CoreSessiondn - the distinguished name of the entry to list the children offilter - the search filterException - if there are failures while listing childrenpublic EntryFilteringCursor search(org.apache.directory.shared.ldap.name.DN dn, String filter, boolean ignoreReferrals) throws Exception
search in interface CoreSessiondn - the distinguished name of the entry to list the children offilter - the search filterignoreReferrals - a flag to tell the server to ignore referralsException - if there are failures while listing childrenpublic EntryFilteringCursor search(org.apache.directory.shared.ldap.name.DN dn, org.apache.directory.shared.ldap.filter.SearchScope scope, org.apache.directory.shared.ldap.filter.ExprNode filter, org.apache.directory.shared.ldap.message.AliasDerefMode aliasDerefMode, Set<org.apache.directory.shared.ldap.schema.AttributeTypeOptions> returningAttributes) throws Exception
CoreSessionsearch in interface CoreSessiondn - the distinguished name of the entry to list the children ofscope - the search scope to applyfilter - the search filteraliasDerefMode - the alias dereferencing mode usedreturningAttributes - the attributes to returnException - if there are failures while listing childrenpublic EntryFilteringCursor search(org.apache.directory.shared.ldap.name.DN dn, org.apache.directory.shared.ldap.filter.SearchScope scope, org.apache.directory.shared.ldap.filter.ExprNode filter, org.apache.directory.shared.ldap.message.AliasDerefMode aliasDerefMode, Set<org.apache.directory.shared.ldap.schema.AttributeTypeOptions> returningAttributes, long sizeLimit, int timeLimit) throws Exception
CoreSessionsearch in interface CoreSessiondn - the distinguished name of the entry to list the children ofaliasDerefMode - the alias dereferencing mode usedreturningAttributes - the attributes to returnsizeLimit - the upper bound to the number of entries to returntimeLimit - the upper bound to the amount of time before
terminating the searchException - if there are failures while listing childrenpublic boolean isAnonymous()
CoreSessionisAnonymous in interface CoreSessionpublic boolean compare(org.apache.directory.shared.ldap.message.internal.InternalCompareRequest compareRequest)
throws Exception
compare in interface CoreSessioncompareRequest - the received requestException - if there are failures while comparingpublic void delete(org.apache.directory.shared.ldap.message.internal.InternalDeleteRequest deleteRequest)
throws Exception
delete in interface CoreSessionExceptionpublic void delete(org.apache.directory.shared.ldap.message.internal.InternalDeleteRequest deleteRequest,
LogChange log)
throws Exception
delete in interface CoreSessionExceptionpublic boolean exists(org.apache.directory.shared.ldap.name.DN dn)
throws Exception
CoreSessionexists in interface CoreSessionExceptionpublic void modify(org.apache.directory.shared.ldap.message.internal.InternalModifyRequest modifyRequest)
throws Exception
modify in interface CoreSessionExceptionpublic void modify(org.apache.directory.shared.ldap.message.internal.InternalModifyRequest modifyRequest,
LogChange log)
throws Exception
modify in interface CoreSessionExceptionpublic void move(org.apache.directory.shared.ldap.message.internal.InternalModifyDnRequest modifyDnRequest)
throws Exception
move in interface CoreSessionmodifyDnRequest - The ModifyDN requestException - if there are failures while moving the entry/branchpublic void move(org.apache.directory.shared.ldap.message.internal.InternalModifyDnRequest modifyDnRequest,
LogChange log)
throws Exception
move in interface CoreSessionmodifyDnRequest - The ModifyDN requestlog - a flag set if the added entry should be stored in the changeLogException - if there are failures while moving the entry/branchpublic void moveAndRename(org.apache.directory.shared.ldap.message.internal.InternalModifyDnRequest modifyDnRequest)
throws Exception
moveAndRename in interface CoreSessionmodifyDnRequest - The move and rename requestException - if there are failures while moving and renaming the entry
or branchpublic void moveAndRename(org.apache.directory.shared.ldap.message.internal.InternalModifyDnRequest modifyDnRequest,
LogChange log)
throws Exception
moveAndRename in interface CoreSessionmodifyDnRequest - The move and rename requestlog - a flag set if the added entry should be stored in the changeLogException - if there are failures while moving and renaming the entry
or branchpublic void rename(org.apache.directory.shared.ldap.message.internal.InternalModifyDnRequest modifyDnRequest)
throws Exception
rename in interface CoreSessionmodifyDnRequest - The requested modificationException - if there are failures while renaming the entrypublic void rename(org.apache.directory.shared.ldap.message.internal.InternalModifyDnRequest modifyDnRequest,
LogChange log)
throws Exception
rename in interface CoreSessionmodifyDnRequest - The requested modificationlog - a flag set if the added entry should be stored in the changeLogException - if there are failures while renaming the entrypublic EntryFilteringCursor search(org.apache.directory.shared.ldap.message.internal.InternalSearchRequest searchRequest) throws Exception
search in interface CoreSessionExceptionpublic void unbind()
throws Exception
unbind in interface CoreSessionExceptionpublic void unbind(org.apache.directory.shared.ldap.message.internal.InternalUnbindRequest unbindRequest)
unbind in interface CoreSessionpublic void setDirectoryService(DirectoryService directoryService)
directoryService - the directoryService to setCopyright © 2003-2012 Apache Software Foundation. All Rights Reserved.