Results 1 to 4 of 4

Hybrid View

  1. #1
    Member
    Join Date
    Feb 2009
    Location
    London
    Posts
    2
    Hi Thanks for you're reply. I don't think the getItems is the correct method to use. I do use this method so users can pass groups like wathlist that get transformed to list of items butI don't think this is the correct usgae for my problem. I think I will end up suing the isModeAllowed and just ignore the passed Mode parameter. This seems to be the only obvious method to use where I obtain the User and Item.

    Thanks

    Mike

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,091
    If your purpose is to check that the item names supplied in the subscription requests are consistent with the user visibility rules, the callback to use is notifyNewTables. It is invoked after getItems and includes all subscription attributes; it lets you return an exception if the whole request is not acceptable.

    Note that the method has a couple of caveats:
    One is that wantsTablesNotification has to be implemented to return true in order to enable the invocation to notifyNewTables.
    The other is that the method is invoked with the "group id" (that is, the input of the previous invocation to getItems, not the output), which, in some cases may be a hassle.

    However, for similar cases, we suggest trying to leverage the flexibility offered by getItems:
    If the P&L were unique for each user, a user could request just PNL and getItems could change that into PNL.12345 based on the knowledge of the involved user.
    In that case, any request for PNL.12345 should simply be refused with an ItemsException as syntactically wrong.

 

 

Similar Threads

  1. Websockets message throughput limit?
    By ReVaN01 in forum General
    Replies: 9
    Last Post: May 30th, 2012, 09:40 PM
  2. Streaming connections limit
    By Rakot in forum General
    Replies: 1
    Last Post: May 14th, 2010, 11:06 AM
  3. How can I limit the log file size ?
    By GoatHunter in forum General
    Replies: 2
    Last Post: August 25th, 2009, 10:54 AM
  4. Maximum limit of rows & coluns in a table
    By indrajit in forum Client SDKs
    Replies: 1
    Last Post: February 22nd, 2008, 08:41 AM
  5. Replies: 1
    Last Post: June 4th, 2007, 08:54 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 12:27 AM.