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, modifiedEntry
authorizedPrincipal, byPassed, currentInterceptor, dn, EMPTY_CONTROLS, entry, interceptors, originalEntry, partition, requestControls, responseControls, session, throwReferral, transaction
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)
Creates a new instance of RenameOperationContext
|
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, setRid
addRequestControl, addRequestControls, addResponseControl, delete, getCurrentInterceptor, getDn, getEffectivePrincipal, getEntry, getNextInterceptor, getOriginalEntry, getPartition, getRequestControl, getResponseControl, getResponseControlCount, getResponseControls, getSession, getTransaction, hasRequestControl, hasRequestControls, hasResponseControl, hasResponseControls, ignoreReferral, isReferralIgnored, isReferralThrown, lookup, newLookupContext, setAuthorizedPrincipal, setCurrentInterceptor, setDn, setEntry, setInterceptors, setOriginalEntry, setPartition, setRequestControls, setSession, setTransaction, throwReferral
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addRequestControl, addRequestControls, addResponseControl, delete, getCurrentInterceptor, getDn, getEffectivePrincipal, getEntry, getNextInterceptor, getPartition, getRequestControl, getResponseControl, getResponseControlCount, getResponseControls, getSession, getTransaction, hasRequestControl, hasRequestControls, hasResponseControl, hasResponseControls, ignoreReferral, isReferralIgnored, isReferralThrown, lookup, newLookupContext, setCurrentInterceptor, setDn, setEntry, setInterceptors, setPartition, setTransaction, throwReferral
protected org.apache.directory.api.ldap.model.name.Rdn newRdn
protected org.apache.directory.api.ldap.model.name.Dn newDn
public RenameOperationContext(CoreSession session)
session
- The session to usepublic RenameOperationContext(CoreSession session, org.apache.directory.api.ldap.model.name.Dn oldDn, org.apache.directory.api.ldap.model.name.Rdn newRdn, boolean deleteOldRdn)
session
- The session to useoldDn
- the dn of the entry before the renamenewRdn
- the new Rdn to use for the targetdeleteOldRdn
- true if we delete the old Rdn valuepublic RenameOperationContext(CoreSession session, org.apache.directory.api.ldap.model.message.ModifyDnRequest modifyDnRequest)
session
- The session to usemodifyDnRequest
- The ModDn operation to applypublic 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 toString()
toString
in class Object
Object.toString()
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.