01: /* Copyright 2004 The JA-SIG Collaborative. All rights reserved.
02: * See license distributed with this file and
03: * available online at http://www.uportal.org/license.html
04: */
05:
06: package org.jasig.portal.container.om.window;
07:
08: import java.io.Serializable;
09:
10: import javax.servlet.http.HttpServletRequest;
11:
12: import org.apache.pluto.om.common.ObjectID;
13: import org.apache.pluto.om.entity.PortletEntity;
14: import org.apache.pluto.om.window.PortletWindow;
15: import org.apache.pluto.om.window.PortletWindowCtrl;
16: import org.jasig.portal.ChannelRuntimeData;
17: import org.jasig.portal.container.om.common.ObjectIDImpl;
18: import org.jasig.portal.container.om.entity.PortletEntityImpl;
19:
20: /**
21: * Implementation of Apache Pluto object model.
22: * @author Ken Weiner, kweiner@unicon.net
23: * @version $Revision: 35413 $
24: */
25: public class PortletWindowImpl implements PortletWindow,
26: PortletWindowCtrl, Serializable {
27:
28: private ObjectID objectId;
29: private PortletEntity portletEntity;
30:
31: private ChannelRuntimeData runtimeData;
32: private HttpServletRequest request;
33:
34: // PortletWindow methods
35:
36: public ObjectID getId() {
37: return objectId;
38: }
39:
40: public PortletEntity getPortletEntity() {
41: return portletEntity;
42: }
43:
44: // PortletWindowCtrl methods
45:
46: public void setId(String id) {
47: this .objectId = ObjectIDImpl.createFromString(id);
48: }
49:
50: public void setPortletEntity(PortletEntity portletEntity) {
51: this .portletEntity = portletEntity;
52: ((PortletEntityImpl) portletEntity).addPortletWindow(this );
53: }
54:
55: // Additional methods
56:
57: public void setChannelRuntimeData(ChannelRuntimeData runtimeData) {
58: this .runtimeData = runtimeData;
59: }
60:
61: public ChannelRuntimeData getChannelRuntimeData() {
62: return this .runtimeData;
63: }
64:
65: public void setHttpServletRequest(HttpServletRequest request) {
66: this .request = request;
67: }
68:
69: public HttpServletRequest getHttpServletRequest() {
70: return this.request;
71: }
72: }
|