org.apache.directory.server.core.trigger
Class TriggerInterceptor

java.lang.Object
  extended by org.apache.directory.server.core.interceptor.BaseInterceptor
      extended by org.apache.directory.server.core.trigger.TriggerInterceptor
All Implemented Interfaces:
Interceptor

public class TriggerInterceptor
extends BaseInterceptor

The Trigger Service based on the Trigger Specification.

Version:
$Rev:$
Author:
Apache Directory Project
'XBean'

Constructor Summary
TriggerInterceptor()
           
 
Method Summary
 void add(NextInterceptor next, AddOperationContext addContext)
          Filters Partition.add( AddOperationContext ) call.
 void delete(NextInterceptor next, DeleteOperationContext deleteContext)
          Filters Partition.delete( DeleteOperationContext ) call.
 java.util.Map<org.apache.directory.shared.ldap.trigger.ActionTime,java.util.List<org.apache.directory.shared.ldap.trigger.TriggerSpecification>> getActionTimeMappedTriggerSpecsForOperation(java.util.List<org.apache.directory.shared.ldap.trigger.TriggerSpecification> triggerSpecs, org.apache.directory.shared.ldap.trigger.LdapOperation ldapOperation)
          Return a selection of trigger specifications for a certain type of trigger action time.
 void init(DirectoryService directoryService)
          This method does nothing by default.
 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 renameContext)
          Filters Partition.rename( RenameOperationContext ) call.
 
Methods inherited from class org.apache.directory.server.core.interceptor.BaseInterceptor
addContextPartition, bind, compare, destroy, getContext, getMatchedName, getName, getPrincipal, getRootDSE, getSuffix, hasEntry, list, listSuffixes, lookup, removeContextPartition, search, unbind
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TriggerInterceptor

public TriggerInterceptor()
Method Detail

getActionTimeMappedTriggerSpecsForOperation

public java.util.Map<org.apache.directory.shared.ldap.trigger.ActionTime,java.util.List<org.apache.directory.shared.ldap.trigger.TriggerSpecification>> getActionTimeMappedTriggerSpecsForOperation(java.util.List<org.apache.directory.shared.ldap.trigger.TriggerSpecification> triggerSpecs,
                                                                                                                                                                                                    org.apache.directory.shared.ldap.trigger.LdapOperation ldapOperation)
Return a selection of trigger specifications for a certain type of trigger action time.

Parameters:
triggerSpecs - the trigger specifications
ldapOperation - the ldap operation being performed
Returns:
the set of trigger specs for a trigger action
'NOTE'
This method serves as an extion point for new Action Time types.

init

public void init(DirectoryService directoryService)
          throws java.lang.Exception
Description copied from class: BaseInterceptor
This method does nothing by default.

Specified by:
init in interface Interceptor
Overrides:
init in class BaseInterceptor
Throws:
java.lang.Exception

add

public void add(NextInterceptor next,
                AddOperationContext addContext)
         throws java.lang.Exception
Description copied from interface: Interceptor
Filters Partition.add( AddOperationContext ) call.

Specified by:
add in interface Interceptor
Overrides:
add in class BaseInterceptor
Throws:
java.lang.Exception

delete

public void delete(NextInterceptor next,
                   DeleteOperationContext deleteContext)
            throws java.lang.Exception
Description copied from interface: Interceptor
Filters Partition.delete( DeleteOperationContext ) call.

Specified by:
delete in interface Interceptor
Overrides:
delete in class BaseInterceptor
Throws:
java.lang.Exception

modify

public void modify(NextInterceptor next,
                   ModifyOperationContext opContext)
            throws java.lang.Exception
Description copied from interface: Interceptor
Filters Partition.modify( ModifyOperationContext ) call.

Specified by:
modify in interface Interceptor
Overrides:
modify in class BaseInterceptor
Throws:
java.lang.Exception

rename

public void rename(NextInterceptor next,
                   RenameOperationContext renameContext)
            throws java.lang.Exception
Description copied from interface: Interceptor
Filters Partition.rename( RenameOperationContext ) call.

Specified by:
rename in interface Interceptor
Overrides:
rename in class BaseInterceptor
Throws:
java.lang.Exception

moveAndRename

public void moveAndRename(NextInterceptor next,
                          MoveAndRenameOperationContext opContext)
                   throws java.lang.Exception
Description copied from interface: Interceptor
Filters Partition.moveAndRename( MoveAndRenameOperationContext) call.

Specified by:
moveAndRename in interface Interceptor
Overrides:
moveAndRename in class BaseInterceptor
Throws:
java.lang.Exception

move

public void move(NextInterceptor next,
                 MoveOperationContext opContext)
          throws java.lang.Exception
Description copied from interface: Interceptor
Filters Partition.move( MoveOperationContext ) call.

Specified by:
move in interface Interceptor
Overrides:
move in class BaseInterceptor
Throws:
java.lang.Exception


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.