Caplin Trader 4.0.3

Class: module:caplin/services/providers/OpenPermissionService



new module:caplin/services/providers/OpenPermissionService()

Constructs a The returns ALL to all permission requests. You may need to provide permission sets so that that the OpenPermissionService can return lists when they are requested (for example, currency pairs). You can achieve this by using the module:caplin/services/providers/OpenPermissionService#addPermissionSet method.


addPermissionSet(sNamespace, pPermissionSet)

Adds a permission set for the specified namespace, for example: oPermissionService.addPermissionSet("CurrencyPair", ["GBPUS", "GBPAUD"]);
Name Type Description
sNamespace String The namespace for the permission set.
pPermissionSet Array The list of permissions to return for the namespace.