|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.genesyslab.platform.apptemplate.filtering.impl.BaseFilter
com.genesyslab.platform.apptemplate.filtering.impl.filters.DefaultFilter
public final class DefaultFilter
Default message filter implementation (used in FilterChain).
Constructor Summary | |
---|---|
DefaultFilter(java.lang.String key)
|
Method Summary | |
---|---|
void |
applyActions(java.util.ArrayList<FilterAction> newActions)
Applies new actions. |
void |
applyConditions(java.util.ArrayList<FilterCondition> newConditions)
Applies new conditions. |
java.lang.Object |
clone()
Clones this message filter. |
protected void |
doRegister(FilterContext context)
Registers filter variables and so on. |
protected void |
doUnregister(FilterContext context)
Unregisters filter variables and so on. |
void |
execActions(Message message,
FilterContext context)
Executes filter actions. |
java.util.ArrayList<FilterAction> |
getActions()
Gets actions list. |
java.util.ArrayList<FilterCondition> |
getConditions()
Gets conditions. |
boolean |
getExecuteActionsOnMatch()
Gets current filter actions executions behaviour (executes on match/mismatch). |
boolean |
isMessageAccepted(Message message,
FilterContext context)
Evaluates whether message is accepted by filter. |
Methods inherited from class com.genesyslab.platform.apptemplate.filtering.impl.BaseFilter |
---|
getKey, isRegistered |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultFilter(java.lang.String key)
Method Detail |
---|
public boolean isMessageAccepted(Message message, FilterContext context)
BaseFilter
isMessageAccepted
in class BaseFilter
message
- The message to evaluatecontext
- Filter context, where data for message evaluation, like filter variables, can be stored.
public java.util.ArrayList<FilterCondition> getConditions()
public void applyConditions(java.util.ArrayList<FilterCondition> newConditions) throws java.lang.NullPointerException
newCondition
- new conditions.
java.lang.NullPointerException
- if any argument is null.
java.lang.IllegalStateException
- when filter already registered (used).public boolean getExecuteActionsOnMatch()
public void execActions(Message message, FilterContext context)
context
- public java.util.ArrayList<FilterAction> getActions()
public void applyActions(java.util.ArrayList<FilterAction> newActions) throws java.lang.NullPointerException
newActions
- new actions.
java.lang.NullPointerException
- if any argument is null.
java.lang.IllegalStateException
- when filter already registered (used).public java.lang.Object clone()
BaseFilter
clone
in class BaseFilter
protected void doRegister(FilterContext context)
doRegister
in class BaseFilter
context
- filter context.protected void doUnregister(FilterContext context)
doUnregister
in class BaseFilter
context
- filter context.
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |