public class ExceptionInterceptor
extends org.apache.directory.server.core.api.interceptor.BaseInterceptor
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 and Description |
|---|
ExceptionInterceptor()
Creates an interceptor that is also the exception handling service.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.apache.directory.server.core.api.interceptor.context.AddOperationContext addContext)
In the pre-invocation state this interceptor method checks to see if the entry to be added already exists.
|
void |
delete(org.apache.directory.server.core.api.interceptor.context.DeleteOperationContext deleteContext)
Checks to make sure the entry being deleted exists, and has no children, otherwise throws the appropriate
LdapException.
|
void |
destroy() |
void |
init(org.apache.directory.server.core.api.DirectoryService directoryService) |
void |
modify(org.apache.directory.server.core.api.interceptor.context.ModifyOperationContext modifyContext) |
void |
move(org.apache.directory.server.core.api.interceptor.context.MoveOperationContext moveContext) |
void |
moveAndRename(org.apache.directory.server.core.api.interceptor.context.MoveAndRenameOperationContext moveAndRenameContext) |
void |
rename(org.apache.directory.server.core.api.interceptor.context.RenameOperationContext renameContext) |
public ExceptionInterceptor()
public void init(org.apache.directory.server.core.api.DirectoryService directoryService)
throws org.apache.directory.api.ldap.model.exception.LdapException
init in interface org.apache.directory.server.core.api.interceptor.Interceptorinit in class org.apache.directory.server.core.api.interceptor.BaseInterceptororg.apache.directory.api.ldap.model.exception.LdapExceptionpublic void destroy()
destroy in interface org.apache.directory.server.core.api.interceptor.Interceptordestroy in class org.apache.directory.server.core.api.interceptor.BaseInterceptorpublic void add(org.apache.directory.server.core.api.interceptor.context.AddOperationContext addContext)
throws org.apache.directory.api.ldap.model.exception.LdapException
add in interface org.apache.directory.server.core.api.interceptor.Interceptoradd in class org.apache.directory.server.core.api.interceptor.BaseInterceptororg.apache.directory.api.ldap.model.exception.LdapExceptionpublic void delete(org.apache.directory.server.core.api.interceptor.context.DeleteOperationContext deleteContext)
throws org.apache.directory.api.ldap.model.exception.LdapException
delete in interface org.apache.directory.server.core.api.interceptor.Interceptordelete in class org.apache.directory.server.core.api.interceptor.BaseInterceptororg.apache.directory.api.ldap.model.exception.LdapExceptionpublic void modify(org.apache.directory.server.core.api.interceptor.context.ModifyOperationContext modifyContext)
throws org.apache.directory.api.ldap.model.exception.LdapException
modify in interface org.apache.directory.server.core.api.interceptor.Interceptormodify in class org.apache.directory.server.core.api.interceptor.BaseInterceptororg.apache.directory.api.ldap.model.exception.LdapExceptionpublic void move(org.apache.directory.server.core.api.interceptor.context.MoveOperationContext moveContext)
throws org.apache.directory.api.ldap.model.exception.LdapException
move in interface org.apache.directory.server.core.api.interceptor.Interceptormove in class org.apache.directory.server.core.api.interceptor.BaseInterceptororg.apache.directory.api.ldap.model.exception.LdapExceptionpublic void moveAndRename(org.apache.directory.server.core.api.interceptor.context.MoveAndRenameOperationContext moveAndRenameContext)
throws org.apache.directory.api.ldap.model.exception.LdapException
moveAndRename in interface org.apache.directory.server.core.api.interceptor.InterceptormoveAndRename in class org.apache.directory.server.core.api.interceptor.BaseInterceptororg.apache.directory.api.ldap.model.exception.LdapExceptionpublic void rename(org.apache.directory.server.core.api.interceptor.context.RenameOperationContext renameContext)
throws org.apache.directory.api.ldap.model.exception.LdapException
rename in interface org.apache.directory.server.core.api.interceptor.Interceptorrename in class org.apache.directory.server.core.api.interceptor.BaseInterceptororg.apache.directory.api.ldap.model.exception.LdapExceptionCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.