Home Reference Source Test
public class | source

SubscriptionCondition

Extends:

Condition → SubscriptionCondition

Constructor Summary

Public Constructor
public

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

Creates a new SubscriptionCondition.

Method Summary

Public Methods
public

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

Verifies if the subscription condition is applicable to the message.

Inherited Summary

From class Condition
public
public
public
public

params: *

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 SubscriptionCondition.

Override:

Condition#constructor

Params:

NameTypeAttributeDescription
attribute string
operator string
params *

Public Methods

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

Verifies if the subscription condition is applicable to the message. First, verifies if the message is of the subscription type; second, verifies if the message is from a remote runtime to guarantee that the subscription is being validated in the destination runtime; third, verifies if the subscription preference is met.

Override:

Condition#isApplicable

Params:

NameTypeAttributeDescription
context Object

environment where the Policy Engine is being used

message Object

Return:

boolean