new module:ct-trading /validation /Permission Validator()
The constructor for the PermissionValidator.
The PermissionValidator is a module:ct-trading/validation/Validator
that is used during a trade to determine
whether the user is permissioned to do a trade or not.
This class is immutable.
- Implements:
Methods
validate(oData ToValidate, oValidation Result)
Checks with the registered module:ct-services/security/PermissionService
singleton whether
the current user has the correct permissions to trade.
Parameters:
Name | Type | Description |
---|---|---|
oDataToValidate |
module:ct-trading |
is trading data supplied by the trade such as the instrument, the trading protocol and the asset class. Must not be null or undefined. |
oValidationResult |
module:ct-trading |
The object used to report permission failure. Must not be null or undefined. |
- Implements: