org.apache.directory.server.core.interceptor.context
Class AddOperationContext
java.lang.Object
org.apache.directory.server.core.interceptor.context.AbstractOperationContext
org.apache.directory.server.core.interceptor.context.AbstractChangeOperationContext
org.apache.directory.server.core.interceptor.context.AddOperationContext
- All Implemented Interfaces:
- ChangeOperationContext, OperationContext
public class AddOperationContext
- extends AbstractChangeOperationContext
A Add context used for Interceptors. It contains all the informations
needed for the add operation, and used by all the interceptors
- 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, setDn, setEntry, setNextOperation, setPreviousOperation, setRequestControls, setSession, throwReferral |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.directory.server.core.interceptor.context.OperationContext |
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, setByPassed, setDn, setEntry, throwReferral |
AddOperationContext
public AddOperationContext(CoreSession session)
- Creates a new instance of AddOperationContext.
- Parameters:
session
- the current Session
AddOperationContext
public AddOperationContext(CoreSession session,
org.apache.directory.shared.ldap.name.DN dn)
- Creates a new instance of AddOperationContext.
- Parameters:
session
- the current Sessiondn
- the name of the entry being added
AddOperationContext
public AddOperationContext(CoreSession session,
org.apache.directory.shared.ldap.entry.ServerEntry entry)
- Creates a new instance of AddOperationContext.
- Parameters:
session
- the current Sessionentry
- the entry being added
AddOperationContext
public AddOperationContext(CoreSession session,
org.apache.directory.shared.ldap.name.DN dn,
org.apache.directory.shared.ldap.entry.ServerEntry entry)
- Creates a new instance of ModifyOperationContext.
- Parameters:
session
- the current Sessiondn
- the name of the entry being addedentry
- the entry being added
AddOperationContext
public AddOperationContext(CoreSession session,
org.apache.directory.shared.ldap.message.internal.InternalAddRequest addRequest)
throws java.lang.Exception
- Throws:
java.lang.Exception
getName
public java.lang.String getName()
- Specified by:
getName
in interface OperationContext
- Specified by:
getName
in class AbstractOperationContext
- Returns:
- the operation name
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
- See Also:
Object.toString()
Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.