|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Interceptor
Filters invocations on PartitionNexus
. Interceptor
filters most method calls performed on PartitionNexus
just
like Servlet filters do.
NextInterceptor
. The flow control is returned when the next
interceptor's filter method returns. You can therefore implement pre-, post-,
around- invocation handler by how you place the statement. Otherwise, you
can transform the invocation into other(s).
public void delete( NextInterceptor nextInterceptor, Name name ) { System.out.println( "Starting invocation." ); nextInterceptor.delete( name ); }
public void delete( NextInterceptor nextInterceptor, Name name ) { nextInterceptor.delete( name ); System.out.println( "Invocation ended." ); }
public void delete( NextInterceptor nextInterceptor, Name name ) { long startTime = System.currentTimeMillis(); try { nextInterceptor.delete( name ); } finally { long endTime = System.currentTimeMillis(); System.out.println( ( endTime - startTime ) + "ms elapsed." ); } }
public void delete( NextInterceptor nextInterceptor, Name name ) { // transform deletion into modification. Attribute mark = new AttributeImpl( "entryDeleted", "true" ); nextInterceptor.modify( name, DirContext.REPLACE_ATTRIBUTE, mark ); }
NextInterceptor
Method Detail |
---|
java.lang.String getName()
void init(DirectoryService directoryService) throws java.lang.Exception
InterceptorChain
when this intercepter is loaded into interceptor chain.
java.lang.Exception
void destroy()
InterceptorChain
when this intercepter is unloaded from interceptor chain.
ClonedServerEntry getRootDSE(NextInterceptor next, GetRootDSEOperationContext opContext) throws java.lang.Exception
PartitionNexus.getRootDSE( GetRootDSEOperationContext )
call.
java.lang.Exception
org.apache.directory.shared.ldap.name.LdapDN getMatchedName(NextInterceptor next, GetMatchedNameOperationContext opContext) throws java.lang.Exception
PartitionNexus.getMatchedName( GetMatchedNameOperationContext )
call.
java.lang.Exception
org.apache.directory.shared.ldap.name.LdapDN getSuffix(NextInterceptor next, GetSuffixOperationContext opContext) throws java.lang.Exception
PartitionNexus.getSuffix( GetSuffixOperationContext )
call.
java.lang.Exception
java.util.Iterator<java.lang.String> listSuffixes(NextInterceptor next, ListSuffixOperationContext opContext) throws java.lang.Exception
PartitionNexus.listSuffixes( ListSuffixOperationContext )
call.
java.lang.Exception
void addContextPartition(NextInterceptor next, AddContextPartitionOperationContext opContext) throws java.lang.Exception
PartitionNexus.addContextPartition( AddContextPartitionOperationContext )
call.
java.lang.Exception
void removeContextPartition(NextInterceptor next, RemoveContextPartitionOperationContext opContext) throws java.lang.Exception
PartitionNexus.removeContextPartition( RemoveContextPartitionOperationContext )
call.
java.lang.Exception
boolean compare(NextInterceptor next, CompareOperationContext opContext) throws java.lang.Exception
PartitionNexus.compare( CompareOperationContext )
call.
java.lang.Exception
void delete(NextInterceptor next, DeleteOperationContext opContext) throws java.lang.Exception
Partition.delete( DeleteOperationContext )
call.
java.lang.Exception
void add(NextInterceptor next, AddOperationContext opContext) throws java.lang.Exception
Partition.add( AddOperationContext )
call.
java.lang.Exception
void modify(NextInterceptor next, ModifyOperationContext opContext) throws java.lang.Exception
Partition.modify( ModifyOperationContext )
call.
java.lang.Exception
EntryFilteringCursor list(NextInterceptor next, ListOperationContext opContext) throws java.lang.Exception
Partition.list( ListOperationContext )
call.
java.lang.Exception
EntryFilteringCursor search(NextInterceptor next, SearchOperationContext opContext) throws java.lang.Exception
Partition.search( SearchOperationContext )
call.
java.lang.Exception
ClonedServerEntry lookup(NextInterceptor next, LookupOperationContext opContext) throws java.lang.Exception
Partition.lookup( LookupOperationContext )
call.
java.lang.Exception
boolean hasEntry(NextInterceptor next, EntryOperationContext opContext) throws java.lang.Exception
Partition.hasEntry( EntryOperationContext )
call.
java.lang.Exception
void rename(NextInterceptor next, RenameOperationContext opContext) throws java.lang.Exception
Partition.rename( RenameOperationContext )
call.
java.lang.Exception
void move(NextInterceptor next, MoveOperationContext opContext) throws java.lang.Exception
Partition.move( MoveOperationContext )
call.
java.lang.Exception
void moveAndRename(NextInterceptor next, MoveAndRenameOperationContext opContext) throws java.lang.Exception
Partition.moveAndRename( MoveAndRenameOperationContext)
call.
java.lang.Exception
void bind(NextInterceptor next, BindOperationContext opContext) throws java.lang.Exception
Partition.bind( BindOperationContext )
call.
java.lang.Exception
void unbind(NextInterceptor next, UnbindOperationContext opContext) throws java.lang.Exception
Partition.unbind( UnbindOperationContext )
call.
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |