Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Dec 2008
    Location
    wellington
    Posts
    2

    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

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    516
    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.

  3. #3
    Member
    Join Date
    Dec 2008
    Location
    wellington
    Posts
    2
    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

  4. #4
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    516
    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

  1. Snapshot Processing
    By wwatts in forum Client APIs
    Replies: 3
    Last Post: October 2nd, 2012, 10:40 AM
  2. Command Mode Delete Processing Question
    By wwatts in forum Client APIs
    Replies: 1
    Last Post: March 13th, 2012, 09:47 AM
  3. Client receive old data after some time.
    By mnenchev in forum General
    Replies: 3
    Last Post: November 25th, 2009, 02:27 PM
  4. non-display listener
    By EWANG in forum Client APIs
    Replies: 1
    Last Post: October 9th, 2009, 10:46 AM
  5. Replies: 1
    Last Post: February 22nd, 2008, 08:39 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 09:08 AM.