public abstract class BaseInterceptor extends Object implements Interceptor
Interceptor. All methods are
implemented to pass the flow of control to next interceptor by defaults.
Please override the methods you have concern in.| Modifier | Constructor and Description |
|---|---|
protected |
BaseInterceptor()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(NextInterceptor next,
AddOperationContext opContext)
Filters
Partition.add( AddOperationContext ) call. |
void |
addContextPartition(NextInterceptor next,
AddContextPartitionOperationContext opContext)
Filters
DefaultPartitionNexus#addContextPartition( AddContextPartitionOperationContext ) call. |
void |
bind(NextInterceptor next,
BindOperationContext opContext)
Filters
Partition.bind( BindOperationContext ) call. |
boolean |
compare(NextInterceptor next,
CompareOperationContext opContext)
Filters
DefaultPartitionNexus#compare( CompareOperationContext ) call. |
void |
delete(NextInterceptor next,
DeleteOperationContext opContext)
Filters
Partition.delete( DeleteOperationContext ) call. |
void |
destroy()
This method does nothing by default.
|
static OperationContext |
getContext()
TODO delete this since it uses static access
Returns the current JNDI
Context. |
org.apache.directory.shared.ldap.name.DN |
getMatchedName(NextInterceptor next,
GetMatchedNameOperationContext opContext)
Filters
DefaultPartitionNexus#getMatchedName( GetMatchedNameOperationContext ) call. |
String |
getName()
default interceptor name is its class, preventing accidental duplication of interceptors by naming
instances differently
|
static LdapPrincipal |
getPrincipal()
TODO delete this since it uses static access
Returns
LdapPrincipal of current context. |
ClonedServerEntry |
getRootDSE(NextInterceptor next,
GetRootDSEOperationContext opContext)
Filters
DefaultPartitionNexus#getRootDSE( GetRootDSEOperationContext ) call. |
org.apache.directory.shared.ldap.name.DN |
getSuffix(NextInterceptor next,
GetSuffixOperationContext opContext)
Filters
DefaultPartitionNexus#getSuffix( GetSuffixOperationContext ) call. |
boolean |
hasEntry(NextInterceptor next,
EntryOperationContext opContext)
Filters
Partition.hasEntry( EntryOperationContext ) call. |
void |
init(DirectoryService directoryService)
This method does nothing by default.
|
EntryFilteringCursor |
list(NextInterceptor next,
ListOperationContext opContext)
Filters
Partition.list( ListOperationContext ) call. |
Set<String> |
listSuffixes(NextInterceptor next,
ListSuffixOperationContext opContext)
Filters
DefaultPartitionNexus#listSuffixes( ListSuffixOperationContext ) call. |
ClonedServerEntry |
lookup(NextInterceptor next,
LookupOperationContext opContext)
Filters
Partition.lookup( LookupOperationContext ) call. |
void |
modify(NextInterceptor next,
ModifyOperationContext opContext)
Filters
Partition.modify( ModifyOperationContext ) call. |
void |
move(NextInterceptor next,
MoveOperationContext opContext)
Filters
Partition.move( MoveOperationContext ) call. |
void |
moveAndRename(NextInterceptor next,
MoveAndRenameOperationContext opContext)
Filters
Partition.moveAndRename( MoveAndRenameOperationContext) call. |
void |
removeContextPartition(NextInterceptor next,
RemoveContextPartitionOperationContext opContext)
Filters
DefaultPartitionNexus#removeContextPartition( RemoveContextPartitionOperationContext ) call. |
void |
rename(NextInterceptor next,
RenameOperationContext opContext)
Filters
Partition.rename( RenameOperationContext ) call. |
EntryFilteringCursor |
search(NextInterceptor next,
SearchOperationContext opContext)
Filters
Partition.search( SearchOperationContext ) call. |
void |
unbind(NextInterceptor next,
UnbindOperationContext opContext)
Filters
Partition.unbind( UnbindOperationContext ) call. |
public String getName()
getName in interface Interceptorpublic static LdapPrincipal getPrincipal()
LdapPrincipal of current context.public static OperationContext getContext()
Context.public void init(DirectoryService directoryService) throws Exception
init in interface InterceptorExceptionpublic void destroy()
destroy in interface Interceptorpublic void add(NextInterceptor next, AddOperationContext opContext) throws Exception
InterceptorPartition.add( AddOperationContext ) call.add in interface InterceptorExceptionpublic void delete(NextInterceptor next, DeleteOperationContext opContext) throws Exception
InterceptorPartition.delete( DeleteOperationContext ) call.delete in interface InterceptorExceptionpublic org.apache.directory.shared.ldap.name.DN getMatchedName(NextInterceptor next, GetMatchedNameOperationContext opContext) throws Exception
InterceptorDefaultPartitionNexus#getMatchedName( GetMatchedNameOperationContext ) call.getMatchedName in interface InterceptorExceptionpublic ClonedServerEntry getRootDSE(NextInterceptor next, GetRootDSEOperationContext opContext) throws Exception
InterceptorDefaultPartitionNexus#getRootDSE( GetRootDSEOperationContext ) call.getRootDSE in interface InterceptorExceptionpublic org.apache.directory.shared.ldap.name.DN getSuffix(NextInterceptor next, GetSuffixOperationContext opContext) throws Exception
InterceptorDefaultPartitionNexus#getSuffix( GetSuffixOperationContext ) call.getSuffix in interface InterceptorExceptionpublic boolean hasEntry(NextInterceptor next, EntryOperationContext opContext) throws Exception
InterceptorPartition.hasEntry( EntryOperationContext ) call.hasEntry in interface InterceptorExceptionpublic EntryFilteringCursor list(NextInterceptor next, ListOperationContext opContext) throws Exception
InterceptorPartition.list( ListOperationContext ) call.list in interface InterceptorExceptionpublic Set<String> listSuffixes(NextInterceptor next, ListSuffixOperationContext opContext) throws Exception
InterceptorDefaultPartitionNexus#listSuffixes( ListSuffixOperationContext ) call.listSuffixes in interface InterceptorExceptionpublic ClonedServerEntry lookup(NextInterceptor next, LookupOperationContext opContext) throws Exception
InterceptorPartition.lookup( LookupOperationContext ) call.lookup in interface InterceptorExceptionpublic void modify(NextInterceptor next, ModifyOperationContext opContext) throws Exception
InterceptorPartition.modify( ModifyOperationContext ) call.modify in interface InterceptorExceptionpublic void moveAndRename(NextInterceptor next, MoveAndRenameOperationContext opContext) throws Exception
InterceptorPartition.moveAndRename( MoveAndRenameOperationContext) call.moveAndRename in interface InterceptorExceptionpublic void rename(NextInterceptor next, RenameOperationContext opContext) throws Exception
InterceptorPartition.rename( RenameOperationContext ) call.rename in interface InterceptorExceptionpublic void move(NextInterceptor next, MoveOperationContext opContext) throws Exception
InterceptorPartition.move( MoveOperationContext ) call.move in interface InterceptorExceptionpublic EntryFilteringCursor search(NextInterceptor next, SearchOperationContext opContext) throws Exception
InterceptorPartition.search( SearchOperationContext ) call.search in interface InterceptorExceptionpublic void addContextPartition(NextInterceptor next, AddContextPartitionOperationContext opContext) throws Exception
InterceptorDefaultPartitionNexus#addContextPartition( AddContextPartitionOperationContext ) call.addContextPartition in interface InterceptorExceptionpublic void removeContextPartition(NextInterceptor next, RemoveContextPartitionOperationContext opContext) throws Exception
InterceptorDefaultPartitionNexus#removeContextPartition( RemoveContextPartitionOperationContext ) call.removeContextPartition in interface InterceptorExceptionpublic boolean compare(NextInterceptor next, CompareOperationContext opContext) throws Exception
InterceptorDefaultPartitionNexus#compare( CompareOperationContext ) call.compare in interface InterceptorExceptionpublic void bind(NextInterceptor next, BindOperationContext opContext) throws Exception
InterceptorPartition.bind( BindOperationContext ) call.bind in interface InterceptorExceptionpublic void unbind(NextInterceptor next, UnbindOperationContext opContext) throws Exception
InterceptorPartition.unbind( UnbindOperationContext ) call.unbind in interface InterceptorExceptionCopyright © 2003-2012 Apache Software Foundation. All Rights Reserved.