You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by Okke Harsta <oh...@zilverline.com> on 2010/08/25 13:47:49 UTC
Question regarding AppData
We are implementing the persistent store of shindig Java and I have a
question regarding the AppDataService. I was under the impression that
AppData was tied to an user and a gadget/application, but from the
return value of the AppDataService getPersonData it would appear that
AppData is only tied the Person (and not to a specific gadget) as
there is no way to specify the appId and personId in the
DataCollection object (it is a Map<String, Map<String, String>> entry
where the key of the Map is personId and the key a map of key/values).
Am I missing something?
Another question is regarding the appId: it is retrieved from the
SocialRequestItem when delegating calls from the AppDataHandler to the
AppService, but the appId is null in the examples I have tried. Does
this require additional coding in the container.js to include the
appId in the JavaScript call (we use the osapi.appdata)
thanks,
Okke
Re: Question regarding AppData
Posted by Paul Lindner <pl...@linkedin.com>.
The appId is part of the URI for app data requests
/{userId}+/{groupId}/{appId}
The appId specified is passed to AppDataService calls.
For most usages the appId will always be '@app' which substitutes the appId
from the security token
This in turn is almost always the gadgetUrl.
I haven't tested osapi.appdata for a while. Can you insure that you have
"appId":"@app" in your request?
On Wed, Aug 25, 2010 at 4:47 AM, Okke Harsta <oh...@zilverline.com> wrote:
> We are implementing the persistent store of shindig Java and I have a
> question regarding the AppDataService. I was under the impression that
> AppData was tied to an user and a gadget/application, but from the
> return value of the AppDataService getPersonData it would appear that
> AppData is only tied the Person (and not to a specific gadget) as
> there is no way to specify the appId and personId in the
> DataCollection object (it is a Map<String, Map<String, String>> entry
> where the key of the Map is personId and the key a map of key/values).
> Am I missing something?
>
> Another question is regarding the appId: it is retrieved from the
> SocialRequestItem when delegating calls from the AppDataHandler to the
> AppService, but the appId is null in the examples I have tried. Does
> this require additional coding in the container.js to include the
> appId in the JavaScript call (we use the osapi.appdata)
>
> thanks,
> Okke
>
--
Paul Lindner -- plindner@linkedin.com -- linkedin.com/in/plindner