public class ModifyOperationContext extends AbstractChangeOperationContext
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,
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 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.
|
List<org.apache.directory.api.ldap.model.entry.Modification> |
getModItems() |
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(List<org.apache.directory.api.ldap.model.entry.Modification> modItems)
Set the modified attributes
|
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, throwReferralpublic ModifyOperationContext(CoreSession session)
public ModifyOperationContext(CoreSession session, org.apache.directory.api.ldap.model.name.Dn dn, 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(List<org.apache.directory.api.ldap.model.entry.Modification> modItems)
modItems - The modified attributespublic List<org.apache.directory.api.ldap.model.entry.Modification> getModItems()
public static 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 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 String toString()
toString in class ObjectObject.toString()Copyright © 2021. All rights reserved.