|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.core.interceptor.context.AbstractOperationContext
org.apache.directory.server.core.interceptor.context.AbstractChangeOperationContext
org.apache.directory.server.core.interceptor.context.RenameOperationContext
public class RenameOperationContext
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 when the modifyDN is about changing the RDN, not the base DN.
Field Summary |
---|
Fields inherited from class org.apache.directory.server.core.interceptor.context.AbstractChangeOperationContext |
---|
logChange |
Fields inherited from class org.apache.directory.server.core.interceptor.context.AbstractOperationContext |
---|
authorizedPrincipal, byPassed, dn, EMPTY_CONTROLS, entry, next, previous, requestControls, responseControls, session, throwReferral |
Constructor Summary | |
---|---|
RenameOperationContext(CoreSession session)
Creates a new instance of RenameOperationContext. |
|
RenameOperationContext(CoreSession session,
org.apache.directory.shared.ldap.name.DN oldDn,
org.apache.directory.shared.ldap.name.RDN newRdn,
boolean delOldDn)
Creates a new instance of RenameOperationContext. |
|
RenameOperationContext(CoreSession session,
org.apache.directory.shared.ldap.message.internal.InternalModifyDnRequest modifyDnRequest)
|
Method Summary | |
---|---|
ClonedServerEntry |
getAlteredEntry()
Returns the entry after it has been renamed and potentially changed for RDN alterations. |
boolean |
getDelOldDn()
|
java.lang.String |
getName()
|
org.apache.directory.shared.ldap.name.DN |
getNewDn()
|
org.apache.directory.shared.ldap.name.RDN |
getNewRdn()
|
void |
setAlteredEntry(ClonedServerEntry alteredEntry)
Set the modified entry once the operation has been proceced on the backend. |
void |
setDelOldDn(boolean delOldDn)
Set the flag to delete the old DN |
void |
setNewDn(org.apache.directory.shared.ldap.name.DN newDn)
Set the new DN |
void |
setNewRdn(org.apache.directory.shared.ldap.name.RDN newRdn)
Set the new RDN |
java.lang.String |
toString()
|
Methods inherited from class org.apache.directory.server.core.interceptor.context.AbstractChangeOperationContext |
---|
getChangeLogEvent, isLogChange, setChangeLogEvent, setLogChange |
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 |
Constructor Detail |
---|
public RenameOperationContext(CoreSession session)
public RenameOperationContext(CoreSession session, org.apache.directory.shared.ldap.name.DN oldDn, org.apache.directory.shared.ldap.name.RDN newRdn, boolean delOldDn)
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.shared.ldap.message.internal.InternalModifyDnRequest modifyDnRequest)
Method Detail |
---|
public boolean getDelOldDn()
public void setDelOldDn(boolean delOldDn)
delOldDn
- the flag to setpublic org.apache.directory.shared.ldap.name.DN getNewDn() throws java.lang.Exception
java.lang.Exception
public org.apache.directory.shared.ldap.name.RDN getNewRdn()
public void setNewRdn(org.apache.directory.shared.ldap.name.RDN newRdn)
newRdn
- The new RDNpublic void setNewDn(org.apache.directory.shared.ldap.name.DN newDn)
newDn
- The new DNpublic java.lang.String getName()
getName
in interface OperationContext
getName
in class AbstractOperationContext
public ClonedServerEntry getAlteredEntry()
public void setAlteredEntry(ClonedServerEntry alteredEntry)
alteredEntry
- The modified entrypublic java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |