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: 493916 $, $Date: 2007-01-08 03:44:33 +0100 (Mon, 08 Jan 2007) $
Author:
Apache Directory Project

Constructor Summary
InterceptorChain()
          Create a new interceptor chain.
 
Method Summary
 void add(org.apache.directory.shared.ldap.name.LdapDN normName, javax.naming.directory.Attributes entry)
           
 void addAfter(java.lang.String prevInterceptorName, InterceptorConfiguration cfg)
           
 void addBefore(java.lang.String nextInterceptorName, InterceptorConfiguration cfg)
           
 void addContextPartition(PartitionConfiguration cfg)
           
 void addFirst(InterceptorConfiguration cfg)
           
 void addLast(InterceptorConfiguration cfg)
           
 void bind(org.apache.directory.shared.ldap.name.LdapDN bindDn, byte[] credentials, java.util.List mechanisms, java.lang.String saslAuthId)
           
 boolean compare(org.apache.directory.shared.ldap.name.LdapDN name, java.lang.String oid, java.lang.Object value)
           
 void delete(org.apache.directory.shared.ldap.name.LdapDN name)
           
 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 getAll()
          Returns the list of all registered interceptors.
 org.apache.directory.shared.ldap.name.LdapDN getMatchedName(org.apache.directory.shared.ldap.name.LdapDN name)
           
 javax.naming.directory.Attributes getRootDSE()
           
 org.apache.directory.shared.ldap.name.LdapDN getSuffix(org.apache.directory.shared.ldap.name.LdapDN name)
           
 boolean hasEntry(org.apache.directory.shared.ldap.name.LdapDN name)
           
 void init(DirectoryServiceConfiguration factoryCfg)
          Initializes and registers all interceptors according to the specified DirectoryServiceConfiguration.
 boolean isSuffix(org.apache.directory.shared.ldap.name.LdapDN name)
           
 javax.naming.NamingEnumeration list(org.apache.directory.shared.ldap.name.LdapDN base)
           
 java.util.Iterator listSuffixes()
           
 javax.naming.directory.Attributes lookup(org.apache.directory.shared.ldap.name.LdapDN name)
           
 javax.naming.directory.Attributes lookup(org.apache.directory.shared.ldap.name.LdapDN dn, java.lang.String[] attrIds)
           
 void modify(org.apache.directory.shared.ldap.name.LdapDN name, int modOp, javax.naming.directory.Attributes mods)
           
 void modify(org.apache.directory.shared.ldap.name.LdapDN name, org.apache.directory.shared.ldap.message.ModificationItemImpl[] mods)
           
 void modifyRn(org.apache.directory.shared.ldap.name.LdapDN name, java.lang.String newRn, boolean deleteOldRn)
           
 void move(org.apache.directory.shared.ldap.name.LdapDN oriChildName, org.apache.directory.shared.ldap.name.LdapDN newParentName)
           
 void move(org.apache.directory.shared.ldap.name.LdapDN oriChildName, org.apache.directory.shared.ldap.name.LdapDN newParentName, java.lang.String newRn, boolean deleteOldRn)
           
 InterceptorConfiguration remove(java.lang.String interceptorName)
           
 void removeContextPartition(org.apache.directory.shared.ldap.name.LdapDN suffix)
           
 javax.naming.NamingEnumeration search(org.apache.directory.shared.ldap.name.LdapDN base, java.util.Map env, org.apache.directory.shared.ldap.filter.ExprNode filter, javax.naming.directory.SearchControls searchCtls)
           
 void unbind(org.apache.directory.shared.ldap.name.LdapDN bindDn)
           
 
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(DirectoryServiceConfiguration factoryCfg)
          throws javax.naming.NamingException
Initializes and registers all interceptors according to the specified DirectoryServiceConfiguration.

Throws:
javax.naming.NamingException

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.

Returns:
null if the specified name doesn't exist.

getAll

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


addFirst

public void addFirst(InterceptorConfiguration cfg)
              throws javax.naming.NamingException
Throws:
javax.naming.NamingException

addLast

public void addLast(InterceptorConfiguration cfg)
             throws javax.naming.NamingException
Throws:
javax.naming.NamingException

addBefore

public void addBefore(java.lang.String nextInterceptorName,
                      InterceptorConfiguration cfg)
               throws javax.naming.NamingException
Throws:
javax.naming.NamingException

remove

public InterceptorConfiguration remove(java.lang.String interceptorName)
                                throws javax.naming.NamingException
Throws:
javax.naming.NamingException

addAfter

public void addAfter(java.lang.String prevInterceptorName,
                     InterceptorConfiguration cfg)
              throws javax.naming.NamingException
Throws:
javax.naming.NamingException

getRootDSE

