|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectkaos.policy.enforcement.filter.PermissionFilter
public abstract class PermissionFilter
PermissionFilter Object that encapsulates a mechanism by which it can be determined whether a given KAoS Msg 'passes' or not. The filter conditions use objects of class Msg, but this use of Msg has nothing to do with the objects *being* filtered; Msg is just a convenient way of doing it. Requires:
Modifications:
| Field Summary | |
|---|---|
protected Msg |
currentFilterConditions_
|
| Constructor Summary | |
|---|---|
PermissionFilter(Msg initialFilterConditions)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addFilterConditions(java.lang.String conditionName,
java.lang.Object conditionValue)
Add the given conditions to the list. |
abstract boolean |
messagePasses(Msg testMsg)
This is the primary purpose of this class: given the current state of this filter object, does the given Msg 'pass', or not? |
void |
setFilterConditions(java.lang.String conditionName,
java.lang.Object conditionValue)
Set the conditions from scratch. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Msg currentFilterConditions_
| Constructor Detail |
|---|
public PermissionFilter(Msg initialFilterConditions)
| Method Detail |
|---|
public abstract boolean messagePasses(Msg testMsg)
public void addFilterConditions(java.lang.String conditionName,
java.lang.Object conditionValue)
public void setFilterConditions(java.lang.String conditionName,
java.lang.Object conditionValue)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||