org.apache.directory.server.core.interceptor.context
Class AbstractChangeOperationContext

java.lang.Object
  extended by org.apache.directory.server.core.interceptor.context.AbstractOperationContext
      extended by org.apache.directory.server.core.interceptor.context.AbstractChangeOperationContext
All Implemented Interfaces:
ChangeOperationContext, OperationContext
Direct Known Subclasses:
AddOperationContext, DeleteOperationContext, ModifyOperationContext, MoveOperationContext, RenameOperationContext

public abstract class AbstractChangeOperationContext
extends AbstractOperationContext
implements ChangeOperationContext

An abstract base class used by all change inducing operations.

Version:
$Rev$, $Date$
Author:
Apache Directory Project

Field Summary
protected  LogChange logChange
          The flag used to tell the server to store the change sinto the changeLog
 
Fields inherited from class org.apache.directory.server.core.interceptor.context.AbstractOperationContext
authorizedPrincipal, byPassed, dn, EMPTY_CONTROLS, entry, next, previous, requestControls, responseControls, session, throwReferral
 
Constructor Summary
AbstractChangeOperationContext(CoreSession session)
           
AbstractChangeOperationContext(CoreSession session, org.apache.directory.shared.ldap.name.DN dn)
           
 
Method Summary
 ChangeLogEvent getChangeLogEvent()
          Gets the ChangeLogEvent associated with this operation after the operation has been executed.
 boolean isLogChange()
          
 void setChangeLogEvent(ChangeLogEvent changeLogEvent)
           
 void setLogChange(LogChange logChange)
          Set the flag which tells the server to log the changes into the changeLog file
 
Methods inherited from class org.apache.directory.server.core.interceptor.context.AbstractOperationContext
add, addRequestControl, addRequestControls, addResponseControl, delete, getByPassed, getDn, getEffectivePrincipal, getEntry, getFirstOperation, getLastOperation, getName, getNextOperation, getPreviousOperation, getRequestControl, getResponseControl, getResponseControlCount, getResponseControls, getSession, hasBypass, hasEntry, hasRequestControl, hasRequestControls, hasResponseControl, hasResponseControls, ignoreReferral, isBypassed, isFirstOperation, isReferralIgnored, isReferralThrown, lookup, lookup, modify, newLookupContext, setAuthorizedPrincipal, setByPassed, setDn, setEntry, setNextOperation, setPreviousOperation, setRequestControls, setSession, throwReferral
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.directory.server.core.interceptor.context.OperationContext
add, addRequestControl, addRequestControls, addResponseControl, delete, getByPassed, getDn, getEffectivePrincipal, getEntry, getFirstOperation, getLastOperation, getName, getNextOperation, getPreviousOperation, getRequestControl, getResponseControl, getResponseControlCount, getResponseControls, getSession, hasBypass, hasEntry, hasRequestControl, hasRequestControls, hasResponseControl, hasResponseControls, ignoreReferral, isBypassed, isFirstOperation, isReferralIgnored, isReferralThrown, lookup, lookup, modify, newLookupContext, setByPassed, setDn, setEntry, throwReferral
 

Field Detail

logChange

protected LogChange logChange
The flag used to tell the server to store the change sinto the changeLog

Constructor Detail

AbstractChangeOperationContext

public AbstractChangeOperationContext(CoreSession session)

AbstractChangeOperationContext

public AbstractChangeOperationContext(CoreSession session,
                                      org.apache.directory.shared.ldap.name.DN dn)
Method Detail

getChangeLogEvent

public ChangeLogEvent getChangeLogEvent()
Description copied from interface: ChangeOperationContext
Gets the ChangeLogEvent associated with this operation after the operation has been executed. Returns null if the ChangeLogService has not been enabled.

Specified by:
getChangeLogEvent in interface ChangeOperationContext
Returns:
the ChangeLogEvent associated with this operation, or null
See Also:
ChangeOperationContext.getChangeLogEvent()

setChangeLogEvent

public void setChangeLogEvent(ChangeLogEvent changeLogEvent)

setLogChange

public void setLogChange(LogChange logChange)
Set the flag which tells the server to log the changes into the changeLog file

Specified by:
setLogChange in interface ChangeOperationContext
Parameters:
logChange - The flag

isLogChange

public boolean isLogChange()

Specified by:
isLogChange in interface ChangeOperationContext
Returns:
True if the changes are logged into the changeLog


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.