public class RenameOperationContext extends AbstractChangeOperationContext
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.directory.api.ldap.model.name.Dn |
newDn
Cached copy of the new Dn
|
protected org.apache.directory.api.ldap.model.name.Rdn |
newRdn
The new Rdn
|
logChange, modifiedEntryauthorizedPrincipal, byPassed, currentInterceptor, dn, EMPTY_CONTROLS, entry, interceptors, originalEntry, requestControls, responseControls, session, throwReferral| Constructor and Description |
|---|
RenameOperationContext(CoreSession session)
Creates a new instance of RenameOperationContext.
|
RenameOperationContext(CoreSession session,
org.apache.directory.api.ldap.model.name.Dn oldDn,
org.apache.directory.api.ldap.model.name.Rdn newRdn,
boolean deleteOldRdn)
Creates a new instance of RenameOperationContext.
|
RenameOperationContext(CoreSession session,
org.apache.directory.api.ldap.model.message.ModifyDnRequest modifyDnRequest) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getDeleteOldRdn() |
String |
getName() |
org.apache.directory.api.ldap.model.name.Dn |
getNewDn() |
org.apache.directory.api.ldap.model.name.Rdn |
getNewRdn() |
void |
setDelOldDn(boolean deleteOldRdn)
Set the flag to delete the old Rdn
|
void |
setNewDn(org.apache.directory.api.ldap.model.name.Dn newDn)
Set the new Dn
|
void |
setNewRdn(org.apache.directory.api.ldap.model.name.Rdn newRdn)
Set the new Rdn
|
String |
toString() |
getChangeLogEvent, getModifiedEntry, getRid, isGenerateNoReplEvt, isLogChange, isPushToEvtInterceptor, isReplEvent, setChangeLogEvent, setGenerateNoReplEvt, setLogChange, setModifiedEntry, setPushToEvtInterceptor, setReplEvent, setRidaddRequestControl, addRequestControls, addResponseControl, delete, getCurrentInterceptor, getDn, getEffectivePrincipal, getEntry, getNextInterceptor, getOriginalEntry, getRequestControl, getResponseControl, getResponseControlCount, getResponseControls, getSession, hasRequestControl, hasRequestControls, hasResponseControl, hasResponseControls, ignoreReferral, isReferralIgnored, isReferralThrown, lookup, newLookupContext, setAuthorizedPrincipal, setCurrentInterceptor, setDn, setEntry, setInterceptors, setOriginalEntry, setRequestControls, setSession, throwReferralclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddRequestControl, addRequestControls, addResponseControl, delete, getCurrentInterceptor, getDn, getEffectivePrincipal, getEntry, getNextInterceptor, getRequestControl, getResponseControl, getResponseControlCount, getResponseControls, getSession, hasRequestControl, hasRequestControls, hasResponseControl, hasResponseControls, ignoreReferral, isReferralIgnored, isReferralThrown, lookup, newLookupContext, setCurrentInterceptor, setDn, setEntry, setInterceptors, throwReferralprotected org.apache.directory.api.ldap.model.name.Rdn newRdn
protected org.apache.directory.api.ldap.model.name.Dn newDn
public RenameOperationContext(CoreSession session)
public RenameOperationContext(CoreSession session, org.apache.directory.api.ldap.model.name.Dn oldDn, org.apache.directory.api.ldap.model.name.Rdn newRdn, boolean deleteOldRdn)
oldDn - the dn of the entry before the renamenewRdn - the new Rdn to use for the targetdelOldDn - true if we delete the old Rdn valuepublic RenameOperationContext(CoreSession session, org.apache.directory.api.ldap.model.message.ModifyDnRequest modifyDnRequest)
public boolean getDeleteOldRdn()
public void setDelOldDn(boolean deleteOldRdn)
deleteOldRdn - the flag to setpublic org.apache.directory.api.ldap.model.name.Dn getNewDn()
public org.apache.directory.api.ldap.model.name.Rdn getNewRdn()
public void setNewRdn(org.apache.directory.api.ldap.model.name.Rdn newRdn)
newRdn - The new Rdnpublic void setNewDn(org.apache.directory.api.ldap.model.name.Dn newDn)
newDn - The new Dnpublic String getName()
getName in interface OperationContextgetName in class AbstractOperationContextpublic String toString()
toString in class ObjectObject.toString()Copyright © 2021. All rights reserved.