org.apache.directory.server.core.interceptor.context
Class AddContextPartitionOperationContext
java.lang.Object
org.apache.directory.server.core.interceptor.context.AbstractOperationContext
org.apache.directory.server.core.interceptor.context.EmptyOperationContext
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
Fields inherited from class org.apache.directory.server.core.interceptor.context.AbstractOperationContext |
authorizedPrincipal, byPassed, dn, EMPTY_CONTROLS, entry, next, previous, requestControls, responseControls, session, throwReferral |
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, ignoreReferral, isBypassed, isFirstOperation, isReferralIgnored, isReferralThrown, lookup, lookup, modify, newLookupContext, setAuthorizedPrincipal, setByPassed, setEntry, setNextOperation, setPreviousOperation, setRequestControls, setSession, throwReferral |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AddContextPartitionOperationContext
public AddContextPartitionOperationContext(CoreSession session,
Partition partition)
- Creates a new instance of AddContextPartitionOperationContext.
- Parameters:
partition
- The partition to add
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-2011 Apache Software Foundation. All Rights Reserved.