Policy
Constructor Summary
Public Constructor | ||
public |
constructor(key: *, rules: *, actions: *, combiningAlgorithm: *) |
Method Summary
Public Methods | ||
public |
addAction(method: *, param: *) |
|
public |
createRule(decision: *, condition: *, scope: *, target: *, priority: *) |
|
public |
deleteRule(rule: *) |
|
public |
enforceActions(context: *, message: *): * |
|
public |
evaluateRules(context: *, message: *, isIncoming: *): * |
|
public |
getLastPriority(): * |
|
public |
getRuleByPriority(priority: *): * |
|
public |
sortRules(): * |
Public Constructors
public constructor(key: *, rules: *, actions: *, combiningAlgorithm: *) source
Params:
Name | Type | Attribute | Description |
key | * | ||
rules | * | ||
actions | * | ||
combiningAlgorithm | * |
Public Members
public actions: * source
public combiningAlgorithm: * source
public key: * source
public rules: *[] source
Public Methods
public addAction(method: *, param: *) source
Params:
Name | Type | Attribute | Description |
method | * | ||
param | * |
public createRule(decision: *, condition: *, scope: *, target: *, priority: *) source
Params:
Name | Type | Attribute | Description |
decision | * | ||
condition | * | ||
scope | * | ||
target | * | ||
priority | * |
public deleteRule(rule: *) source
Params:
Name | Type | Attribute | Description |
rule | * |
public enforceActions(context: *, message: *): * source
Params:
Name | Type | Attribute | Description |
context | * | ||
message | * |
Return:
* |
public evaluateRules(context: *, message: *, isIncoming: *): * source
Params:
Name | Type | Attribute | Description |
context | * | ||
message | * | ||
isIncoming | * |
Return:
* |
public getRuleByPriority(priority: *): * source
Params:
Name | Type | Attribute | Description |
priority | * |
Return:
* |