|
||||||||||
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.ExceptionService
public class ExceptionService
An Interceptor
that detects any operations that breaks integrity
of Partition
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 |
add(NextInterceptor nextInterceptor,
LdapDN normName,
javax.naming.directory.Attributes entry)
In the pre-invocation state this interceptor method checks to see if the entry to be added already exists. |
void |
delete(NextInterceptor nextInterceptor,
LdapDN name)
Checks to make sure the entry being deleted exists, and has no children, otherwise throws the appropriate LdapException. |
void |
destroy()
This method does nothing by default. |
void |
init(DirectoryServiceConfiguration factoryCfg,
InterceptorConfiguration cfg)
This method does nothing by default. |
javax.naming.NamingEnumeration |
list(NextInterceptor nextInterceptor,
LdapDN baseName)
Checks to see the base being searched exists, otherwise throws the appropriate LdapException. |
javax.naming.directory.Attributes |
lookup(NextInterceptor nextInterceptor,
LdapDN name)
Checks to make sure the entry being looked up exists other wise throws the appropriate LdapException. |
javax.naming.directory.Attributes |
lookup(NextInterceptor nextInterceptor,
LdapDN name,
java.lang.String[] attrIds)
Checks to see the base being searched exists, otherwise throws the appropriate LdapException. |
void |
modify(NextInterceptor nextInterceptor,
LdapDN name,
int modOp,
javax.naming.directory.Attributes attrs)
Checks to see the entry being modified exists, otherwise throws the appropriate LdapException. |
void |
modify(NextInterceptor nextInterceptor,
LdapDN name,
javax.naming.directory.ModificationItem[] items)
Checks to see the entry being modified exists, otherwise throws the appropriate LdapException. |
void |
modifyRn(NextInterceptor nextInterceptor,
LdapDN dn,
java.lang.String newRn,
boolean deleteOldRn)
Checks to see the entry being renamed exists, otherwise throws the appropriate LdapException. |
void |
move(NextInterceptor nextInterceptor,
LdapDN oriChildName,
LdapDN newParentName)
Checks to see the entry being moved exists, and so does its parent, otherwise throws the appropriate LdapException. |
void |
move(NextInterceptor nextInterceptor,
LdapDN oriChildName,
LdapDN newParentName,
java.lang.String newRn,
boolean deleteOldRn)
Checks to see the entry being moved exists, and so does its parent, otherwise throws the appropriate LdapException. |
javax.naming.NamingEnumeration |
search(NextInterceptor nextInterceptor,
LdapDN base,
java.util.Map env,
ExprNode filter,
javax.naming.directory.SearchControls searchCtls)
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, getPrincipal, getRootDSE, getSuffix, hasEntry, isSuffix, listSuffixes, removeContextPartition, unbind |
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(DirectoryServiceConfiguration factoryCfg, InterceptorConfiguration cfg) throws javax.naming.NamingException
BaseInterceptor
init
in interface Interceptor
init
in class BaseInterceptor
javax.naming.NamingException
public void destroy()
BaseInterceptor
destroy
in interface Interceptor
destroy
in class BaseInterceptor
public void add(NextInterceptor nextInterceptor, LdapDN normName, javax.naming.directory.Attributes entry) throws javax.naming.NamingException
add
in interface Interceptor
add
in class BaseInterceptor
javax.naming.NamingException
public void delete(NextInterceptor nextInterceptor, LdapDN name) throws javax.naming.NamingException
delete
in interface Interceptor
delete
in class BaseInterceptor
javax.naming.NamingException
public javax.naming.NamingEnumeration list(NextInterceptor nextInterceptor, LdapDN baseName) throws javax.naming.NamingException
list
in interface Interceptor
list
in class BaseInterceptor
javax.naming.NamingException
public javax.naming.directory.Attributes lookup(NextInterceptor nextInterceptor, LdapDN name) throws javax.naming.NamingException
lookup
in interface Interceptor
lookup
in class BaseInterceptor
javax.naming.NamingException
public javax.naming.directory.Attributes lookup(NextInterceptor nextInterceptor, LdapDN name, java.lang.String[] attrIds) throws javax.naming.NamingException
lookup
in interface Interceptor
lookup
in class BaseInterceptor
javax.naming.NamingException
public void modify(NextInterceptor nextInterceptor, LdapDN name, int modOp, javax.naming.directory.Attributes attrs) throws javax.naming.NamingException
modify
in interface Interceptor
modify
in class BaseInterceptor
javax.naming.NamingException
public void modify(NextInterceptor nextInterceptor, LdapDN name, javax.naming.directory.ModificationItem[] items) throws javax.naming.NamingException
modify
in interface Interceptor
modify
in class BaseInterceptor
javax.naming.NamingException
public void modifyRn(NextInterceptor nextInterceptor, LdapDN dn, java.lang.String newRn, boolean deleteOldRn) throws javax.naming.NamingException
modifyRn
in interface Interceptor
modifyRn
in class BaseInterceptor
javax.naming.NamingException
public void move(NextInterceptor nextInterceptor, LdapDN oriChildName, LdapDN newParentName) throws javax.naming.NamingException
move
in interface Interceptor
move
in class BaseInterceptor
javax.naming.NamingException
public void move(NextInterceptor nextInterceptor, LdapDN oriChildName, LdapDN newParentName, java.lang.String newRn, boolean deleteOldRn) throws javax.naming.NamingException
move
in interface Interceptor
move
in class BaseInterceptor
javax.naming.NamingException
public javax.naming.NamingEnumeration search(NextInterceptor nextInterceptor, LdapDN base, java.util.Map env, ExprNode filter, javax.naming.directory.SearchControls searchCtls) throws javax.naming.NamingException
search
in interface Interceptor
search
in class BaseInterceptor
javax.naming.NamingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |