KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > portlets > wsrp > PortletSessionImpl


1 /*
2 * Copyright 2001-2004 The eXo platform SARL All rights reserved.
3 * Please look at license.txt in info directory for more license detail.
4 */

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 /*
13  * @author Mestrallet Benjamin
14  * benjmestrallet@users.sourceforge.net
15  * Date: 9 févr. 2004
16  * Time: 22:39:52
17  */

18
19 public class PortletSessionImpl extends PortletSessionTemplate {
20
21   public PortletSessionImpl(String JavaDoc portletHandle) {
22     super.portletHandle = portletHandle;
23   }
24
25   public PortletWindowSession getPortletWindowSession(String JavaDoc 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