public class OperationalAttributeInterceptor extends BaseInterceptor
Interceptor that adds or modifies the default attributes
of entries. There are four default attributes for now;
'creatorsName', 'createTimestamp', 'modifiersName',
and 'modifyTimestamp'.| Constructor and Description |
|---|
OperationalAttributeInterceptor()
Creates the operational attribute management service interceptor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(NextInterceptor nextInterceptor,
AddOperationContext opContext)
Adds extra operational attributes to the entry before it is added.
|
void |
denormalizeEntryOpAttrs(org.apache.directory.shared.ldap.entry.ServerEntry entry) |
org.apache.directory.shared.ldap.name.DN |
denormalizeTypes(org.apache.directory.shared.ldap.name.DN dn)
Does not create a new DN but alters existing DN by using the first
short name for an attributeType definition.
|
void |
destroy()
This method does nothing by default.
|
void |
init(DirectoryService directoryService)
This method does nothing by default.
|
EntryFilteringCursor |
list(NextInterceptor nextInterceptor,
ListOperationContext opContext)
Filters
Partition.list( ListOperationContext ) call. |
ClonedServerEntry |
lookup(NextInterceptor nextInterceptor,
LookupOperationContext opContext)
Filters
Partition.lookup( LookupOperationContext ) call. |
void |
modify(NextInterceptor nextInterceptor,
ModifyOperationContext opContext)
Filters
Partition.modify( ModifyOperationContext ) call. |
void |
move(NextInterceptor nextInterceptor,
MoveOperationContext opContext)
Filters
Partition.move( MoveOperationContext ) call. |
void |
moveAndRename(NextInterceptor nextInterceptor,
MoveAndRenameOperationContext opContext)
Filters
Partition.moveAndRename( MoveAndRenameOperationContext) call. |
void |
rename(NextInterceptor nextInterceptor,
RenameOperationContext opContext)
Filters
Partition.rename( RenameOperationContext ) call. |
EntryFilteringCursor |
search(NextInterceptor nextInterceptor,
SearchOperationContext opContext)
Filters
Partition.search( SearchOperationContext ) call. |
addContextPartition, bind, compare, delete, getContext, getMatchedName, getName, getPrincipal, getRootDSE, getSuffix, hasEntry, listSuffixes, removeContextPartition, unbindpublic OperationalAttributeInterceptor()
public void init(DirectoryService directoryService) throws Exception
BaseInterceptorinit in interface Interceptorinit in class BaseInterceptorExceptionpublic void destroy()
BaseInterceptordestroy in interface Interceptordestroy in class BaseInterceptorpublic void add(NextInterceptor nextInterceptor, AddOperationContext opContext) throws Exception
add in interface Interceptoradd in class BaseInterceptorExceptionpublic void modify(NextInterceptor nextInterceptor, ModifyOperationContext opContext) throws Exception
InterceptorPartition.modify( ModifyOperationContext ) call.modify in interface Interceptormodify in class BaseInterceptorExceptionpublic void rename(NextInterceptor nextInterceptor, RenameOperationContext opContext) throws Exception
InterceptorPartition.rename( RenameOperationContext ) call.rename in interface Interceptorrename in class BaseInterceptorExceptionpublic void move(NextInterceptor nextInterceptor, MoveOperationContext opContext) throws Exception
InterceptorPartition.move( MoveOperationContext ) call.move in interface Interceptormove in class BaseInterceptorExceptionpublic void moveAndRename(NextInterceptor nextInterceptor, MoveAndRenameOperationContext opContext) throws Exception
InterceptorPartition.moveAndRename( MoveAndRenameOperationContext) call.moveAndRename in interface InterceptormoveAndRename in class BaseInterceptorExceptionpublic ClonedServerEntry lookup(NextInterceptor nextInterceptor, LookupOperationContext opContext) throws Exception
InterceptorPartition.lookup( LookupOperationContext ) call.lookup in interface Interceptorlookup in class BaseInterceptorExceptionpublic EntryFilteringCursor list(NextInterceptor nextInterceptor, ListOperationContext opContext) throws Exception
InterceptorPartition.list( ListOperationContext ) call.list in interface Interceptorlist in class BaseInterceptorExceptionpublic EntryFilteringCursor search(NextInterceptor nextInterceptor, SearchOperationContext opContext) throws Exception
InterceptorPartition.search( SearchOperationContext ) call.search in interface Interceptorsearch in class BaseInterceptorExceptionpublic void denormalizeEntryOpAttrs(org.apache.directory.shared.ldap.entry.ServerEntry entry)
throws Exception
Exceptionpublic org.apache.directory.shared.ldap.name.DN denormalizeTypes(org.apache.directory.shared.ldap.name.DN dn)
throws Exception
dn - the normalized distinguished nameException - if there are problems denormalizingCopyright © 2003-2012 Apache Software Foundation. All Rights Reserved.