Caplin Trader 5.1.0

Class: module:ct-sljsadapter/providers/StreamLinkPermissionService

module:ct-sljsadapter/providers/StreamLinkPermissionService()

This class connects to a permission data source via a StreamLink connection.

This class allows you to query the product permissions of the currently logged in user, or the permissions they have when they are trading on behalf of another user.

This class depends on being able to query the StreamLink username from a currently registered UserService. Ensure that a UserService (e.g. the caplin.sljsadapter.providers.StreamLinkUserService) is configured, registered and will return the username before constructing this class.

See module:ct-security/permissioning/AbstractPermissionService for more details.

Constructor

new module:ct-sljsadapter/providers/StreamLinkPermissionService()

Implements:

Methods

addDelayedReadinessServiceListener(oDelayedReadinessServiceListener)

Registers a DelayedReadinessServiceListener object, which is used to notify when the service is ready to use.

Parameters:
Name Type Description
oDelayedReadinessServiceListener module:ct-core/DelayedReadinessServiceListener

The service readiness listener.

Implements:

dispose()

Disposes of any listeners and resources that were used by the service.