public javax.naming.directory.Attributes getRootDSE()
                                             throws javax.naming.NamingException
Throws:
javax.naming.NamingException

getMatchedName

public org.apache.directory.shared.ldap.name.LdapDN getMatchedName(org.apache.directory.shared.ldap.name.LdapDN name)
                                                            throws javax.naming.NamingException
Throws:
javax.naming.NamingException

getSuffix

public org.apache.directory.shared.ldap.name.LdapDN getSuffix(org.apache.directory.shared.ldap.name.LdapDN name)
                                                       throws javax.naming.NamingException
Throws:
javax.naming.NamingException

compare

public boolean compare(org.apache.directory.shared.ldap.name.LdapDN name,
                       java.lang.String oid,
                       java.lang.Object value)
                throws javax.naming.NamingException
Throws:
javax.naming.NamingException

listSuffixes

public java.util.Iterator listSuffixes()
                                throws javax.naming.NamingException
Throws:
javax.naming.NamingException

addContextPartition

public void addContextPartition(PartitionConfiguration cfg)
                         throws javax.naming.NamingException
Throws:
javax.naming.NamingException

removeContextPartition

public void removeContextPartition(org.apache.directory.shared.ldap.name.LdapDN suffix)
                            throws javax.naming.NamingException
Throws:
javax.naming.NamingException

delete

public void delete(org.apache.directory.shared.ldap.name.LdapDN name)
            throws javax.naming.NamingException
Throws:
javax.naming.NamingException

add

public void add(org.apache.directory.shared.ldap.name.LdapDN normName,
                javax.naming.directory.Attributes entry)
         throws javax.naming.NamingException
Throws:
javax.naming.NamingException

bind

public void bind(org.apache.directory.shared.ldap.name.LdapDN bindDn,
                 byte[] credentials,
                 java.util.List mechanisms,
                 java.lang.String saslAuthId)
          throws javax.naming.NamingException
Throws:
javax.naming.NamingException

unbind

public void unbind(org.apache.directory.shared.ldap.name.LdapDN bindDn)
            throws javax.naming.NamingException
Throws:
javax.naming.NamingException

modify

public void modify(org.apache.directory.shared.ldap.name.LdapDN name,
                   int modOp,
                   javax.naming.directory.Attributes mods)
            throws javax.naming.NamingException
Throws:
javax.naming.NamingException

modify

public void modify(org.apache.directory.shared.ldap.name.LdapDN name,
                   org.apache.directory.shared.ldap.message.ModificationItemImpl[] mods)
            throws javax.naming.NamingException
Throws:
javax.naming.NamingException

list

public javax.naming.NamingEnumeration list(org.apache.directory.shared.ldap.name.LdapDN base)
                                    throws javax.naming.NamingException
Throws:
javax.naming.NamingException

search

public javax.naming.NamingEnumeration search(org.apache.directory.shared.ldap.name.LdapDN base,
                                             java.util.Map env,
                                             org.apache.directory.shared.ldap.filter.ExprNode filter,
                                             javax.naming.directory.SearchControls searchCtls)
                                      throws javax.naming.NamingException
Throws:
javax.naming.NamingException

lookup

public javax.naming.directory.Attributes lookup(org.apache.directory.shared.ldap.name.LdapDN name)
                                         throws javax.naming.NamingException
Throws:
javax.naming.NamingException

lookup

public javax.naming.directory.Attributes lookup(org.apache.directory.shared.ldap.name.LdapDN dn,
                                                java.lang.String[] attrIds)
                                         throws javax.naming.NamingException
Throws:
javax.naming.NamingException

hasEntry

public boolean hasEntry(org.apache.directory.shared.ldap.name.LdapDN name)
                 throws javax.naming.NamingException
Throws:
javax.naming.NamingException

isSuffix

public boolean isSuffix(org.apache.directory.shared.ldap.name.LdapDN name)
                 throws javax.naming.NamingException
Throws:
javax.naming.NamingException

modifyRn

public void modifyRn(org.apache.directory.shared.ldap.name.LdapDN name,
                     java.lang.String newRn,
                     boolean deleteOldRn)
              throws javax.naming.NamingException
Throws:
javax.naming.NamingException

move

public void move(org.apache.directory.shared.ldap.name.LdapDN oriChildName,
                 org.apache.directory.shared.ldap.name.LdapDN newParentName)
          throws javax.naming.NamingException
Throws:
javax.naming.NamingException

move

public void move(org.apache.directory.shared.ldap.name.LdapDN oriChildName,
                 org.apache.directory.shared.ldap.name.LdapDN newParentName,
                 java.lang.String newRn,
                 boolean deleteOldRn)
          throws javax.naming.NamingException
Throws:
javax.naming.NamingException


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