-
January 31st, 2011, 09:28 AM
#1
Hi Mike,
I think that the getItems method is what you need, please take a look and let me know if this is not suitable for your needs.
HTH
-
January 31st, 2011, 10:13 AM
#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
-
January 31st, 2011, 12:41 PM
#3
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
-
By ReVaN01 in forum General
Replies: 9
Last Post: May 30th, 2012, 09:40 PM
-
By Rakot in forum General
Replies: 1
Last Post: May 14th, 2010, 11:06 AM
-
By GoatHunter in forum General
Replies: 2
Last Post: August 25th, 2009, 10:54 AM
-
By indrajit in forum Client SDKs
Replies: 1
Last Post: February 22nd, 2008, 08:41 AM
-
By rsouissi in forum Adapter SDKs
Replies: 1
Last Post: June 4th, 2007, 08:54 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:13 PM.
Bookmarks