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, requestControls, responseControls, session, throwReferral
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 pushToEvtIntrcptor)
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, getName, 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, toString, wait, wait, wait
addRequestControl, addRequestControls, addResponseControl, delete, getCurrentInterceptor, getDn, getEffectivePrincipal, getEntry, getName, getNextInterceptor, getRequestControl, getResponseControl, getResponseControlCount, getResponseControls, getSession, hasRequestControl, hasRequestControls, hasResponseControl, hasResponseControls, ignoreReferral, isReferralIgnored, isReferralThrown, lookup, newLookupContext, setCurrentInterceptor, setDn, setEntry, setInterceptors, throwReferral
protected LogChange logChange
protected org.apache.directory.api.ldap.model.entry.Entry modifiedEntry
public AbstractChangeOperationContext(CoreSession session)
session
- public AbstractChangeOperationContext(CoreSession session, org.apache.directory.api.ldap.model.name.Dn dn)
session
- public 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
- public boolean isGenerateNoReplEvt()
public void setGenerateNoReplEvt(boolean generateNoReplEvt)
generateNoReplEvt
- public boolean isPushToEvtInterceptor()
public void setPushToEvtInterceptor(boolean pushToEvtIntrcptor)
pushToEvtInterceptor
- Copyright © 2018. All rights reserved.