import SubscriptionCondition from 'runtime-core/src/policy/conditions/SubscriptionCondition.js'
SubscriptionCondition
Extends:
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 |
attribute: * |
|
public |
operator: * |
|
public |
operators: * |
|
public |
params: * |
|
public |
isApplicable(context: Object, message: Object): * Verifies if the condition is applicable to the message. |
Public Constructors
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.