Home Reference Source Test
public class | source

Condition

Direct Subclass:

SubscriptionCondition

Constructor Summary

Public Constructor
public

constructor(attribute: string, operator: string, params: *)

Creates a new Condition.

Member Summary

Public Members
public
public
public
public

params: *

Method Summary

Public Methods
public

isApplicable(context: Object, message: Object): *

Verifies if the condition is applicable to the message.

Public Constructors

public constructor(attribute: string, operator: string, params: *) source

Creates a new Condition.

Params:

NameTypeAttributeDescription
attribute string
operator string
params *

Public Members

public attribute: * source

public operator: * source

public operators: * source

public params: * source

Public Methods

public isApplicable(context: Object, message: Object): * source

Verifies if the condition is applicable to the message. First, the system value that corresponds to the attribute is retrieved; then, that value is compared with the parameter specified in the condition by executing the operator implementation. If the operator is 'in' and the name of a group is given, then the array holding the members of the group is retrieved before the comparison.

Params:

NameTypeAttributeDescription
context Object

environment where the Policy Engine is being used

message Object

Return:

*