On 16/05/2011 22:07, Scott Wilson wrote:

On 16 May 2011, at 21:10, Ross Gardler wrote:

On 16/05/2011 20:56, Franklin, Matthew B. wrote:

...

Just to clarify terminology (possible difference between OpenSocial and
W3C:

An OWNER is the person who added the widget to the page and made any
          customizations

A VIEWER is the current person viewing the page and has read-only access
          (Unless the current viewer is the owner) To widget properties
          and preferences (not relevant until we have profiles)

So given those terms, every viewer of the widget has their own instance?

Not necessarily.

Each widget instance has a unique combination of an APIKey and a SharedDataKey. 
It's possible that multiple users will have the same keys.

... and userId, which corresponds to the viewer (and the owner when acting as 
the viewer).

Yes, but a userId may be need not be unique:

conn = getWookieConnectorService(serverUrl, apiKey, datakey);
conn.setCurrentUser("anonymous"); // this is the viewerr
WidgetInstance instance = conn.getOrCreateInstance(widgetId);

Ross

Reply via email to