|
||||||||||
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
public abstract class 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,
LdapDN normName,
javax.naming.directory.Attributes entry)
Filters Partition#add(org.apache.directory.shared.ldap.name.LdapDN,javax.naming.directory.Attributes) call. |
void |
addContextPartition(NextInterceptor next,
PartitionConfiguration cfg)
Filters PartitionNexus.addContextPartition(PartitionConfiguration) call. |
void |
bind(NextInterceptor next,
LdapDN bindDn,
byte[] credentials,
java.util.List mechanisms,
java.lang.String saslAuthId)
Filters Partition#bind(org.apache.directory.shared.ldap.name.LdapDN,byte[],java.util.List,String) call. |
boolean |
compare(NextInterceptor next,
LdapDN name,
java.lang.String oid,
java.lang.Object value)
Filters PartitionNexus#compare(org.apache.directory.shared.ldap.name.LdapDN,String,Object) call. |
void |
delete(NextInterceptor next,
LdapDN name)
Filters Partition#delete(org.apache.directory.shared.ldap.name.LdapDN) call. |
void |
destroy()
This method does nothing by default. |
static javax.naming.ldap.LdapContext |
getContext()
Returns the current JNDI Context . |
LdapDN |
getMatchedName(NextInterceptor next,
LdapDN dn)
Filters PartitionNexus#getMatchedName(org.apache.directory.shared.ldap.name.LdapDN) call. |
static LdapPrincipal |
getPrincipal()
Returns LdapPrincipal of current context. |
javax.naming.directory.Attributes |
getRootDSE(NextInterceptor next)
Filters PartitionNexus.getRootDSE() call. |
LdapDN |
getSuffix(NextInterceptor next,
LdapDN dn)
Filters PartitionNexus#getSuffix(org.apache.directory.shared.ldap.name.LdapDN) call. |
boolean |
hasEntry(NextInterceptor next,
LdapDN name)
Filters Partition#lookup(org.apache.directory.shared.ldap.name.LdapDN,String[]) call. |
void |
init(DirectoryServiceConfiguration factoryCfg,
InterceptorConfiguration cfg)
This method does nothing by default. |
boolean |
isSuffix(NextInterceptor next,
LdapDN name)
Filters Partition#isSuffix(org.apache.directory.shared.ldap.name.LdapDN) call. |
javax.naming.NamingEnumeration |
list(NextInterceptor next,
LdapDN base)
Filters Partition#list(org.apache.directory.shared.ldap.name.LdapDN) call. |
java.util.Iterator |
listSuffixes(NextInterceptor next)
Filters PartitionNexus.listSuffixes() call. |
javax.naming.directory.Attributes |
lookup(NextInterceptor next,
LdapDN name)
Filters Partition#lookup(org.apache.directory.shared.ldap.name.LdapDN) call. |
javax.naming.directory.Attributes |
lookup(NextInterceptor next,
LdapDN dn,
java.lang.String[] attrIds)
Filters Partition#lookup(org.apache.directory.shared.ldap.name.LdapDN,String[]) call. |
void |
modify(NextInterceptor next,
LdapDN name,
int modOp,
javax.naming.directory.Attributes mods)
Filters Partition#modify(org.apache.directory.shared.ldap.name.LdapDN,int,javax.naming.directory.Attributes) call. |
void |
modify(NextInterceptor next,
LdapDN name,
javax.naming.directory.ModificationItem[] mods)
Filters Partition#modify(org.apache.directory.shared.ldap.name.LdapDN,javax.naming.directory.ModificationItem[]) call. |
void |
modifyRn(NextInterceptor next,
LdapDN name,
java.lang.String newRn,
boolean deleteOldRn)
Filters Partition#modifyRn(org.apache.directory.shared.ldap.name.LdapDN,String,boolean) call. |
void |
move(NextInterceptor next,
LdapDN oriChildName,
LdapDN newParentName)
Filters Partition#move(org.apache.directory.shared.ldap.name.LdapDN,org.apache.directory.shared.ldap.name.LdapDN) call. |
void |
move(NextInterceptor next,
LdapDN oriChildName,
LdapDN newParentName,
java.lang.String newRn,
boolean deleteOldRn)
Filters Partition#move(org.apache.directory.shared.ldap.name.LdapDN,org.apache.directory.shared.ldap.name.LdapDN,String,boolean) call. |
void |
removeContextPartition(NextInterceptor next,
LdapDN suffix)
Filters PartitionNexus#removeContextPartition(org.apache.directory.shared.ldap.name.LdapDN) call. |
javax.naming.NamingEnumeration |
search(NextInterceptor next,
LdapDN base,
java.util.Map env,
ExprNode filter,
javax.naming.directory.SearchControls searchCtls)
Filters Partition#search(org.apache.directory.shared.ldap.name.LdapDN,java.util.Map,org.apache.directory.shared.ldap.filter.ExprNode,javax.naming.directory.SearchControls) call. |
void |
unbind(NextInterceptor next,
LdapDN bindDn)
Filters Partition#unbind(org.apache.directory.shared.ldap.name.LdapDN) 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(DirectoryServiceConfiguration 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, LdapDN normName, javax.naming.directory.Attributes entry) throws javax.naming.NamingException
Interceptor
Partition#add(org.apache.directory.shared.ldap.name.LdapDN,javax.naming.directory.Attributes)
call.
add
in interface Interceptor
javax.naming.NamingException
public void delete(NextInterceptor next, LdapDN name) throws javax.naming.NamingException
Interceptor
Partition#delete(org.apache.directory.shared.ldap.name.LdapDN)
call.
delete
in interface Interceptor
javax.naming.NamingException
public LdapDN getMatchedName(NextInterceptor next, LdapDN dn) throws javax.naming.NamingException
Interceptor
PartitionNexus#getMatchedName(org.apache.directory.shared.ldap.name.LdapDN)
call.
getMatchedName
in interface Interceptor
javax.naming.NamingException
public javax.naming.directory.Attributes getRootDSE(NextInterceptor next) throws javax.naming.NamingException
Interceptor
PartitionNexus.getRootDSE()
call.
getRootDSE
in interface Interceptor
javax.naming.NamingException
public LdapDN getSuffix(NextInterceptor next, LdapDN dn) throws javax.naming.NamingException
Interceptor
PartitionNexus#getSuffix(org.apache.directory.shared.ldap.name.LdapDN)
call.
getSuffix
in interface Interceptor
javax.naming.NamingException
public boolean hasEntry(NextInterceptor next, LdapDN name) throws javax.naming.NamingException
Interceptor
Partition#lookup(org.apache.directory.shared.ldap.name.LdapDN,String[])
call.
hasEntry
in interface Interceptor
javax.naming.NamingException
public boolean isSuffix(NextInterceptor next, LdapDN name) throws javax.naming.NamingException
Interceptor
Partition#isSuffix(org.apache.directory.shared.ldap.name.LdapDN)
call.
isSuffix
in interface Interceptor
javax.naming.NamingException
public javax.naming.NamingEnumeration list(NextInterceptor next, LdapDN base) throws javax.naming.NamingException
Interceptor
Partition#list(org.apache.directory.shared.ldap.name.LdapDN)
call.
list
in interface Interceptor
javax.naming.NamingException
public java.util.Iterator listSuffixes(NextInterceptor next) throws javax.naming.NamingException
Interceptor
PartitionNexus.listSuffixes()
call.
listSuffixes
in interface Interceptor
javax.naming.NamingException
public javax.naming.directory.Attributes lookup(NextInterceptor next, LdapDN dn, java.lang.String[] attrIds) throws javax.naming.NamingException
Interceptor
Partition#lookup(org.apache.directory.shared.ldap.name.LdapDN,String[])
call.
lookup
in interface Interceptor
javax.naming.NamingException
public javax.naming.directory.Attributes lookup(NextInterceptor next, LdapDN name) throws javax.naming.NamingException
Interceptor
Partition#lookup(org.apache.directory.shared.ldap.name.LdapDN)
call.
lookup
in interface Interceptor
javax.naming.NamingException
public void modify(NextInterceptor next, LdapDN name, int modOp, javax.naming.directory.Attributes mods) throws javax.naming.NamingException
Interceptor
Partition#modify(org.apache.directory.shared.ldap.name.LdapDN,int,javax.naming.directory.Attributes)
call.
modify
in interface Interceptor
javax.naming.NamingException
public void modify(NextInterceptor next, LdapDN name, javax.naming.directory.ModificationItem[] mods) throws javax.naming.NamingException
Interceptor
Partition#modify(org.apache.directory.shared.ldap.name.LdapDN,javax.naming.directory.ModificationItem[])
call.
modify
in interface Interceptor
javax.naming.NamingException
public void modifyRn(NextInterceptor next, LdapDN name, java.lang.String newRn, boolean deleteOldRn) throws javax.naming.NamingException
Interceptor
Partition#modifyRn(org.apache.directory.shared.ldap.name.LdapDN,String,boolean)
call.
modifyRn
in interface Interceptor
javax.naming.NamingException
public void move(NextInterceptor next, LdapDN oriChildName, LdapDN newParentName, java.lang.String newRn, boolean deleteOldRn) throws javax.naming.NamingException
Interceptor
Partition#move(org.apache.directory.shared.ldap.name.LdapDN,org.apache.directory.shared.ldap.name.LdapDN,String,boolean)
call.
move
in interface Interceptor
javax.naming.NamingException
public void move(NextInterceptor next, LdapDN oriChildName, LdapDN newParentName) throws javax.naming.NamingException
Interceptor
Partition#move(org.apache.directory.shared.ldap.name.LdapDN,org.apache.directory.shared.ldap.name.LdapDN)
call.
move
in interface Interceptor
javax.naming.NamingException
public javax.naming.NamingEnumeration search(NextInterceptor next, LdapDN base, java.util.Map env, ExprNode filter, javax.naming.directory.SearchControls searchCtls) throws javax.naming.NamingException
Interceptor
Partition#search(org.apache.directory.shared.ldap.name.LdapDN,java.util.Map,org.apache.directory.shared.ldap.filter.ExprNode,javax.naming.directory.SearchControls)
call.
search
in interface Interceptor
javax.naming.NamingException
public void addContextPartition(NextInterceptor next, PartitionConfiguration cfg) throws javax.naming.NamingException
Interceptor
PartitionNexus.addContextPartition(PartitionConfiguration)
call.
addContextPartition
in interface Interceptor
javax.naming.NamingException
public void removeContextPartition(NextInterceptor next, LdapDN suffix) throws javax.naming.NamingException
Interceptor
PartitionNexus#removeContextPartition(org.apache.directory.shared.ldap.name.LdapDN)
call.
removeContextPartition
in interface Interceptor
javax.naming.NamingException
public boolean compare(NextInterceptor next, LdapDN name, java.lang.String oid, java.lang.Object value) throws javax.naming.NamingException
Interceptor
PartitionNexus#compare(org.apache.directory.shared.ldap.name.LdapDN,String,Object)
call.
compare
in interface Interceptor
javax.naming.NamingException
public void bind(NextInterceptor next, LdapDN bindDn, byte[] credentials, java.util.List mechanisms, java.lang.String saslAuthId) throws javax.naming.NamingException
Interceptor
Partition#bind(org.apache.directory.shared.ldap.name.LdapDN,byte[],java.util.List,String)
call.
bind
in interface Interceptor
javax.naming.NamingException
public void unbind(NextInterceptor next, LdapDN bindDn) throws javax.naming.NamingException
Interceptor
Partition#unbind(org.apache.directory.shared.ldap.name.LdapDN)
call.
unbind
in interface Interceptor
javax.naming.NamingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |