question

Upvotes
Accepted
3 0 1 5

EMA: hasPermissionData() on item for refresh/update message

Hi,

Inside OnRefreshMsge() and OnUpdateMsg() I check if item has permission data by calling

message.hasPermissionData().

For the same item hasPermissionData() gives me TRUE if i'm inside a Refresh Message and FALSE if i'm inside an Update Message.

Is it normal? I'm struggling to understand why?

Thank you


elektronrefinitiv-realtimeelektron-sdkema-apirrt
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

@DimAngelNX

Thank you for your participation in the forum. Are any of the replies below satisfactory in resolving your query? If yes please click the 'Accept' text next to the reply that best answers your question. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.

Thanks,

-AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,


AHS

1 Answer

· Write an Answer
Upvotes
Accepted
25.3k 87 12 25

Hi @DimAngelNX

As far as I am aware you only see Permission Data in a RefreshMsg - as the data applies to a particular Permissionable Entity and the permission data rarely changes for the instrument - so it makes no sense (from a permission-checking or bandwidth-usage point of view) to keep repeating the same bit of data.

Assuming that you are doing some sort of proxy permissions checks - you would check the permissions when a user first makes a request for an instrument - if they are permssioned, they can then be provided with the Refresh values and any subsequent updates.

If for some reason the permission data does change, you would receive another (unsolicited) Refresh for the same instrument with the revised permission data.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.