|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ldap.server.interceptor.BaseInterceptor
org.apache.ldap.server.exception.ExceptionService
An Interceptor
that detects any operations that breaks integrity
of BackingStore
and terminates the current invocation chain by
throwing a NamingException
. Those operations include when an entry
already exists at a DN and is added once again to the same DN.
Constructor Summary | |
ExceptionService()
Creates an interceptor that is also the exception handling service. |
Method Summary | |
void |
destroy()
Deinitializes this interceptor. |
void |
init(InterceptorContext ctx)
Intializes this interceptor. |
protected void |
process(NextInterceptor nextInterceptor,
Add call)
In the pre-invocation state this interceptor method checks to see if the entry to be added already exists. |
protected void |
process(NextInterceptor nextInterceptor,
Delete call)
Checks to make sure the entry being deleted exists, and has no children, otherwise throws the appropriate LdapException. |
protected void |
process(NextInterceptor nextInterceptor,
List call)
Checks to see the base being searched exists, otherwise throws the appropriate LdapException. |
protected void |
process(NextInterceptor nextInterceptor,
Lookup call)
Checks to make sure the entry being looked up exists other wise throws the appropriate LdapException. |
protected void |
process(NextInterceptor nextInterceptor,
LookupWithAttrIds call)
Checks to see the base being searched exists, otherwise throws the appropriate LdapException. |
protected void |
process(NextInterceptor nextInterceptor,
Modify call)
Checks to see the entry being modified exists, otherwise throws the appropriate LdapException. |
protected void |
process(NextInterceptor nextInterceptor,
ModifyMany call)
Checks to see the entry being modified exists, otherwise throws the appropriate LdapException. |
protected void |
process(NextInterceptor nextInterceptor,
ModifyRN call)
Checks to see the entry being renamed exists, otherwise throws the appropriate LdapException. |
protected void |
process(NextInterceptor nextInterceptor,
Move call)
Checks to see the entry being moved exists, and so does its parent, otherwise throws the appropriate LdapException. |
protected void |
process(NextInterceptor nextInterceptor,
MoveAndModifyRN call)
Checks to see the entry being moved exists, and so does its parent, otherwise throws the appropriate LdapException. |
protected void |
process(NextInterceptor nextInterceptor,
Search call)
Checks to see the entry being searched exists, otherwise throws the appropriate LdapException. |
Methods inherited from class org.apache.ldap.server.interceptor.BaseInterceptor |
getPrincipal, process, process, process, process, process, process |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ExceptionService()
Method Detail |
public void init(InterceptorContext ctx)
Interceptor
ctx
- the configuration properties for this interceptorpublic void destroy()
Interceptor
protected void process(NextInterceptor nextInterceptor, Add call) throws javax.naming.NamingException
process
in class BaseInterceptor
javax.naming.NamingException
protected void process(NextInterceptor nextInterceptor, Delete call) throws javax.naming.NamingException
process
in class BaseInterceptor
javax.naming.NamingException
protected void process(NextInterceptor nextInterceptor, List call) throws javax.naming.NamingException
process
in class BaseInterceptor
javax.naming.NamingException
protected void process(NextInterceptor nextInterceptor, Lookup call) throws javax.naming.NamingException
process
in class BaseInterceptor
javax.naming.NamingException
protected void process(NextInterceptor nextInterceptor, LookupWithAttrIds call) throws javax.naming.NamingException
process
in class BaseInterceptor
javax.naming.NamingException
protected void process(NextInterceptor nextInterceptor, Modify call) throws javax.naming.NamingException
process
in class BaseInterceptor
javax.naming.NamingException
protected void process(NextInterceptor nextInterceptor, ModifyMany call) throws javax.naming.NamingException
process
in class BaseInterceptor
javax.naming.NamingException
protected void process(NextInterceptor nextInterceptor, ModifyRN call) throws javax.naming.NamingException
process
in class BaseInterceptor
javax.naming.NamingException
protected void process(NextInterceptor nextInterceptor, Move call) throws javax.naming.NamingException
process
in class BaseInterceptor
javax.naming.NamingException
protected void process(NextInterceptor nextInterceptor, MoveAndModifyRN call) throws javax.naming.NamingException
process
in class BaseInterceptor
javax.naming.NamingException
protected void process(NextInterceptor nextInterceptor, Search call) throws javax.naming.NamingException
process
in class BaseInterceptor
javax.naming.NamingException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |