public class ModifyOperationContext extends AbstractChangeOperationContext
logChange, modifiedEntry
authorizedPrincipal, byPassed, currentInterceptor, dn, EMPTY_CONTROLS, entry, interceptors, originalEntry, partition, requestControls, responseControls, session, throwReferral, transaction
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)
Creates a new instance of ModifyOperationContext.
|
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, 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
public ModifyOperationContext(CoreSession session)
session
- The session to usepublic ModifyOperationContext(CoreSession session, org.apache.directory.api.ldap.model.name.Dn dn, List<org.apache.directory.api.ldap.model.entry.Modification> modItems)
session
- The session to usedn
- 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
session
- The session to usemodifyRequest
- The ModifyRequest to processorg.apache.directory.api.ldap.model.exception.LdapException
- If the modify failedpublic 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)
public 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 Object
Object.toString()
Copyright © 2003–2023 The Apache Software Foundation. All rights reserved.