1 5 6 package org.exoplatform.portlets.wsrp; 7 8 import org.exoplatform.services.wsrp.consumer.PortletWindowSession; 9 import org.exoplatform.services.wsrp.consumer.adapters.PortletWindowSessionAdapter; 10 import org.exoplatform.services.wsrp.consumer.templates.PortletSessionTemplate; 11 12 18 19 public class PortletSessionImpl extends PortletSessionTemplate { 20 21 public PortletSessionImpl(String portletHandle) { 22 super.portletHandle = portletHandle; 23 } 24 25 public PortletWindowSession getPortletWindowSession(String windowID) { 26 PortletWindowSession session = (PortletWindowSession) this.portletWindowSessions.get(windowID); 27 if (session == null) { 28 session = new PortletWindowSessionAdapter(); 29 ((PortletWindowSessionAdapter)session).setWindowID(windowID); 30 ((PortletWindowSessionAdapter)session).setPortletSession(this); 31 this.portletWindowSessions.put(windowID, session); 32 } 33 return session; 34 } 35 36 } | Popular Tags |