001: /* Copyright 2004 The JA-SIG Collaborative. All rights reserved.
002: * See license distributed with this file and
003: * available online at http://www.uportal.org/license.html
004: */
005:
006: package org.jasig.portal.channels.portlet;
007:
008: import java.util.Map;
009:
010: import javax.portlet.PortletMode;
011: import javax.portlet.WindowState;
012:
013: import org.apache.pluto.om.window.PortletWindow;
014:
015: /**
016: * An object that keeps track of session data.
017: * @author Ken Weiner, kweiner@unicon.net
018: * @version $Revision: 35884 $
019: */
020: public class ChannelData {
021: private boolean portletWindowInitialized = false;
022: private PortletWindow portletWindow = null;
023: private Map userInfo = null;
024: private boolean processedAction = false;
025: private boolean receivedEvent = false;
026: private boolean focused = false;
027: private PortletMode newPortletMode = null;
028: private long lastRenderTime = Long.MIN_VALUE;
029: private String expirationCache = null;
030: private WindowState newWindowState = null;
031:
032: public boolean isPortletWindowInitialized() {
033: return this .portletWindowInitialized;
034: }
035:
036: public PortletWindow getPortletWindow() {
037: return this .portletWindow;
038: }
039:
040: public Map getUserInfo() {
041: return this .userInfo;
042: }
043:
044: public boolean hasProcessedAction() {
045: return this .processedAction;
046: }
047:
048: public boolean hasReceivedEvent() {
049: return this .receivedEvent;
050: }
051:
052: public boolean isFocused() {
053: return this .focused;
054: }
055:
056: public PortletMode getNewPortletMode() {
057: return this .newPortletMode;
058: }
059:
060: public WindowState getNewWindowState() {
061: return this .newWindowState;
062: }
063:
064: public long getLastRenderTime() {
065: return this .lastRenderTime;
066: }
067:
068: public String getExpirationCache() {
069: return this .expirationCache;
070: }
071:
072: public void setPortletWindowInitialized(
073: boolean portletWindowInitialized) {
074: this .portletWindowInitialized = portletWindowInitialized;
075: }
076:
077: public void setPortletWindow(PortletWindow portletWindow) {
078: this .portletWindow = portletWindow;
079: }
080:
081: public void setUserInfo(Map userInfo) {
082: this .userInfo = userInfo;
083: }
084:
085: public void setProcessedAction(boolean processedAction) {
086: this .processedAction = processedAction;
087: }
088:
089: public void setReceivedEvent(boolean receivedEvent) {
090: this .receivedEvent = receivedEvent;
091: }
092:
093: public void setFocused(boolean focused) {
094: this .focused = focused;
095: }
096:
097: public void setNewPortletMode(PortletMode newPortletMode) {
098: this .newPortletMode = newPortletMode;
099: }
100:
101: public void setNewWindowState(WindowState newWindowState) {
102: this .newWindowState = newWindowState;
103: }
104:
105: public void setLastRenderTime(long lastRenderTime) {
106: this .lastRenderTime = lastRenderTime;
107: }
108:
109: public void setExpirationCache(String expirationCache) {
110: this.expirationCache = expirationCache;
111: }
112: }
|