Hello,
I use the Java/RefinitivSDK 3.7.0.0 in order to receive RealTime data from TREP.
Once a RealTIme data is subscribed, the API notifies me through my implementation of the interface method OmmConsumerClient.onRefreshMsg(
RefreshMsg
refreshMsg, OmmConsumerEvent event)
The RefreshMsg argument provides:
- the permission of the RealTime data (cf method
ByteBuffer RefreshMsg.permissionData()
) - and also a
PROD_PERM
, that is an integer obtainable by getting the value of the field "PROD_PERM"
(fields are obtained by calling refreshMsg.payload().fieldList()
)
For example, when subscribing to CZK2MD=
, I get
- permissionData:
{ 0x03, 0x01, 0x01, 0x28, 0x70, 0xC0 }
PROD_PERM
: 2870
Today, I use the permissionData in order to "know" whether a user is allowed to use the RealTime data. Do do so, I use Java/RFA 8.2.1.L3 with something like:
ByteBuffer dacsPermission;
byte[] arr = new byte[dacsPermission.remaining()];
dacsPermission.get(arr);
AuthorizationLock authorizationLock = new AuthorizationLock(arr);
...
byte[] dacsLock = authorizationLock.getAuthorizationLock().clone();
...
AuthorizationCheckResult authCheckResult =
agent.checkSubscription(handle,
AuthorizationUsageType.DONT_PERFORM_USAGE_LOGGING,
AuthorizationRequestType.NORMAL_REQUEST_LOGGING,
new AuthorizationCheckStatus(),
"IDN_SELECTFEED",
"",
dacsLock);
boolean isAuthorized = (authCheckResult == AuthorizationCheckResult.ACCESS_ALLOWED);
I would like to know if it is possible get the same information using the PROD_PERM
instead of the permissionData.
Thank you to also explain the difference and/or the relationship between PROD_PERM and permissionData
Regards
Philippe