Compose/Decompose Compound DACS Locks

I'm trying to understand how I may use the OpenDACS API to work with complex logical combinations of permission entities (PEs).
The DACSLOCK_devguide section 3.4 (Compression of DACS Locks) suggests that both AND and OR operators may be used in a single compound lock:
1027 & (456 | 985) & 5000The document goes on to explain how such compounds are compressed in binary coded decimal.
I can't see any way to compose nor decompose such a compound using the API (C++).
The logical operator can be specified in the AuthorizationLock class, but it only operates on type long PEs. I can use this to compose (1027&5000) and, separately, (456|985).
The AuthorizationLockData class allows for combining multiple AuthorizationLockData instances, but has no way to specify the logical operator.
How may I use the APIs to compose a lock of PEs: 1027 & (456 | 985) & 5000.
Or another example to compose: (123 & 456) | (321 & 654)
Will I instead have to work on the raw char* lock data buffer?Best Answer
-
Hello @Craig Thomas,
You are looking to create compound locks.
It appears you are coding a publisher application in RFA C++. It then means you would be referring to the document
If that is the case, please see "operator". Operator is set when a lock is constructed, can be "&" or "|". We can appendPE(), and obtain lock data, our ultimate goal, using getLock().
AuthorizationData from multiple locks can be combined, using combineLock.
(Perhaps you are coding in ETA. Same concepts implemented for ETA C++ can be found in
Transport API C DACS Library Functions)
In terms of the API usage- RFA C++ or Refinitiv Real-Time ETA C/EMA C++, this should cover the requirements.
However, there may be more to the underlying logic of lock creation. The original lock could have an "|" between PE. Because the same item (for example IBM) can be permissioned via one of several PEs. Can also have an "&". Because multiple permissioned items can be included. When several items from multiple sources are combined into a compound item, in order to consume the item, the user has to be permissioned for all of the items included. I.e. "|" will not work. Essentially, it is "&" on compound, which is why combineLock() function works to derive the necessary compound lock.
If you are coding a new publisher, I would strongly suggest going with Refinitiv Real-Time ETA/EMA for the implementation, as these are contemporary APIs, having all of the latest features and actively evolving. RFA is a currently supported, but feature-complete API choice.
Let me know if this helps, or if this is not what you are looking for, please explain more of the use case and the API being used.
0
Answers
-
Thanks for the response @zoya faberov
Just to clarify, the AuthorizationLockData::combineLock() function essentially ANDs the AuthorizationLockData arguments (using the & operator)?
0 -
Hello @Craig Thomas,
The section of DACS Lock Guide "Compression of DACS Locks" describes and illustrates in detail the content that will ultimately be conveyed in the resulting DACS lock.
Yes, this is what is logically happening to the compound lock as it's being combined, and the reason why the approach works, hopefully is also more intuitive now.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 687 Datastream
- 1.4K DSS
- 621 Eikon COM
- 5.2K Eikon Data APIs
- 11 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 4 Trading API
- 2.9K Elektron
- 1.4K EMA
- 254 ETA
- 557 WebSocket API
- 38 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 276 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 669 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 193 TREP Infrastructure
- 229 TRKD
- 917 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