public class ModifyOperationContext extends AbstractChangeOperationContext
logChange, modifiedEntry
authorizedPrincipal, 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, setRid
addRequestControl, 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, throwReferral
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addRequestControl, 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, throwReferral
public 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.LdapException
public 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.LdapException
public String getName()
getName
in interface OperationContext
getName
in class AbstractOperationContext
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 © 2019. All rights reserved.