-
March 5th, 2009, 02:33 AM
#1
Post processing on real time data before display in browser
Hiya,
We've got the scenario where we will be pushing real time updates through Lightstreamer, but that before those updates are displayed to the end user, we'll need to check certain criteria, to decide how a field should be displayed.
The criteria are around whether the end user is allowed to deal with the sending party - though each end user may have different rights against the sending party.
Is there anything within LightStreamer that could help, or is it a case of having to send all end user rights against the sending party with each real time update, or a JavaScript data island or equivilant?
Thoughts?
thanks
David
-
March 5th, 2009, 10:52 AM
#2
You can choose between a server-side and a client-side strategy.
If you process the events on the client side, before deciding whether to display them or not, a hacker could bypass the JavaScript code and get all the events. On the other hand, if you enforce your routing policies on the server side, only the right events will be delivered to the right people.
For the client-side strategy, you can manipulate incoming events through the onItemUpdate and onChangingValues callbacks.
For the server-side strategy, you can use your Metadata Adapter to decide which item names each specific user can actually subscribe to, based on the sending party. Consider that the Metadata Adapter is responsible for all the aspects concerning authentication, authorization, entitlement, etc., so it's the best place where to implement your logic.
-
March 5th, 2009, 08:50 PM
#3
Hiya Alessandro,
Thanks for that - we'd definitely look for the server side solution.
With the Metadata Adapter, I presume that an Oracle look up for the user's rights for each updated item would be possible?
thanks
David
-
March 6th, 2009, 03:13 PM
#4
Hi David,
Yes, the Metadata Adapter is notified of each individual subscription, so it can query a database to decide whether to authorize or not the subscription.
Cheers,
Alessandro
Similar Threads
-
By wwatts in forum Client SDKs
Replies: 3
Last Post: October 2nd, 2012, 10:40 AM
-
By wwatts in forum Client SDKs
Replies: 1
Last Post: March 13th, 2012, 09:47 AM
-
By mnenchev in forum General
Replies: 3
Last Post: November 25th, 2009, 02:27 PM
-
By EWANG in forum Client SDKs
Replies: 1
Last Post: October 9th, 2009, 10:46 AM
-
By indrajit in forum Adapter SDKs
Replies: 1
Last Post: February 22nd, 2008, 08:39 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 06:08 PM.
Bookmarks