org.apache.directory.server.core.interceptor.context
Class MoveAndRenameOperationContext
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
org.apache.directory.server.core.interceptor.context.MoveAndRenameOperationContext
- All Implemented Interfaces:
- ChangeOperationContext, OperationContext
public class MoveAndRenameOperationContext
- extends RenameOperationContext
A Move And Rename 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
| Fields inherited from class org.apache.directory.server.core.interceptor.context.AbstractOperationContext |
authorizedPrincipal, byPassed, dn, EMPTY_CONTROLS, entry, next, previous, requestControls, responseControls, session, throwReferral |
|
Method Summary |
org.apache.directory.shared.ldap.name.DN |
getNewDn()
Gets cached copy of already computed new name or creates it if not |
org.apache.directory.shared.ldap.name.DN |
getParent()
|
void |
setParent(org.apache.directory.shared.ldap.name.DN parent)
Set the parent DN |
java.lang.String |
toString()
|
| 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 |
MoveAndRenameOperationContext
public MoveAndRenameOperationContext(CoreSession session)
- Creates a new instance of MoveAndRenameOperationContext.
MoveAndRenameOperationContext
public MoveAndRenameOperationContext(CoreSession session,
org.apache.directory.shared.ldap.name.DN oldDn,
org.apache.directory.shared.ldap.name.DN parent,
org.apache.directory.shared.ldap.name.RDN newRdn,
boolean delOldRdn)
- Creates a new instance of MoveAndRenameOperationContext.
- Parameters:
oldDn - the original source entry DN to be moved and renamedparent - the new entry superior of the target after the movenewRdn - the new rdn to use for the target once renameddelOldRdn - true if the old rdn value is deleted, false otherwise
MoveAndRenameOperationContext
public MoveAndRenameOperationContext(CoreSession session,
org.apache.directory.shared.ldap.message.internal.InternalModifyDnRequest modifyDnRequest)
getParent
public org.apache.directory.shared.ldap.name.DN getParent()
- Returns:
- The parent DN
setParent
public void setParent(org.apache.directory.shared.ldap.name.DN parent)
- Set the parent DN
- Parameters:
parent - The parent
getNewDn
public org.apache.directory.shared.ldap.name.DN getNewDn()
throws java.lang.Exception
- Gets cached copy of already computed new name or creates it if not
- Overrides:
getNewDn in class RenameOperationContext
- Returns:
- the normalized new name after move and rename
- Throws:
java.lang.Exception - if the name cannot be normalized
toString
public java.lang.String toString()
- Overrides:
toString in class RenameOperationContext
- See Also:
Object.toString()
Copyright © 2003-2010 The Apache Software Foundation. All Rights Reserved.