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, unbind
public OperationalAttributeInterceptor()
public void init(DirectoryService directoryService) throws Exception
BaseInterceptor
init
in interface Interceptor
init
in class BaseInterceptor
Exception
public void destroy()
BaseInterceptor
destroy
in interface Interceptor
destroy
in class BaseInterceptor
public void add(NextInterceptor nextInterceptor, AddOperationContext opContext) throws Exception
add
in interface Interceptor
add
in class BaseInterceptor
Exception
public void modify(NextInterceptor nextInterceptor, ModifyOperationContext opContext) throws Exception
Interceptor
Partition.modify( ModifyOperationContext )
call.modify
in interface Interceptor
modify
in class BaseInterceptor
Exception
public void rename(NextInterceptor nextInterceptor, RenameOperationContext opContext) throws Exception
Interceptor
Partition.rename( RenameOperationContext )
call.rename
in interface Interceptor
rename
in class BaseInterceptor
Exception
public void move(NextInterceptor nextInterceptor, MoveOperationContext opContext) throws Exception
Interceptor
Partition.move( MoveOperationContext )
call.move
in interface Interceptor
move
in class BaseInterceptor
Exception
public void moveAndRename(NextInterceptor nextInterceptor, MoveAndRenameOperationContext opContext) throws Exception
Interceptor
Partition.moveAndRename( MoveAndRenameOperationContext)
call.moveAndRename
in interface Interceptor
moveAndRename
in class BaseInterceptor
Exception
public ClonedServerEntry lookup(NextInterceptor nextInterceptor, LookupOperationContext opContext) throws Exception
Interceptor
Partition.lookup( LookupOperationContext )
call.lookup
in interface Interceptor
lookup
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 void denormalizeEntryOpAttrs(org.apache.directory.shared.ldap.entry.ServerEntry entry) throws Exception
Exception
public 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–2013 The Apache Software Foundation. All rights reserved.