|
||||||||||
| 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.subtree.SubentryInterceptor
public class SubentryInterceptor
The Subentry interceptor service which is responsible for filtering out subentries on search operations and injecting operational attributes
| Nested Class Summary | |
|---|---|
class |
SubentryInterceptor.HideEntriesFilter
SearchResultFilter used to filter out normal entries but shows subentries based on objectClass values. |
class |
SubentryInterceptor.HideSubentriesFilter
SearchResultFilter used to filter out subentries based on objectClass values. |
| Field Summary | |
|---|---|
static java.lang.String |
AC_AREA
|
static java.lang.String |
AC_INNERAREA
|
static java.lang.String |
COLLECTIVE_AREA
|
static java.lang.String |
COLLECTIVE_INNERAREA
|
static java.lang.String |
SCHEMA_AREA
|
static java.lang.String[] |
SUBENTRY_OPATTRS
|
static java.lang.String |
TRIGGER_AREA
|
static java.lang.String |
TRIGGER_INNERAREA
|
| Constructor Summary | |
|---|---|
SubentryInterceptor()
|
|
| Method Summary | |
|---|---|
void |
add(NextInterceptor next,
AddOperationContext addContext)
Filters Partition.add( AddOperationContext ) call. |
void |
delete(NextInterceptor next,
DeleteOperationContext opContext)
Filters Partition.delete( DeleteOperationContext ) call. |
java.util.List<org.apache.directory.shared.ldap.entry.Modification> |
getOperationalModsForAdd(ServerEntry entry,
ServerEntry operational)
Calculates the subentry operational attributes to add or replace from a candidate entry selected by a subtree specification. |
ServerEntry |
getSubentryAttributes(org.apache.directory.shared.ldap.name.LdapDN dn,
ServerEntry entryAttrs)
Evaluates the set of subentry subtrees upon an entry and returns the operational subentry attributes that will be added to the entry if added at the dn specified. |
void |
init(DirectoryService directoryService)
This method does nothing by default. |
EntryFilteringCursor |
list(NextInterceptor nextInterceptor,
ListOperationContext opContext)
Filters Partition.list( ListOperationContext ) call. |
void |
modify(NextInterceptor next,
ModifyOperationContext opContext)
Filters Partition.modify( ModifyOperationContext ) call. |
void |
move(NextInterceptor next,
MoveOperationContext opContext)
Filters Partition.move( MoveOperationContext ) call. |
void |
moveAndRename(NextInterceptor next,
MoveAndRenameOperationContext opContext)
Filters Partition.moveAndRename( MoveAndRenameOperationContext) call. |
void |
rename(NextInterceptor next,
RenameOperationContext opContext)
Filters Partition.rename( RenameOperationContext ) call. |
EntryFilteringCursor |
search(NextInterceptor nextInterceptor,
SearchOperationContext opContext)
Filters Partition.search( SearchOperationContext ) call. |
| Methods inherited from class org.apache.directory.server.core.interceptor.BaseInterceptor |
|---|
addContextPartition, bind, compare, destroy, getContext, getMatchedName, getName, getPrincipal, getRootDSE, getSuffix, hasEntry, listSuffixes, lookup, removeContextPartition, unbind |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String AC_AREA
public static final java.lang.String AC_INNERAREA
public static final java.lang.String SCHEMA_AREA
public static final java.lang.String COLLECTIVE_AREA
public static final java.lang.String COLLECTIVE_INNERAREA
public static final java.lang.String TRIGGER_AREA
public static final java.lang.String TRIGGER_INNERAREA
public static final java.lang.String[] SUBENTRY_OPATTRS
| Constructor Detail |
|---|
public SubentryInterceptor()
| Method Detail |
|---|
public void init(DirectoryService directoryService)
throws java.lang.Exception
BaseInterceptor
init in interface Interceptorinit in class BaseInterceptorjava.lang.Exception
public EntryFilteringCursor list(NextInterceptor nextInterceptor,
ListOperationContext opContext)
throws java.lang.Exception
InterceptorPartition.list( ListOperationContext ) call.
list in interface Interceptorlist in class BaseInterceptorjava.lang.Exception
public EntryFilteringCursor search(NextInterceptor nextInterceptor,
SearchOperationContext opContext)
throws java.lang.Exception
InterceptorPartition.search( SearchOperationContext ) call.
search in interface Interceptorsearch in class BaseInterceptorjava.lang.Exception
public ServerEntry getSubentryAttributes(org.apache.directory.shared.ldap.name.LdapDN dn,
ServerEntry entryAttrs)
throws java.lang.Exception
dn - the normalized distinguished name of the entryentryAttrs - the entry attributes are generated for
java.lang.Exception - if there are problems accessing entry information
public void add(NextInterceptor next,
AddOperationContext addContext)
throws java.lang.Exception
InterceptorPartition.add( AddOperationContext ) call.
add in interface Interceptoradd in class BaseInterceptorjava.lang.Exception
public void delete(NextInterceptor next,
DeleteOperationContext opContext)
throws java.lang.Exception
InterceptorPartition.delete( DeleteOperationContext ) call.
delete in interface Interceptordelete in class BaseInterceptorjava.lang.Exception
public void rename(NextInterceptor next,
RenameOperationContext opContext)
throws java.lang.Exception
InterceptorPartition.rename( RenameOperationContext ) call.
rename in interface Interceptorrename in class BaseInterceptorjava.lang.Exception
public void moveAndRename(NextInterceptor next,
MoveAndRenameOperationContext opContext)
throws java.lang.Exception
InterceptorPartition.moveAndRename( MoveAndRenameOperationContext) call.
moveAndRename in interface InterceptormoveAndRename in class BaseInterceptorjava.lang.Exception
public void move(NextInterceptor next,
MoveOperationContext opContext)
throws java.lang.Exception
InterceptorPartition.move( MoveOperationContext ) call.
move in interface Interceptormove in class BaseInterceptorjava.lang.Exception
public void modify(NextInterceptor next,
ModifyOperationContext opContext)
throws java.lang.Exception
InterceptorPartition.modify( ModifyOperationContext ) call.
modify in interface Interceptormodify in class BaseInterceptorjava.lang.Exception
public java.util.List<org.apache.directory.shared.ldap.entry.Modification> getOperationalModsForAdd(ServerEntry entry,
ServerEntry operational)
throws java.lang.Exception
entry - the entry being modifiedoperational - the set of operational attributes supported by the AP
of the subentry
java.lang.Exception - if there are probelms accessing modification items
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||