public class SubentryInterceptor extends BaseInterceptor
Modifier and Type | Class and Description |
---|---|
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.
|
Modifier and Type | Field and Description |
---|---|
static String |
AC_AREA |
static String |
AC_INNERAREA |
static String |
COLLECTIVE_AREA |
static String |
COLLECTIVE_INNERAREA |
static String |
SCHEMA_AREA |
static String[] |
SUBENTRY_OPATTRS |
static String |
TRIGGER_AREA |
static String |
TRIGGER_INNERAREA |
Constructor and Description |
---|
SubentryInterceptor() |
Modifier and Type | Method and Description |
---|---|
void |
add(NextInterceptor next,
AddOperationContext addContext)
Filters
Partition.add( AddOperationContext ) call. |
void |
delete(NextInterceptor next,
DeleteOperationContext opContext)
Filters
Partition.delete( DeleteOperationContext ) call. |
List<org.apache.directory.shared.ldap.entry.Modification> |
getOperationalModsForAdd(org.apache.directory.shared.ldap.entry.ServerEntry entry,
org.apache.directory.shared.ldap.entry.ServerEntry operational)
Calculates the subentry operational attributes to add or replace from
a candidate entry selected by a subtree specification.
|
org.apache.directory.shared.ldap.entry.ServerEntry |
getSubentryAttributes(org.apache.directory.shared.ldap.name.DN dn,
org.apache.directory.shared.ldap.entry.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. |
addContextPartition, bind, compare, destroy, getContext, getMatchedName, getName, getPrincipal, getRootDSE, getSuffix, hasEntry, listSuffixes, lookup, removeContextPartition, unbind
public static final String AC_AREA
public static final String AC_INNERAREA
public static final String SCHEMA_AREA
public static final String COLLECTIVE_AREA
public static final String COLLECTIVE_INNERAREA
public static final String TRIGGER_AREA
public static final String TRIGGER_INNERAREA
public static final String[] SUBENTRY_OPATTRS
public void init(DirectoryService directoryService) throws Exception
BaseInterceptor
init
in interface Interceptor
init
in class BaseInterceptor
Exception
public EntryFilteringCursor list(NextInterceptor nextInterceptor, ListOperationContext opContext) throws Exception
Interceptor
Partition.list( ListOperationContext )
call.list
in interface Interceptor
list
in class BaseInterceptor
Exception
public EntryFilteringCursor search(NextInterceptor nextInterceptor, SearchOperationContext opContext) throws Exception
Interceptor
Partition.search( SearchOperationContext )
call.search
in interface Interceptor
search
in class BaseInterceptor
Exception
public org.apache.directory.shared.ldap.entry.ServerEntry getSubentryAttributes(org.apache.directory.shared.ldap.name.DN dn, org.apache.directory.shared.ldap.entry.ServerEntry entryAttrs) throws Exception
dn
- the normalized distinguished name of the entryentryAttrs
- the entry attributes are generated forException
- if there are problems accessing entry informationpublic void add(NextInterceptor next, AddOperationContext addContext) throws Exception
Interceptor
Partition.add( AddOperationContext )
call.add
in interface Interceptor
add
in class BaseInterceptor
Exception
public void delete(NextInterceptor next, DeleteOperationContext opContext) throws Exception
Interceptor
Partition.delete( DeleteOperationContext )
call.delete
in interface Interceptor
delete
in class BaseInterceptor
Exception
public void rename(NextInterceptor next, RenameOperationContext opContext) throws Exception
Interceptor
Partition.rename( RenameOperationContext )
call.rename
in interface Interceptor
rename
in class BaseInterceptor
Exception
public void moveAndRename(NextInterceptor next, MoveAndRenameOperationContext opContext) throws Exception
Interceptor
Partition.moveAndRename( MoveAndRenameOperationContext)
call.moveAndRename
in interface Interceptor
moveAndRename
in class BaseInterceptor
Exception
public void move(NextInterceptor next, MoveOperationContext opContext) throws Exception
Interceptor
Partition.move( MoveOperationContext )
call.move
in interface Interceptor
move
in class BaseInterceptor
Exception
public void modify(NextInterceptor next, ModifyOperationContext opContext) throws Exception
Interceptor
Partition.modify( ModifyOperationContext )
call.modify
in interface Interceptor
modify
in class BaseInterceptor
Exception
public List<org.apache.directory.shared.ldap.entry.Modification> getOperationalModsForAdd(org.apache.directory.shared.ldap.entry.ServerEntry entry, org.apache.directory.shared.ldap.entry.ServerEntry operational) throws Exception
entry
- the entry being modifiedoperational
- the set of operational attributes supported by the AP
of the subentryException
- if there are probelms accessing modification itemsCopyright © 2003-2012 Apache Software Foundation. All Rights Reserved.