public class DefaultOperationManager extends Object implements OperationManager
Constructor and Description |
---|
DefaultOperationManager(DirectoryService directoryService) |
Modifier and Type | Method and Description |
---|---|
void |
add(AddOperationContext addContext)
Add an entry into the backend, going through the interceptor chain
|
void |
bind(BindOperationContext bindContext)
TODO document after determining if this method should be here.
|
boolean |
compare(CompareOperationContext compareContext)
TODO document after determining if this method should be here.
|
void |
delete(DeleteOperationContext deleteContext)
TODO document after determining if this method should be here.
|
org.apache.directory.api.ldap.model.entry.Entry |
getRootDse(GetRootDseOperationContext getRootDseContext)
Get the RooDse entry.
|
ReadWriteLock |
getRWLock() |
boolean |
hasEntry(HasEntryOperationContext hasEntryContext)
TODO document after determining if this method should be here.
|
void |
lockRead()
Acquires a ReadLock
|
void |
lockWrite()
Acquires a WriteLock
|
org.apache.directory.api.ldap.model.entry.Entry |
lookup(LookupOperationContext lookupContext)
TODO document after determining if this method should be here.
|
void |
modify(ModifyOperationContext modifyContext)
TODO document after determining if this method should be here.
|
void |
move(MoveOperationContext moveContext)
TODO document after determining if this method should be here.
|
void |
moveAndRename(MoveAndRenameOperationContext moveAndRenameContext)
TODO document after determining if this method should be here.
|
void |
rename(RenameOperationContext renameContext)
TODO document after determining if this method should be here.
|
EntryFilteringCursor |
search(SearchOperationContext searchContext)
TODO document after determining if this method should be here.
|
void |
unbind(UnbindOperationContext unbindContext)
TODO document after determining if this method should be here.
|
void |
unlockRead()
Releases a ReadLock
|
void |
unlockWrite()
Releases a WriteLock
|
public DefaultOperationManager(DirectoryService directoryService)
public ReadWriteLock getRWLock()
getRWLock
in interface OperationManager
public void lockRead()
lockRead
in interface OperationManager
public void lockWrite()
lockWrite
in interface OperationManager
public void unlockWrite()
unlockWrite
in interface OperationManager
public void unlockRead()
unlockRead
in interface OperationManager
public void add(AddOperationContext addContext) throws org.apache.directory.api.ldap.model.exception.LdapException
add
in interface OperationManager
addContext
- The context containing the information to process the additionorg.apache.directory.api.ldap.model.exception.LdapException
- If the addition can't be processed successfullypublic void bind(BindOperationContext bindContext) throws org.apache.directory.api.ldap.model.exception.LdapException
bind
in interface OperationManager
bindContext
- The Bind operation contextorg.apache.directory.api.ldap.model.exception.LdapException
- If the bind failedpublic boolean compare(CompareOperationContext compareContext) throws org.apache.directory.api.ldap.model.exception.LdapException
compare
in interface OperationManager
compareContext
- The Compare operation contextorg.apache.directory.api.ldap.model.exception.LdapException
- If the compare failedpublic void delete(DeleteOperationContext deleteContext) throws org.apache.directory.api.ldap.model.exception.LdapException
delete
in interface OperationManager
deleteContext
- The Delete operation contextorg.apache.directory.api.ldap.model.exception.LdapException
- If the delete failedpublic org.apache.directory.api.ldap.model.entry.Entry getRootDse(GetRootDseOperationContext getRootDseContext) throws org.apache.directory.api.ldap.model.exception.LdapException
getRootDse
in interface OperationManager
getRootDseContext
- The getRootDse() contextorg.apache.directory.api.ldap.model.exception.LdapException
- If we can't get back the rootDse entrypublic boolean hasEntry(HasEntryOperationContext hasEntryContext) throws org.apache.directory.api.ldap.model.exception.LdapException
hasEntry
in interface OperationManager
hasEntryContext
- The HasEntry operation contextorg.apache.directory.api.ldap.model.exception.LdapException
- If the hasEntry failedpublic org.apache.directory.api.ldap.model.entry.Entry lookup(LookupOperationContext lookupContext) throws org.apache.directory.api.ldap.model.exception.LdapException
lookup
in interface OperationManager
lookupContext
- The Lookup operation contextorg.apache.directory.api.ldap.model.exception.LdapException
- If the lookup failedpublic void modify(ModifyOperationContext modifyContext) throws org.apache.directory.api.ldap.model.exception.LdapException
modify
in interface OperationManager
modifyContext
- The Modify operation contextorg.apache.directory.api.ldap.model.exception.LdapException
- If the modify failedpublic void move(MoveOperationContext moveContext) throws org.apache.directory.api.ldap.model.exception.LdapException
move
in interface OperationManager
moveContext
- The Move operation contextorg.apache.directory.api.ldap.model.exception.LdapException
- If the move failedpublic void moveAndRename(MoveAndRenameOperationContext moveAndRenameContext) throws org.apache.directory.api.ldap.model.exception.LdapException
moveAndRename
in interface OperationManager
moveAndRenameContext
- The MoveAndRename operation contextorg.apache.directory.api.ldap.model.exception.LdapException
- If the moveAndRename failedpublic void rename(RenameOperationContext renameContext) throws org.apache.directory.api.ldap.model.exception.LdapException
rename
in interface OperationManager
renameContext
- The Rename operation contextorg.apache.directory.api.ldap.model.exception.LdapException
- If the rename failedpublic EntryFilteringCursor search(SearchOperationContext searchContext) throws org.apache.directory.api.ldap.model.exception.LdapException
search
in interface OperationManager
searchContext
- The Search operation contextorg.apache.directory.api.ldap.model.exception.LdapException
- If the search failedpublic void unbind(UnbindOperationContext unbindContext) throws org.apache.directory.api.ldap.model.exception.LdapException
unbind
in interface OperationManager
unbindContext
- The Unbind operation contextorg.apache.directory.api.ldap.model.exception.LdapException
- If the unbind failedCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.