org.apache.ldap.server.operational
Class OperationalAttributeService

java.lang.Object
  extended byorg.apache.ldap.server.interceptor.BaseInterceptor
      extended byorg.apache.ldap.server.operational.OperationalAttributeService
All Implemented Interfaces:
Interceptor

public class OperationalAttributeService
extends BaseInterceptor

An Interceptor that adds or modifies the default attributes of entries. There are four default attributes for now; 'creatorsName', 'createTimestamp', 'modifiersName', and 'modifyTimestamp'.

Version:
$Rev: 264732 $, $Date: 2005-08-30 04:04:51 -0400 (Tue, 30 Aug 2005) $
Author:
Apache Directory Project

Constructor Summary
OperationalAttributeService()
          Creates the operational attribute management service interceptor.
 
Method Summary
 void add(NextInterceptor nextInterceptor, java.lang.String upName, javax.naming.Name normName, javax.naming.directory.Attributes entry)
          Adds extra operational attributes to the entry before it is added.
 void destroy()
          This method does nothing by default.
 void init(ContextFactoryConfiguration factoryCfg, InterceptorConfiguration cfg)
          This method does nothing by default.
 javax.naming.NamingEnumeration list(NextInterceptor nextInterceptor, javax.naming.Name base)
          Filters ContextPartition#list(Name) call.
 javax.naming.directory.Attributes lookup(NextInterceptor nextInterceptor, javax.naming.Name name)
          Filters ContextPartition#lookup(Name) call.
 javax.naming.directory.Attributes lookup(NextInterceptor nextInterceptor, javax.naming.Name name, java.lang.String[] attrIds)
          Filters ContextPartition#lookup(Name, String[]) call.
 void modify(NextInterceptor nextInterceptor, javax.naming.Name name, int modOp, javax.naming.directory.Attributes attrs)
          Filters ContextPartition#modify(Name, int, Attributes) call.
 void modify(NextInterceptor nextInterceptor, javax.naming.Name name, javax.naming.directory.ModificationItem[] items)
          Filters ContextPartition#modify(Name, ModificationItem[]) call.
 void modifyRn(NextInterceptor nextInterceptor, javax.naming.Name name, java.lang.String newRn, boolean deleteOldRn)
          Filters ContextPartition#modifyRn(Name, String, boolean) call.
 void move(NextInterceptor nextInterceptor, javax.naming.Name name, javax.naming.Name newParentName)
          Filters ContextPartition#move(Name, Name) call.
 void move(NextInterceptor nextInterceptor, javax.naming.Name name, javax.naming.Name newParentName, java.lang.String newRn, boolean deleteOldRn)
          Filters ContextPartition#move(Name, Name, String, boolean) call.
 javax.naming.NamingEnumeration search(NextInterceptor nextInterceptor, javax.naming.Name base, java.util.Map env, org.apache.ldap.common.filter.ExprNode filter, javax.naming.directory.SearchControls searchCtls)
          Filters ContextPartition#search(Name, Map, ExprNode, SearchControls) call.
 
Methods inherited from class org.apache.ldap.server.interceptor.BaseInterceptor
addContextPartition, delete, getContext, getMatchedName, getPrincipal, getRootDSE, getSuffix, hasEntry, isSuffix, listSuffixes, removeContextPartition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperationalAttributeService

public OperationalAttributeService()
Creates the operational attribute management service interceptor.

Method Detail

init

public void init(ContextFactoryConfiguration factoryCfg,
                 InterceptorConfiguration cfg)
          throws javax.naming.NamingException
Description copied from class: BaseInterceptor
This method does nothing by default.

Specified by:
init in interface Interceptor
Overrides:
init in class BaseInterceptor
Throws:
javax.naming.NamingException

destroy

public void destroy()
Description copied from class: BaseInterceptor
This method does nothing by default.

Specified by:
destroy in interface Interceptor
Overrides:
destroy in class BaseInterceptor

add

public void add(NextInterceptor nextInterceptor,
                java.lang.String upName,
                javax.naming.Name normName,
                javax.naming.directory.Attributes entry)
         throws javax.naming.NamingException
Adds extra operational attributes to the entry before it is added.

