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

java.lang.Object
  extended by org.apache.directory.server.core.interceptor.context.AbstractOperationContext
      extended by org.apache.directory.server.core.interceptor.context.AbstractChangeOperationContext
          extended by org.apache.directory.server.core.interceptor.context.MoveOperationContext
All Implemented Interfaces:
ChangeOperationContext, OperationContext

public class MoveOperationContext
extends AbstractChangeOperationContext

A Move context used for Interceptors. It contains all the informations needed for the modify DN operation, and used by all the interceptors

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
MoveOperationContext(CoreSession session)
          Creates a new instance of MoveOperationContext.
MoveOperationContext(CoreSession session, org.apache.directory.shared.ldap.name.LdapDN oldDn, org.apache.directory.shared.ldap.name.LdapDN parent)
          Creates a new instance of MoveOperationContext.
MoveOperationContext(CoreSession session, org.apache.directory.shared.ldap.message.ModifyDnRequest modifyDnRequest)
           
 
Method Summary
 java.lang.String getName()
           
 org.apache.directory.shared.ldap.name.LdapDN getParent()
           
 void setParent(org.apache.directory.shared.ldap.name.LdapDN parent)
          Set the parent DN
 java.lang.String toString()
           
 
Methods inherited from class org.apache.directory.server.core.interceptor.context.AbstractChangeOperationContext
getChangeLogEvent, setChangeLogEvent
 
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, setDn, setEntry, setNextOperation, setPreviousOperation, setRequestControls, setSession
 
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, isBypassed, isFirstOperation, lookup, lookup, modify, newLookupContext, setByPassed, setDn, setEntry
 

Constructor Detail

MoveOperationContext

public MoveOperationContext(CoreSession session)
Creates a new instance of MoveOperationContext.


MoveOperationContext

public MoveOperationContext(CoreSession session,
                            org.apache.directory.shared.ldap.name.LdapDN oldDn,
                            org.apache.directory.shared.ldap.name.LdapDN parent)
Creates a new instance of MoveOperationContext.


MoveOperationContext

public MoveOperationContext(CoreSession session,
                            org.apache.directory.shared.ldap.message.ModifyDnRequest modifyDnRequest)
Method Detail

getParent

public org.apache.directory.shared.ldap.name.LdapDN getParent()
Returns:
The parent DN

setParent

public void setParent(org.apache.directory.shared.ldap.name.LdapDN parent)
Set the parent DN

Parameters:
parent - The parent

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-2009 Apache Software Foundation. All Rights Reserved.