MigratoryData Extension API
Developer's Guide and Reference Manual
MigratoryDataExtensionListener Interface Reference

Implementations of this interface can handle the events made available by the MigratoryData server for its extensions. More...

Public Member Functions

boolean onEntitlementSubscribeCheck (String subject, String token)
 Notify that a client identified with the token given in argument demands to subscribe to the subject given in argument. More...
 
boolean onEntitlementPublishCheck (String subject, String token)
 Notify that a client identified with the token given in argument demands to publish a message with the subject given in argument. More...
 

Detailed Description

Implementations of this interface can handle the events made available by the MigratoryData server for its extensions.

Thread safety

The method exposed by this interface are always called from by same thread.

Member Function Documentation

◆ onEntitlementSubscribeCheck()

boolean MigratoryDataExtensionListener.onEntitlementSubscribeCheck ( String  subject,
String  token 
)

Notify that a client identified with the token given in argument demands to subscribe to the subject given in argument.

Note
The entitlement verification made by this method should take as little time as possible, before you publish the entitlement response. Otherwise, the pending entitlement requests might be delayed.
Parameters
subjectThe subject to be verified
tokenThe token to be verified

◆ onEntitlementPublishCheck()

boolean MigratoryDataExtensionListener.onEntitlementPublishCheck ( String  subject,
String  token 
)

Notify that a client identified with the token given in argument demands to publish a message with the subject given in argument.

Note
The entitlement verification made by this method should take as little time as possible, before you publish the entitlement response. Otherwise, the pending entitlement requests might be delayed.
Parameters
subjectThe subject to be verified
tokenThe token to be verified