Specified by:
add in interface Interceptor
Overrides:
add in class BaseInterceptor
Throws:
javax.naming.NamingException

modify

public void modify(NextInterceptor nextInterceptor,
                   javax.naming.Name name,
                   int modOp,
                   javax.naming.directory.Attributes attrs)
            throws javax.naming.NamingException
Description copied from interface: Interceptor
Filters ContextPartition.modify(Name, int, Attributes) call.

Specified by:
modify in interface Interceptor
Overrides:
modify in class BaseInterceptor
Throws:
javax.naming.NamingException

modify

public void modify(NextInterceptor nextInterceptor,
                   javax.naming.Name name,
                   javax.naming.directory.ModificationItem[] items)
            throws javax.naming.NamingException
Description copied from interface: Interceptor
Filters ContextPartition.modify(Name, ModificationItem[]) call.

Specified by:
modify in interface Interceptor
Overrides:
modify in class BaseInterceptor
Throws:
javax.naming.NamingException

modifyRn

public void modifyRn(NextInterceptor nextInterceptor,
                     javax.naming.Name name,
                     java.lang.String newRn,
                     boolean deleteOldRn)
              throws javax.naming.NamingException
Description copied from interface: Interceptor
Filters ContextPartition.modifyRn(Name, String, boolean) call.

Specified by:
modifyRn in interface Interceptor
Overrides:
modifyRn in class BaseInterceptor
Throws:
javax.naming.NamingException

move

public void move(NextInterceptor nextInterceptor,
                 javax.naming.Name name,
                 javax.naming.Name newParentName)
          throws javax.naming.NamingException
Description copied from interface: Interceptor
Filters ContextPartition.move(Name, Name) call.

Specified by:
move in interface Interceptor
Overrides:
move in class BaseInterceptor
Throws:
javax.naming.NamingException

move

public void move(NextInterceptor nextInterceptor,
                 javax.naming.Name name,
                 javax.naming.Name newParentName,
                 java.lang.String newRn,
                 boolean deleteOldRn)
          throws javax.naming.NamingException
Description copied from interface: Interceptor
Filters ContextPartition.move(Name, Name, String, boolean) call.

Specified by:
move in interface Interceptor
Overrides:
move in class BaseInterceptor
Throws:
javax.naming.NamingException

lookup

public javax.naming.directory.Attributes lookup(NextInterceptor nextInterceptor,
                                                javax.naming.Name name)
                                         throws javax.naming.NamingException
Description copied from interface: Interceptor
Filters ContextPartition.lookup(Name) call.

Specified by:
lookup in interface Interceptor
Overrides:
lookup in class BaseInterceptor
Throws:
javax.naming.NamingException

lookup

public javax.naming.directory.Attributes lookup(NextInterceptor nextInterceptor,
                                                javax.naming.Name name,
                                                java.lang.String[] attrIds)
                                         throws javax.naming.NamingException
Description copied from interface: Interceptor
Filters ContextPartition.lookup(Name, String[]) call.

Specified by:
lookup in interface Interceptor
Overrides:
lookup in class BaseInterceptor
Throws:
javax.naming.NamingException

list

public javax.naming.NamingEnumeration list(NextInterceptor nextInterceptor,
                                           javax.naming.Name base)
                                    throws javax.naming.NamingException
Description copied from interface: Interceptor
Filters ContextPartition.list(Name) call.

Specified by:
list in interface Interceptor
Overrides:
list in class BaseInterceptor
Throws:
javax.naming.NamingException

search

public javax.naming.NamingEnumeration search(NextInterceptor nextInterceptor,
                                             javax.naming.Name base,
                                             java.util.Map env,
                                             org.apache.ldap.common.filter.ExprNode filter,
                                             javax.naming.directory.SearchControls searchCtls)
                                      throws javax.naming.NamingException
Description copied from interface: Interceptor
Filters ContextPartition.search(Name, Map, ExprNode, SearchControls) call.

Specified by:
search in interface Interceptor
Overrides:
search in class BaseInterceptor
Throws:
javax.naming.NamingException


Copyright © 2002-2005 . All Rights Reserved.