|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.server.core.interceptor.BaseInterceptor
org.apache.directory.server.core.exception.ExceptionInterceptor
public class ExceptionInterceptor
An Interceptor that detects any operations that breaks integrity
of Partition and terminates the current invocation chain by
throwing a Exception. Those operations include when an entry
already exists at a DN and is added once again to the same DN.
| Constructor Summary | |
|---|---|
ExceptionInterceptor()
Creates an interceptor that is also the exception handling service. |
|
| Method Summary | |
|---|---|
void |
add(NextInterceptor nextInterceptor,
AddOperationContext opContext)
In the pre-invocation state this interceptor method checks to see if the entry to be added already exists. |
void |
delete(NextInterceptor nextInterceptor,
DeleteOperationContext opContext)
Checks to make sure the entry being deleted exists, and has no children, otherwise throws the appropriate LdapException. |
void |
destroy()
|
void |
init(DirectoryService directoryService)
|
EntryFilteringCursor |
list(NextInterceptor nextInterceptor,
ListOperationContext opContext)
Checks to see the base being searched exists, otherwise throws the appropriate LdapException. |
ClonedServerEntry |
lookup(NextInterceptor nextInterceptor,
LookupOperationContext opContext)
Checks to see the base being searched exists, otherwise throws the appropriate LdapException. |
void |
modify(NextInterceptor nextInterceptor,
ModifyOperationContext opContext)
Checks to see the entry being modified exists, otherwise throws the appropriate LdapException. |
void |
move(NextInterceptor nextInterceptor,
MoveOperationContext opContext)
Checks to see the entry being moved exists, and so does its parent, otherwise throws the appropriate LdapException. |
void |
moveAndRename(NextInterceptor nextInterceptor,
MoveAndRenameOperationContext opContext)
Checks to see the entry being moved exists, and so does its parent, otherwise throws the appropriate LdapException. |
void |
rename(NextInterceptor nextInterceptor,
RenameOperationContext opContext)
Checks to see the entry being renamed exists, otherwise throws the appropriate LdapException. |
EntryFilteringCursor |
search(NextInterceptor nextInterceptor,
SearchOperationContext opContext)
Checks to see the entry being searched exists, otherwise throws the appropriate LdapException. |
| Methods inherited from class org.apache.directory.server.core.interceptor.BaseInterceptor |
|---|
addContextPartition, bind, compare, getContext, getMatchedName, getName, getPrincipal, getRootDSE, getSuffix, hasEntry, listSuffixes, removeContextPartition, unbind |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExceptionInterceptor()
| Method Detail |
|---|
public void init(DirectoryService directoryService)
throws java.lang.Exception
init in interface Interceptorinit in class BaseInterceptorjava.lang.Exceptionpublic void destroy()
destroy in interface Interceptordestroy in class BaseInterceptor
public void add(NextInterceptor nextInterceptor,
AddOperationContext opContext)
throws java.lang.Exception
add in interface Interceptoradd in class BaseInterceptorjava.lang.Exception
public void delete(NextInterceptor nextInterceptor,
DeleteOperationContext opContext)
throws java.lang.Exception
delete in interface Interceptordelete in class BaseInterceptorjava.lang.Exception
public EntryFilteringCursor list(NextInterceptor nextInterceptor,
ListOperationContext opContext)
throws java.lang.Exception
list in interface Interceptorlist in class BaseInterceptorjava.lang.Exception
public ClonedServerEntry lookup(NextInterceptor nextInterceptor,
LookupOperationContext opContext)
throws java.lang.Exception
lookup in interface Interceptorlookup in class BaseInterceptorjava.lang.Exception
public void modify(NextInterceptor nextInterceptor,
ModifyOperationContext opContext)
throws java.lang.Exception
modify in interface Interceptormodify in class BaseInterceptorjava.lang.Exception
public void rename(NextInterceptor nextInterceptor,
RenameOperationContext opContext)
throws java.lang.Exception
rename in interface Interceptorrename in class BaseInterceptorjava.lang.Exception
public void move(NextInterceptor nextInterceptor,
MoveOperationContext opContext)
throws java.lang.Exception
move in interface Interceptormove in class BaseInterceptorjava.lang.Exception
public void moveAndRename(NextInterceptor nextInterceptor,
MoveAndRenameOperationContext opContext)
throws java.lang.Exception
moveAndRename in interface InterceptormoveAndRename in class BaseInterceptorjava.lang.Exception
public EntryFilteringCursor search(NextInterceptor nextInterceptor,
SearchOperationContext opContext)
throws java.lang.Exception
search in interface Interceptorsearch in class BaseInterceptorjava.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||