public abstract class AbstractChangeOperationContext extends AbstractOperationContext implements ChangeOperationContext
Modifier and Type | Field and Description |
---|---|
protected LogChange |
logChange
The flag used to tell the server to store the changes into the changeLog
|
protected org.apache.directory.api.ldap.model.entry.Entry |
modifiedEntry
The modified Entry as it will be stored into the backend
|
authorizedPrincipal, byPassed, currentInterceptor, dn, EMPTY_CONTROLS, entry, interceptors, originalEntry, partition, requestControls, responseControls, session, throwReferral, transaction
Constructor and Description |
---|
AbstractChangeOperationContext(CoreSession session)
Creates a new instance of AbstractChangeOperationContext.
|
AbstractChangeOperationContext(CoreSession session,
org.apache.directory.api.ldap.model.name.Dn dn)
Creates a new instance of AbstractChangeOperationContext.
|
Modifier and Type | Method and Description |
---|---|
ChangeLogEvent |
getChangeLogEvent()
Gets the ChangeLogEvent associated with this operation after the
operation has been executed.
|
org.apache.directory.api.ldap.model.entry.Entry |
getModifiedEntry() |
int |
getRid() |
boolean |
isGenerateNoReplEvt() |
boolean |
isLogChange() |
boolean |
isPushToEvtInterceptor() |
boolean |
isReplEvent() |
void |
setChangeLogEvent(ChangeLogEvent changeLogEvent) |
void |
setGenerateNoReplEvt(boolean generateNoReplEvt)
sets whether or not to generate replication event messages by after an operation
using this operation context completes
|
void |
setLogChange(LogChange logChange)
Set the flag which tells the server to log the changes into
the changeLog file
|
void |
setModifiedEntry(org.apache.directory.api.ldap.model.entry.Entry modifiedEntry) |
void |
setPushToEvtInterceptor(boolean pushToEvtIntercptor)
sets if this context needs to be pushed to the event interceptor from nexus
|
void |
setReplEvent(boolean replEvent) |
void |
setRid(int rid)
sets the replica ID received from a consumer
|
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, toString, wait, wait, wait
addRequestControl, addRequestControls, addResponseControl, delete, getCurrentInterceptor, getDn, getEffectivePrincipal, getEntry, getName, getNextInterceptor, getPartition, getRequestControl, getResponseControl, getResponseControlCount, getResponseControls, getSession, getTransaction, hasRequestControl, hasRequestControls, hasResponseControl, hasResponseControls, ignoreReferral, isReferralIgnored, isReferralThrown, lookup, newLookupContext, setCurrentInterceptor, setDn, setEntry, setInterceptors, setPartition, setTransaction, throwReferral
protected LogChange logChange
protected org.apache.directory.api.ldap.model.entry.Entry modifiedEntry
public AbstractChangeOperationContext(CoreSession session)
session
- The session to usepublic AbstractChangeOperationContext(CoreSession session, org.apache.directory.api.ldap.model.name.Dn dn)
session
- The session to usedn
- The Dn for the entry on which the change is appliedpublic org.apache.directory.api.ldap.model.entry.Entry getModifiedEntry()
public void setModifiedEntry(org.apache.directory.api.ldap.model.entry.Entry modifiedEntry)
modifiedEntry
- the modifiedEntry to setpublic ChangeLogEvent getChangeLogEvent()
ChangeOperationContext
getChangeLogEvent
in interface ChangeOperationContext
ChangeOperationContext.getChangeLogEvent()
public void setChangeLogEvent(ChangeLogEvent changeLogEvent)
public void setLogChange(LogChange logChange)
setLogChange
in interface ChangeOperationContext
logChange
- The flagpublic boolean isLogChange()
isLogChange
in interface ChangeOperationContext
public boolean isReplEvent()
public void setReplEvent(boolean replEvent)
replEvent
- mark the context as containing a replication eventpublic int getRid()
public void setRid(int rid)
rid
- The replica IDpublic boolean isGenerateNoReplEvt()
public void setGenerateNoReplEvt(boolean generateNoReplEvt)
generateNoReplEvt
- true if replication events are to be generatedpublic boolean isPushToEvtInterceptor()
public void setPushToEvtInterceptor(boolean pushToEvtIntercptor)
pushToEvtIntercptor
- true if the context needs to be pushed to the event InterceptorCopyright © 2003–2023 The Apache Software Foundation. All rights reserved.