Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ce9f351fac
Fetching contributors…

Cannot retrieve contributors at this time

40 lines (37 sloc) 1.67 kb
### Eclipse Workspace Patch 1.0
#P wookie
Index: src/org/apache/wookie/ajaxmodel/impl/WidgetAPIImpl.java
===================================================================
--- src/org/apache/wookie/ajaxmodel/impl/WidgetAPIImpl.java (revision 1238828)
+++ src/org/apache/wookie/ajaxmodel/impl/WidgetAPIImpl.java (working copy)
@@ -26,12 +26,15 @@
import org.apache.wookie.ajaxmodel.IWidgetAPI;
import org.apache.wookie.beans.IDescription;
import org.apache.wookie.beans.IName;
+import org.apache.wookie.beans.IParticipant;
import org.apache.wookie.beans.IPreference;
import org.apache.wookie.beans.IWidget;
import org.apache.wookie.beans.IWidgetInstance;
+import org.apache.wookie.beans.SharedContext;
import org.apache.wookie.beans.util.IPersistenceManager;
import org.apache.wookie.beans.util.PersistenceManagerFactory;
import org.apache.wookie.controller.PropertiesController;
+import org.apache.wookie.helpers.SharedDataHelper;
import org.apache.wookie.queues.QueueManager;
import org.apache.wookie.server.ContextListener;
import org.apache.wookie.server.LocaleHandler;
@@ -125,6 +128,16 @@
map.put("width", width);//$NON-NLS-1$
map.put("height", height);//$NON-NLS-1$
+ // Extra Viewer information
+ IParticipant viewer = new SharedContext(widgetInstance).getViewer(widgetInstance);
+ if (viewer != null){
+ map.put("viewerId", viewer.getParticipantId());
+ map.put("viewerDisplayName", viewer.getParticipantDisplayName());
+ map.put("viewerThumbnailUrl", viewer.getParticipantThumbnailUrl());
+ }
+ // Shared data
+ map.put("sharedDataKey", SharedDataHelper.getExternalSharedDataKey(widgetInstance));
+
return map;
}
Jump to Line
Something went wrong with that request. Please try again.