public class ModifyOperationContext extends AbstractChangeOperationContext
| Modifier and Type | Field and Description |
|---|---|
private org.apache.directory.api.ldap.model.entry.Entry |
alteredEntry
The entry after being renamed and altered for rdn attributes
|
private java.util.List<org.apache.directory.api.ldap.model.entry.Modification> |
modItems
The modification items
|
logChange, modifiedEntryauthorizedPrincipal, byPassed, currentInterceptor, dn, EMPTY_CONTROLS, entry, interceptors, originalEntry, requestControls, responseControls, session, throwReferral| Constructor and Description |
|---|
ModifyOperationContext(CoreSession session)
Creates a new instance of ModifyOperationContext.
|
ModifyOperationContext(CoreSession session,
org.apache.directory.api.ldap.model.name.Dn dn,
java.util.List<org.apache.directory.api.ldap.model.entry.Modification> modItems)
Creates a new instance of ModifyOperationContext.
|
ModifyOperationContext(CoreSession session,
org.apache.directory.api.ldap.model.message.ModifyRequest modifyRequest) |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<org.apache.directory.api.ldap.model.entry.Modification> |
createModItems(org.apache.directory.api.ldap.model.entry.Entry serverEntry,
org.apache.directory.api.ldap.model.entry.ModificationOperation modOp) |
org.apache.directory.api.ldap.model.entry.Entry |
getAlteredEntry()
Returns the entry after it has been renamed and potentially changed for
Rdn alterations.
|
java.util.List<org.apache.directory.api.ldap.model.entry.Modification> |
getModItems() |
java.lang.String |
getName() |
void |
setAlteredEntry(org.apache.directory.api.ldap.model.entry.Entry alteredEntry)
Set the modified entry once the operation has been proceced
on the backend.
|
void |
setModItems(java.util.List<org.apache.directory.api.ldap.model.entry.Modification> modItems)
Set the modified attributes
|
java.lang.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, throwReferralprivate java.util.List<org.apache.directory.api.ldap.model.entry.Modification> modItems
private org.apache.directory.api.ldap.model.entry.Entry alteredEntry
public ModifyOperationContext(CoreSession session)
public ModifyOperationContext(CoreSession session, org.apache.directory.api.ldap.model.name.Dn dn, java.util.List<org.apache.directory.api.ldap.model.entry.Modification> modItems)
dn - the dn of the entry to be modifiedmodItems - the modifications to be performed on the entrypublic ModifyOperationContext(CoreSession session, org.apache.directory.api.ldap.model.message.ModifyRequest modifyRequest) throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapExceptionpublic void setModItems(java.util.List<org.apache.directory.api.ldap.model.entry.Modification> modItems)
modItems - The modified attributespublic java.util.List<org.apache.directory.api.ldap.model.entry.Modification> getModItems()
public static java.util.List<org.apache.directory.api.ldap.model.entry.Modification> createModItems(org.apache.directory.api.ldap.model.entry.Entry serverEntry,
org.apache.directory.api.ldap.model.entry.ModificationOperation modOp)
throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapExceptionpublic java.lang.String getName()
getName in interface OperationContextgetName in class AbstractOperationContextpublic org.apache.directory.api.ldap.model.entry.Entry getAlteredEntry()
public void setAlteredEntry(org.apache.directory.api.ldap.model.entry.Entry alteredEntry)
alteredEntry - The modified entrypublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()