org.jwall.audit.rules
Interface RuleContext

All Known Subinterfaces:
RuleActionContext

public interface RuleContext

This interface defines methods provided by all environments in which a (set of) action(s) are executed. Usually instances of this class are set-up for each user-context for a given event and all rules are executed/evaluated within this context. This allows rules to set variables and transport information to rules being fired later on.

Author:
Christian Bockermann <chris@jwall.org>

Field Summary
static String EVENT_PROCESSED
           
 
Method Summary
 Object get(String var)
          This method allows to retrieve an object from the context by some variable name.
 void log(int level, String msg)
          Add a log message to the rule processing context.
 void set(String var, Object o)
          This method allows for setting a specific object in the context.
 

Field Detail

EVENT_PROCESSED

static final String EVENT_PROCESSED
See Also:
Constant Field Values
Method Detail

set

void set(String var,
         Object o)
This method allows for setting a specific object in the context. If an object with that name already exists, it will be overridden.

Parameters:
var -
o -

get

Object get(String var)
This method allows to retrieve an object from the context by some variable name.

Parameters:
var -
Returns:

log

void log(int level,
         String msg)
Add a log message to the rule processing context.

Parameters:
level - The log-level of the message.
msg - The message to log.


Copyright © 2012 jwall.org. All Rights Reserved.