public class InterceptorChain extends Object
Interceptors.| Constructor and Description |
|---|
InterceptorChain()
Create a new interceptor chain.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(AddOperationContext opContext) |
void |
addAfter(String prevInterceptorName,
Interceptor interceptor) |
void |
addBefore(String nextInterceptorName,
Interceptor interceptor) |
void |
addContextPartition(AddContextPartitionOperationContext opContext) |
void |
addFirst(Interceptor interceptor) |
void |
addLast(Interceptor interceptor) |
void |
bind(BindOperationContext opContext) |
boolean |
compare(CompareOperationContext opContext) |
void |
delete(DeleteOperationContext opContext) |
void |
destroy()
Deinitializes and deregisters all interceptors this chain contains.
|
Interceptor |
get(String interceptorName)
Returns the registered interceptor with the specified name.
|
List<Interceptor> |
getAll()
Returns the list of all registered interceptors.
|
org.apache.directory.shared.ldap.name.DN |
getMatchedName(GetMatchedNameOperationContext opContext) |
ClonedServerEntry |
getRootDSE(GetRootDSEOperationContext opContext) |
org.apache.directory.shared.ldap.name.DN |
getSuffix(GetSuffixOperationContext opContext) |
boolean |
hasEntry(EntryOperationContext opContext) |
void |
init(DirectoryService directoryService)
Initializes and registers all interceptors according to the specified
DirectoryService. |
EntryFilteringCursor |
list(ListOperationContext opContext) |
Set<String> |
listSuffixes(ListSuffixOperationContext opContext) |
ClonedServerEntry |
lookup(LookupOperationContext opContext) |
void |
modify(ModifyOperationContext opContext) |
void |
move(MoveOperationContext opContext) |
void |
moveAndRename(MoveAndRenameOperationContext opContext) |
String |
remove(String interceptorName) |
void |
removeContextPartition(RemoveContextPartitionOperationContext opContext) |
void |
rename(RenameOperationContext opContext) |
EntryFilteringCursor |
search(SearchOperationContext opContext) |
void |
unbind(UnbindOperationContext opContext) |
public void init(DirectoryService directoryService) throws Exception
DirectoryService.directoryService - the directory corejavax.naming.Exception - if an interceptor cannot be initialized.Exceptionpublic void destroy()
public Interceptor get(String interceptorName)
interceptorName - name of the interceptor to look forpublic List<Interceptor> getAll()
public void addFirst(Interceptor interceptor) throws Exception
Exceptionpublic void addLast(Interceptor interceptor) throws Exception
Exceptionpublic void addBefore(String nextInterceptorName, Interceptor interceptor) throws Exception
Exceptionpublic void addAfter(String prevInterceptorName, Interceptor interceptor) throws Exception
Exceptionpublic ClonedServerEntry getRootDSE(GetRootDSEOperationContext opContext) throws Exception
Exceptionpublic org.apache.directory.shared.ldap.name.DN getMatchedName(GetMatchedNameOperationContext opContext) throws Exception
Exceptionpublic org.apache.directory.shared.ldap.name.DN getSuffix(GetSuffixOperationContext opContext) throws Exception
Exceptionpublic boolean compare(CompareOperationContext opContext) throws Exception
Exceptionpublic Set<String> listSuffixes(ListSuffixOperationContext opContext) throws Exception
Exceptionpublic void addContextPartition(AddContextPartitionOperationContext opContext) throws Exception
Exceptionpublic void removeContextPartition(RemoveContextPartitionOperationContext opContext) throws Exception
Exceptionpublic void delete(DeleteOperationContext opContext) throws Exception
Exceptionpublic void add(AddOperationContext opContext) throws Exception
Exceptionpublic void bind(BindOperationContext opContext) throws Exception
Exceptionpublic void unbind(UnbindOperationContext opContext) throws Exception
Exceptionpublic void modify(ModifyOperationContext opContext) throws Exception
Exceptionpublic EntryFilteringCursor list(ListOperationContext opContext) throws Exception
Exceptionpublic EntryFilteringCursor search(SearchOperationContext opContext) throws Exception
Exceptionpublic ClonedServerEntry lookup(LookupOperationContext opContext) throws Exception
Exceptionpublic boolean hasEntry(EntryOperationContext opContext) throws Exception
Exceptionpublic void rename(RenameOperationContext opContext) throws Exception
Exceptionpublic void move(MoveOperationContext opContext) throws Exception
Exceptionpublic void moveAndRename(MoveAndRenameOperationContext opContext) throws Exception
ExceptionCopyright © 2003-2012 Apache Software Foundation. All Rights Reserved.