|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ldap.server.interceptor.BaseInterceptor
A easy-to-use implementation of Interceptor
. All methods are
implemented to pass the flow of control to next interceptor by defaults.
Please override the methods you have concern in.
Constructor Summary | |
protected |
BaseInterceptor()
Creates a new instance. |
Method Summary | |
void |
add(NextInterceptor next,
java.lang.String upName,
javax.naming.Name normName,
javax.naming.directory.Attributes entry)
Filters ContextPartition#add(String, Name, Attributes) call. |
void |
addContextPartition(NextInterceptor next,
ContextPartitionConfiguration cfg)
Filters ContextPartitionNexus#addContextPartition(ContextPartitionConfiguration) call. |
void |
delete(NextInterceptor next,
javax.naming.Name name)
Filters ContextPartition#delete(Name) call. |
void |
destroy()
This method does nothing by default. |
static javax.naming.ldap.LdapContext |
getContext()
Returns the current JNDI Context . |
javax.naming.Name |
getMatchedName(NextInterceptor next,
javax.naming.Name dn,
boolean normalized)
Filters ContextPartitionNexus#getMatchedName(Name, boolean) call. |
static LdapPrincipal |
getPrincipal()
Returns LdapPrincipal of current context. |
javax.naming.directory.Attributes |
getRootDSE(NextInterceptor next)
Filters ContextPartitionNexus#getRootDSE() call. |
javax.naming.Name |
getSuffix(NextInterceptor next,
javax.naming.Name dn,
boolean normalized)
Filters ContextPartitionNexus#getSuffix(Name, boolean) call. |
boolean |
hasEntry(NextInterceptor next,
javax.naming.Name name)
Filters ContextPartition#lookup(Name, String[]) call. |
void |
init(ContextFactoryConfiguration factoryCfg,
InterceptorConfiguration cfg)
This method does nothing by default. |
boolean |
isSuffix(NextInterceptor next,
javax.naming.Name name)
Filters ContextPartition#isSuffix(Name) call. |
javax.naming.NamingEnumeration |
list(NextInterceptor next,
javax.naming.Name base)
Filters ContextPartition#list(Name) call. |
java.util.Iterator |
listSuffixes(NextInterceptor next,
boolean normalized)
Filters ContextPartitionNexus#listSuffixes(boolean) call. |
javax.naming.directory.Attributes |
lookup(NextInterceptor next,
javax.naming.Name name)
Filters ContextPartition#lookup(Name) call. |
javax.naming.directory.Attributes |
lookup(NextInterceptor next,
javax.naming.Name dn,
java.lang.String[] attrIds)
Filters ContextPartition#lookup(Name, String[]) call. |
void |
modify(NextInterceptor next,
javax.naming.Name name,
int modOp,
javax.naming.directory.Attributes mods)
Filters ContextPartition#modify(Name, int, Attributes) call. |
void |
modify(NextInterceptor next,
javax.naming.Name name,
javax.naming.directory.ModificationItem[] mods)
Filters ContextPartition#modify(Name, ModificationItem[]) call. |
void |
modifyRn(NextInterceptor next,
javax.naming.Name name,
java.lang.String newRn,
boolean deleteOldRn)
Filters ContextPartition#modifyRn(Name, String, boolean) call. |
void |
move(NextInterceptor next,
javax.naming.Name oriChildName,
javax.naming.Name newParentName)
Filters ContextPartition#move(Name, Name) call. |
void |
move(NextInterceptor next,
javax.naming.Name oriChildName,
javax.naming.Name newParentName,
java.lang.String newRn,
boolean deleteOldRn)
Filters ContextPartition#move(Name, Name, String, boolean) call. |
void |
removeContextPartition(NextInterceptor next,
javax.naming.Name suffix)
Filters ContextPartitionNexus#removeContextPartition(Name) call. |
javax.naming.NamingEnumeration |
search(NextInterceptor next,
javax.naming.Name base,
java.util.Map env,
org.apache.ldap.common.filter.ExprNode filter,
javax.naming.directory.SearchControls searchCtls)
Filters ContextPartition#search(Name, Map, ExprNode, SearchControls) call. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected BaseInterceptor()
Method Detail |
public static LdapPrincipal getPrincipal()
LdapPrincipal
of current context.
public static javax.naming.ldap.LdapContext getContext()
Context
.
public void init(ContextFactoryConfiguration factoryCfg, InterceptorConfiguration cfg) throws javax.naming.NamingException
init
in interface Interceptor
javax.naming.NamingException
public void destroy()
destroy
in interface Interceptor
public void add(NextInterceptor next, java.lang.String upName, javax.naming.Name normName, javax.naming.directory.Attributes entry) throws javax.naming.NamingException
Interceptor
ContextPartition.add(String, Name, Attributes)
call.
add
in interface Interceptor
javax.naming.NamingException
public void delete(NextInterceptor next, javax.naming.Name name) throws javax.naming.NamingException
Interceptor
ContextPartition.delete(Name)
call.
delete
in interface Interceptor
javax.naming.NamingException
public javax.naming.Name getMatchedName(NextInterceptor next, javax.naming.Name dn, boolean normalized) throws javax.naming.NamingException
Interceptor
ContextPartitionNexus.getMatchedName(Name, boolean)
call.
getMatchedName
in interface Interceptor
javax.naming.NamingException
public javax.naming.directory.Attributes getRootDSE(NextInterceptor next) throws javax.naming.NamingException
Interceptor
ContextPartitionNexus.getRootDSE()
call.
getRootDSE
in interface Interceptor
javax.naming.NamingException
public javax.naming.Name getSuffix(NextInterceptor next, javax.naming.Name dn, boolean normalized) throws javax.naming.NamingException
Interceptor
ContextPartitionNexus.getSuffix(Name, boolean)
call.
getSuffix
in interface Interceptor
javax.naming.NamingException
public boolean hasEntry(NextInterceptor next, javax.naming.Name name) throws javax.naming.NamingException
Interceptor
ContextPartition.lookup(Name, String[])
call.
hasEntry
in interface Interceptor
javax.naming.NamingException
public boolean isSuffix(NextInterceptor next, javax.naming.Name name) throws javax.naming.NamingException
Interceptor
ContextPartition.isSuffix(Name)
call.
isSuffix
in interface Interceptor
javax.naming.NamingException
public javax.naming.NamingEnumeration list(NextInterceptor next, javax.naming.Name base) throws javax.naming.NamingException
Interceptor
ContextPartition.list(Name)
call.
list
in interface Interceptor
javax.naming.NamingException
public java.util.Iterator listSuffixes(NextInterceptor next, boolean normalized) throws javax.naming.NamingException
Interceptor
ContextPartitionNexus.listSuffixes(boolean)
call.
listSuffixes
in interface Interceptor
javax.naming.NamingException
public javax.naming.directory.Attributes lookup(NextInterceptor next, javax.naming.Name dn, java.lang.String[] attrIds) throws javax.naming.NamingException
Interceptor
ContextPartition.lookup(Name, String[])
call.
lookup
in interface Interceptor
javax.naming.NamingException
public javax.naming.directory.Attributes lookup(NextInterceptor next, javax.naming.Name name) throws javax.naming.NamingException
Interceptor
ContextPartition.lookup(Name)
call.
lookup
in interface Interceptor
javax.naming.NamingException
public void modify(NextInterceptor next, javax.naming.Name name, int modOp, javax.naming.directory.Attributes mods) throws javax.naming.NamingException
Interceptor
ContextPartition.modify(Name, int, Attributes)
call.
modify
in interface Interceptor
javax.naming.NamingException
public void modify(NextInterceptor next, javax.naming.Name name, javax.naming.directory.ModificationItem[] mods) throws javax.naming.NamingException
Interceptor
ContextPartition.modify(Name, ModificationItem[])
call.
modify
in interface Interceptor
javax.naming.NamingException
public void modifyRn(NextInterceptor next, javax.naming.Name name, java.lang.String newRn, boolean deleteOldRn) throws javax.naming.NamingException
Interceptor
ContextPartition.modifyRn(Name, String, boolean)
call.
modifyRn
in interface Interceptor
javax.naming.NamingException
public void move(NextInterceptor next, javax.naming.Name oriChildName, javax.naming.Name newParentName, java.lang.String newRn, boolean deleteOldRn) throws javax.naming.NamingException
Interceptor
ContextPartition.move(Name, Name, String, boolean)
call.
move
in interface Interceptor
javax.naming.NamingException
public void move(NextInterceptor next, javax.naming.Name oriChildName, javax.naming.Name newParentName) throws javax.naming.NamingException
Interceptor
ContextPartition.move(Name, Name)
call.
move
in interface Interceptor
javax.naming.NamingException
public javax.naming.NamingEnumeration search(NextInterceptor next, javax.naming.Name base, java.util.Map env, org.apache.ldap.common.filter.ExprNode filter, javax.naming.directory.SearchControls searchCtls) throws javax.naming.NamingException
Interceptor
ContextPartition.search(Name, Map, ExprNode, SearchControls)
call.
search
in interface Interceptor
javax.naming.NamingException
public void addContextPartition(NextInterceptor next, ContextPartitionConfiguration cfg) throws javax.naming.NamingException
Interceptor
ContextPartitionNexus.addContextPartition(ContextPartitionConfiguration)
call.
addContextPartition
in interface Interceptor
javax.naming.NamingException
public void removeContextPartition(NextInterceptor next, javax.naming.Name suffix) throws javax.naming.NamingException
Interceptor
ContextPartitionNexus.removeContextPartition(Name)
call.
removeContextPartition
in interface Interceptor
javax.naming.NamingException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |