public class AuditEventRule extends Object implements EventRule<AuditEvent>
This class implements a simple rule, which can be applied to an audit-event and may trigger a set of actions. Thus, basically an event-rule is an event-filter plus some event-actions.
| Modifier and Type | Field and Description |
|---|---|
static Class<?>[] |
CLASSES |
static String |
MATCH_ALL_FILTERS |
static String |
MATCH_ANY_FILTER |
| Constructor and Description |
|---|
AuditEventRule() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Condition filter) |
boolean |
add(EventAction action) |
boolean |
equals(Object o) |
List<EventAction> |
getActions() |
String |
getComment() |
List<Condition> |
getConditions() |
String |
getMatch() |
int |
hashCode() |
boolean |
isEnabled() |
boolean |
isMatchAll() |
boolean |
matches(AuditEvent evt,
RuleContext ctx)
This method checks whether the rule triggers for the given event.
|
Object |
readResolve() |
boolean |
remove(Condition filter) |
boolean |
remove(EventAction action) |
boolean |
removeAction(int i) |
boolean |
removeCondition(int i) |
void |
setActions(Set<EventAction> actions) |
void |
setComment(String comment) |
void |
setConditions(List<Condition> filters) |
void |
setEnabled(boolean enabled) |
void |
setMatch(String match) |
void |
setMatchAll(boolean b) |
String |
toString() |
public static final String MATCH_ANY_FILTER
public static final String MATCH_ALL_FILTERS
public static final Class<?>[] CLASSES
public boolean matches(AuditEvent evt, RuleContext ctx)
matches in interface EventRule<AuditEvent>evt - The event to test the rule on.true if the rule matches the given event, false otherwise.public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled - the enabled to setpublic String getComment()
public void setComment(String comment)
comment - the comment to setpublic String getMatch()
public void setMatch(String match)
match - the match to setpublic boolean isMatchAll()
public void setMatchAll(boolean b)
public void setConditions(List<Condition> filters)
filters - the filters to setpublic boolean add(Condition filter)
public boolean remove(Condition filter)
public boolean removeCondition(int i)
public boolean add(EventAction action)
public boolean remove(EventAction action)
public boolean removeAction(int i)
public List<EventAction> getActions()
public void setActions(Set<EventAction> actions)
actions - the actions to setpublic Object readResolve()
Copyright © 2013 jwall.org. All Rights Reserved.