org.apache.directory.server.core.interceptor
Class InterceptorChain

java.lang.Object
  extended by org.apache.directory.server.core.interceptor.InterceptorChain

public class InterceptorChain
extends java.lang.Object

Manages the chain of Interceptors.

Version:
$Rev: 918766 $, $Date: 2010-03-04 00:25:11 +0100 (Thu, 04 Mar 2010) $
Author:
Apache Directory Project

Constructor Summary
InterceptorChain()
          Create a new interceptor chain.
 
Method Summary
 void add(AddOperationContext opContext)
           
 void addAfter(java.lang.String prevInterceptorName, Interceptor interceptor)
           
 void addBefore(java.lang.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(java.lang.String interceptorName)
          Returns the registered interceptor with the specified name.
 java.util.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)
           
 java.util.Set<java.lang.String> listSuffixes(ListSuffixOperationContext opContext)
           
 ClonedServerEntry lookup(LookupOperationContext opContext)
           
 void modify(ModifyOperationContext opContext)
           
 void move(MoveOperationContext opContext)
           
 void moveAndRename(MoveAndRenameOperationContext opContext)
           
 java.lang.String remove(java.lang.String interceptorName)
           
 void removeContextPartition(RemoveContextPartitionOperationContext opContext)
           
 void rename(RenameOperationContext opContext)
           
 EntryFilteringCursor search(SearchOperationContext opContext)
           
 void unbind(UnbindOperationContext opContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterceptorChain

public InterceptorChain()
Create a new interceptor chain.

Method Detail

init

public void init(DirectoryService directoryService)
          throws java.lang.Exception
Initializes and registers all interceptors according to the specified DirectoryService.

Parameters:
directoryService - the directory core
Throws:
javax.naming.Exception - if an interceptor cannot be initialized.
java.lang.Exception

destroy

public void destroy()
Deinitializes and deregisters all interceptors this chain contains.


get

public Interceptor get(java.lang.String interceptorName)
Returns the registered interceptor with the specified name.

Parameters:
interceptorName - name of the interceptor to look for
Returns:
null if the specified name doesn't exist.

getAll

public java.util.List<Interceptor> getAll()
Returns the list of all registered interceptors.

Returns:
a list of all the registered interceptors.

addFirst

public void addFirst(Interceptor interceptor)
              throws java.lang.Exception
Throws:
java.lang.Exception

addLast

public void addLast(Interceptor interceptor)
             throws java.lang.Exception
Throws:
java.lang.Exception

addBefore

public void addBefore(java.lang.String nextInterceptorName,
                      Interceptor interceptor)
               throws java.lang.Exception
Throws:
java.lang.Exception

remove

public java.lang.String remove(java.lang.String interceptorName)
                        throws java.lang.Exception
Throws:
java.lang.Exception

addAfter

public void addAfter(java.lang.String prevInterceptorName,
                     Interceptor interceptor)
              throws java.lang.Exception
Throws:
java.lang.Exception

getRootDSE

public ClonedServerEntry getRootDSE(GetRootDSEOperationContext opContext)
                             throws java.lang.Exception
Throws:
java.lang.Exception

getMatchedName

public org.apache.directory.shared.ldap.name.DN getMatchedName(GetMatchedNameOperationContext opContext)
                                                        throws java.lang.Exception
Throws:
java.lang.Exception

getSuffix

public org.apache.directory.shared.ldap.name.DN getSuffix(GetSuffixOperationContext opContext)
                                                   throws java.lang.Exception
Throws:
java.lang.Exception

compare

public boolean compare(CompareOperationContext opContext)
                throws java.lang.Exception
Throws:
java.lang.Exception

listSuffixes

public java.util.Set<java.lang.String> listSuffixes(ListSuffixOperationContext opContext)
                                             throws java.lang.Exception
Throws:
java.lang.Exception

addContextPartition

public void addContextPartition(AddContextPartitionOperationContext opContext)
                         throws java.lang.Exception
Throws:
java.lang.Exception

removeContextPartition

public void removeContextPartition(RemoveContextPartitionOperationContext opContext)
                            throws java.lang.Exception
Throws:
java.lang.Exception

delete

public void delete(DeleteOperationContext opContext)
            throws java.lang.Exception
Throws:
java.lang.Exception

add

public void add(AddOperationContext opContext)
         throws java.lang.Exception
Throws:
java.lang.Exception

bind

public void bind(BindOperationContext opContext)
          throws java.lang.Exception
Throws:
java.lang.Exception

unbind

public void unbind(UnbindOperationContext opContext)
            throws java.lang.Exception
Throws:
java.lang.Exception

modify

public void modify(ModifyOperationContext opContext)
            throws java.lang.Exception
Throws:
java.lang.Exception

list

public EntryFilteringCursor list(ListOperationContext opContext)
                          throws java.lang.Exception
Throws:
java.lang.Exception

search

public EntryFilteringCursor search(SearchOperationContext opContext)
                            throws java.lang.Exception
Throws:
java.lang.Exception

lookup

public ClonedServerEntry lookup(LookupOperationContext opContext)
                         throws java.lang.Exception
Throws:
java.lang.Exception

hasEntry

public boolean hasEntry(EntryOperationContext opContext)
                 throws java.lang.Exception
Throws:
java.lang.Exception

rename

public void rename(RenameOperationContext opContext)
            throws java.lang.Exception
Throws:
java.lang.Exception

move

public void move(MoveOperationContext opContext)
          throws java.lang.Exception
Throws:
java.lang.Exception

moveAndRename

public void moveAndRename(MoveAndRenameOperationContext opContext)
                   throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.