public interface Interceptor
DefaultPartitionNexus. Interceptor
filters most method calls performed on DefaultPartitionNexus 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, DirIteratorContext.REPLACE_ATTRIBUTE, mark );
}
NextInterceptorString getName()
void init(DirectoryService directoryService) throws Exception
InterceptorChain
when this intercepter is loaded into interceptor chain.Exceptionvoid destroy()
InterceptorChain
when this intercepter is unloaded from interceptor chain.ClonedServerEntry getRootDSE(NextInterceptor next, GetRootDSEOperationContext opContext) throws Exception
DefaultPartitionNexus#getRootDSE( GetRootDSEOperationContext ) call.Exceptionorg.apache.directory.shared.ldap.name.DN getMatchedName(NextInterceptor next, GetMatchedNameOperationContext opContext) throws Exception
DefaultPartitionNexus#getMatchedName( GetMatchedNameOperationContext ) call.Exceptionorg.apache.directory.shared.ldap.name.DN getSuffix(NextInterceptor next, GetSuffixOperationContext opContext) throws Exception
DefaultPartitionNexus#getSuffix( GetSuffixOperationContext ) call.ExceptionSet<String> listSuffixes(NextInterceptor next, ListSuffixOperationContext opContext) throws Exception
DefaultPartitionNexus#listSuffixes( ListSuffixOperationContext ) call.Exceptionvoid addContextPartition(NextInterceptor next, AddContextPartitionOperationContext opContext) throws Exception
DefaultPartitionNexus#addContextPartition( AddContextPartitionOperationContext ) call.Exceptionvoid removeContextPartition(NextInterceptor next, RemoveContextPartitionOperationContext opContext) throws Exception
DefaultPartitionNexus#removeContextPartition( RemoveContextPartitionOperationContext ) call.Exceptionboolean compare(NextInterceptor next, CompareOperationContext opContext) throws Exception
DefaultPartitionNexus#compare( CompareOperationContext ) call.Exceptionvoid delete(NextInterceptor next, DeleteOperationContext opContext) throws Exception
Partition.delete( DeleteOperationContext ) call.Exceptionvoid add(NextInterceptor next, AddOperationContext opContext) throws Exception
Partition.add( AddOperationContext ) call.Exceptionvoid modify(NextInterceptor next, ModifyOperationContext opContext) throws Exception
Partition.modify( ModifyOperationContext ) call.ExceptionEntryFilteringCursor list(NextInterceptor next, ListOperationContext opContext) throws Exception
Partition.list( ListOperationContext ) call.ExceptionEntryFilteringCursor search(NextInterceptor next, SearchOperationContext opContext) throws Exception
Partition.search( SearchOperationContext ) call.ExceptionClonedServerEntry lookup(NextInterceptor next, LookupOperationContext opContext) throws Exception
Partition.lookup( LookupOperationContext ) call.Exceptionboolean hasEntry(NextInterceptor next, EntryOperationContext opContext) throws Exception
Partition.hasEntry( EntryOperationContext ) call.Exceptionvoid rename(NextInterceptor next, RenameOperationContext opContext) throws Exception
Partition.rename( RenameOperationContext ) call.Exceptionvoid move(NextInterceptor next, MoveOperationContext opContext) throws Exception
Partition.move( MoveOperationContext ) call.Exceptionvoid moveAndRename(NextInterceptor next, MoveAndRenameOperationContext opContext) throws Exception
Partition.moveAndRename( MoveAndRenameOperationContext) call.Exceptionvoid bind(NextInterceptor next, BindOperationContext opContext) throws Exception
Partition.bind( BindOperationContext ) call.Exceptionvoid unbind(NextInterceptor next, UnbindOperationContext opContext) throws Exception
Partition.unbind( UnbindOperationContext ) call.ExceptionCopyright © 2003-2012 Apache Software Foundation. All Rights Reserved.