org.apache.directory.server.core.interceptor.context
Class RenameOperationContext
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.RenameOperationContext
- All Implemented Interfaces:
- ChangeOperationContext, OperationContext
- Direct Known Subclasses:
- MoveAndRenameOperationContext
public class RenameOperationContext
- extends AbstractChangeOperationContext
A RenameService context used for Interceptors. It contains all the informations
needed for the modify DN operation, and used by all the interceptors
This is used whne the modifyDN is about changing the RDN, not the base DN.
- Version:
- $Rev$, $Date$
- Author:
- Apache Directory Project
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 |
RenameOperationContext
public RenameOperationContext(CoreSession session)
- Creates a new instance of RenameOperationContext.
RenameOperationContext
public RenameOperationContext(CoreSession session,
org.apache.directory.shared.ldap.name.LdapDN oldDn,
org.apache.directory.shared.ldap.name.Rdn newRdn,
boolean delOldDn)
- Creates a new instance of RenameOperationContext.
- Parameters:
oldDn
- the dn of the entry before the renamenewRdn
- the new RDN to use for the targetdelOldDn
- true if we delete the old RDN value
RenameOperationContext
public RenameOperationContext(CoreSession session,
org.apache.directory.shared.ldap.message.ModifyDnRequest modifyDnRequest)
getDelOldDn
public boolean getDelOldDn()
- Returns:
- The delete old DN flag
setDelOldDn
public void setDelOldDn(boolean delOldDn)
- Set the flag to delete the old DN
- Parameters:
delOldDn
- the flag to set
getNewDn
public org.apache.directory.shared.ldap.name.LdapDN getNewDn()
throws java.lang.Exception
- Returns:
- The new DN either computed if null or already computed
- Throws:
java.lang.Exception
getNewRdn
public org.apache.directory.shared.ldap.name.Rdn getNewRdn()
- Returns:
- The new RDN
setNewRdn
public void setNewRdn(org.apache.directory.shared.ldap.name.Rdn newRdn)
- Set the new RDN
- Parameters:
newRdn
- The new RDN
getName
public java.lang.String getName()
- Specified by:
getName
in interface OperationContext
- Specified by:
getName
in class AbstractOperationContext
- Returns:
- the operation name
getAlteredEntry
public ClonedServerEntry getAlteredEntry()
- Returns the entry after it has been renamed and potentially changed for
Rdn alterations.
- Returns:
- the new renamed entry
setAlteredEntry
public void setAlteredEntry(ClonedServerEntry alteredEntry)
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.