|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RuleFactory
| Nested Class Summary | |
|---|---|
static class |
RuleFactory.NotifyAction
|
| Field Summary | |
|---|---|
static int |
ACTION_DEFAULT
|
static int |
ACTION_EMAIL_ACCOUNT
|
static int |
ACTION_EMAIL_ALL
|
static int |
ACTION_EMAIL_DEVICE
|
static int |
ACTION_EMAIL_RULE
|
static int |
ACTION_NONE
|
static int |
ACTION_NOTIFY_ACCOUNT
|
static int |
ACTION_NOTIFY_ALL
|
static int |
ACTION_NOTIFY_DEVICE
|
static int |
ACTION_NOTIFY_MASK
|
static int |
ACTION_NOTIFY_RULE
|
static int |
ACTION_SAVE_LAST
|
static int |
ACTION_VIA_EMAIL
|
static int |
ACTION_VIA_LISTENER
|
static int |
ACTION_VIA_MASK
|
static int |
ACTION_VIA_QUEUE
|
static int |
PRIORITY_HIGH
|
static int |
PRIORITY_LOW
|
static int |
PRIORITY_MEDIUM
|
static int |
PRIORITY_UNDEFINED
|
static java.lang.String |
PROP_rule_workHours_
|
| Method Summary | |
|---|---|
boolean |
checkRuntime()
Initializes and returns true if successful |
boolean |
checkSelectorSyntax(java.lang.String selector)
Return true if the specified selector is syntactically correct |
java.lang.Object |
evaluateSelector(java.lang.String selector,
Account account)
Evaluates a selector against the specified Account and returns the result |
java.lang.Object |
evaluateSelector(java.lang.String selector,
EventData event)
Evaluates a selector against the specified event and returns the result |
int |
executeRule(java.lang.String ruleID,
EventData event)
Executes the specified ruleID against the specified EventData record, and return a mask containing the actions performed. |
int |
executeRules(EventData event)
Executes all rules which apply to the specified EventData record, and return a mask containing the actions performed. |
int |
executeSelector(java.lang.String selector,
EventData event)
Executes the specified selector against the criteria contained win the event record, and return a mask containing the actions performed. |
java.lang.String |
getFunctionDescription(java.lang.String ftnName)
Returns the description for the specified function name |
java.util.List<java.lang.String> |
getFunctionNames()
Returns a list of all available selector function names |
java.lang.String |
getFunctionUsage(java.lang.String ftnName)
Returns the function "usage" description for the specified function name |
java.lang.String |
getGeoCorridorDescription(Account account,
java.lang.String corrID)
Gets the description for the specified GeoCorridor ID. |
java.lang.String |
getIdentifierDescription(java.lang.String idName)
Returns the description for the specified identifier |
java.util.List<java.lang.String> |
getIdentifierNames()
Returns a list of all available selector identifiers |
java.lang.String |
getName()
Returns this RuleFactory name |
PredefinedRuleAction[] |
getPredefinedRuleActions(BasicPrivateLabel bpl)
Returns a list of predefined rule actions |
java.lang.String[] |
getRuleIDs(Account account)
Returns a list of defined rule-ids for the specified Account. |
java.lang.String |
getRuleNotifyEmail(Account account,
java.lang.String ruleID)
Returns the rule notification email addresses for the specified rule-id, in the specified Account. |
java.lang.String |
getRuleSelector(Account account,
java.lang.String ruleID)
Returns the rule selector for the specified rule-id, in the specified Account |
java.lang.String |
getVersion()
Returns this RuleFactory version String |
boolean |
isSelectorMatch(java.lang.String selector,
EventData event)
Return true if the specified 'event' matches the specified 'selector' |
| Field Detail |
|---|
static final java.lang.String PROP_rule_workHours_
static final int ACTION_NONE
static final int ACTION_NOTIFY_MASK
static final int ACTION_NOTIFY_ACCOUNT
static final int ACTION_NOTIFY_DEVICE
static final int ACTION_NOTIFY_RULE
static final int ACTION_VIA_MASK
static final int ACTION_VIA_EMAIL
static final int ACTION_VIA_QUEUE
static final int ACTION_VIA_LISTENER
static final int ACTION_SAVE_LAST
static final int ACTION_NOTIFY_ALL
static final int ACTION_EMAIL_ALL
static final int ACTION_EMAIL_ACCOUNT
static final int ACTION_EMAIL_DEVICE
static final int ACTION_EMAIL_RULE
static final int ACTION_DEFAULT
static final int PRIORITY_UNDEFINED
static final int PRIORITY_HIGH
static final int PRIORITY_MEDIUM
static final int PRIORITY_LOW
| Method Detail |
|---|
java.lang.String getName()
java.lang.String getVersion()
boolean checkRuntime()
java.util.List<java.lang.String> getIdentifierNames()
java.lang.String getIdentifierDescription(java.lang.String idName)
idName - The name of the identifier for which the description is returned.
java.util.List<java.lang.String> getFunctionNames()
java.lang.String getFunctionUsage(java.lang.String ftnName)
ftnName - The name of the function for which the "usage" description is returned.
java.lang.String getFunctionDescription(java.lang.String ftnName)
ftnName - The name of the function for which the description is returned.
PredefinedRuleAction[] getPredefinedRuleActions(BasicPrivateLabel bpl)
bpl - The context BasicPrivateLabel instance
java.lang.String[] getRuleIDs(Account account)
account - The account from which the rule-id list is returned
java.lang.String getRuleSelector(Account account,
java.lang.String ruleID)
account - The account which owns the rule-id from which the selector is returnedruleID - The Rule-ID which contains the selector to return
java.lang.String getRuleNotifyEmail(Account account,
java.lang.String ruleID)
account - The account which owns the rule-id from which the notify email addresses are returnedruleID - The Rule-ID which contains the notify email addresses to return
boolean checkSelectorSyntax(java.lang.String selector)
selector - The rule selector to syntax check
boolean isSelectorMatch(java.lang.String selector,
EventData event)
selector - The rule selector to check against the specified eventevent - The event that contains the criteria used by the selector
int executeSelector(java.lang.String selector,
EventData event)
selector - The selector to execute.event - The event that contains the criteria used by the selector
int executeRules(EventData event)
event - The event that contains the criteria used by the rules
int executeRule(java.lang.String ruleID,
EventData event)
ruleID - The ruleID to execute against the specified eventevent - The event that contains the criteria used by the rules
java.lang.Object evaluateSelector(java.lang.String selector,
EventData event)
throws RuleParseException
selector - The selector to execute.event - The event that contains the criteria used by the selector
RuleParseException
java.lang.Object evaluateSelector(java.lang.String selector,
Account account)
throws RuleParseException
selector - The selector to execute.account - The Account that contains the criteria used by the selector
RuleParseException
java.lang.String getGeoCorridorDescription(Account account,
java.lang.String corrID)
account - The Account that owns the specified GeoCorridor IDcorrID - The GeoCorridor ID
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||