org.apache.directory.server.core.interceptor.context
Class AddContextPartitionOperationContext

java.lang.Object
  extended by org.apache.directory.server.core.interceptor.context.AbstractOperationContext
      extended by org.apache.directory.server.core.interceptor.context.EmptyOperationContext
          extended by org.apache.directory.server.core.interceptor.context.AddContextPartitionOperationContext
All Implemented Interfaces:
OperationContext

public class AddContextPartitionOperationContext
extends EmptyOperationContext

A AddContextPartition context used for Interceptors. It contains all the informations needed for the addContextPartition operation, and used by all the interceptors. If it does not have a partition set for it, then it will load and instantiate it automatically using the information in the partition configuration.

Version:
$Rev$, $Date$
Author:
Apache Directory Project

Field Summary
 
Fields inherited from class org.apache.directory.server.core.interceptor.context.AbstractOperationContext
authorizedPrincipal, byPassed, dn, EMPTY_CONTROLS, entry, next, previous, requestControls, responseControls, session
 
Constructor Summary
AddContextPartitionOperationContext(CoreSession session, Partition partition)
          Creates a new instance of AddContextPartitionOperationContext.
 
Method Summary
 java.lang.String getName()
           
 Partition getPartition()
           
 void setPartitionConfiguration(Partition partition)
          Set the partition.
 java.lang.String toString()
           
 
Methods inherited from class org.apache.directory.server.core.interceptor.context.EmptyOperationContext
setDn
 
Methods inherited from class org.apache.directory.server.core.interceptor.context.AbstractOperationContext
add, addRequestControl, addRequestControls, addResponseControl, delete, getByPassed, getDn, getEffectivePrincipal, getEntry, getFirstOperation, getLastOperation, getNextOperation, getPreviousOperation, getRequestControl, getResponseControl, getResponseControlCount, getResponseControls, getSession, hasBypass, hasEntry, hasRequestControl, hasRequestControls, hasResponseControl, hasResponseControls, isBypassed, isFirstOperation, lookup, lookup, modify, newLookupContext, setAuthorizedPrincipal, setByPassed, setEntry, setNextOperation, setPreviousOperation, setRequestControls, setSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AddContextPartitionOperationContext

public AddContextPartitionOperationContext(CoreSession session,
                                           Partition partition)
Creates a new instance of AddContextPartitionOperationContext.

Parameters:
partition - The partition to add
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class EmptyOperationContext
See Also:
Object.toString()

getPartition

public Partition getPartition()
Returns:
The partition

setPartitionConfiguration

public void setPartitionConfiguration(Partition partition)
Set the partition.

Parameters:
partition - the partition

getName

public java.lang.String getName()
Specified by:
getName in interface OperationContext
Specified by:
getName in class AbstractOperationContext
Returns:
the operation name


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