KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > portletcontainer > impl > monitor > CachedDataImpl


1 /*
2  * Copyright 2001-2003 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.services.portletcontainer.impl.monitor;
7
8
9 import javax.portlet.PortletMode;
10 import javax.portlet.WindowState;
11 import org.exoplatform.services.portletcontainer.monitor.CachedData;
12
13 /**
14  * Created y the eXo platform team
15  * User: Benjamin Mestrallet
16  * Date: 6 mai 2004
17  */

18 public class CachedDataImpl implements CachedData {
19   private long lastAccessTime = 0;
20   private String JavaDoc title;
21   private char[] content;
22   private PortletMode mode;
23   private WindowState state;
24
25   public char[] getContent() {
26     return content;
27   }
28
29   public synchronized void setContent(char[] content) {
30     this.content = content;
31   }
32
33   public long getLastAccessTime() {
34     return lastAccessTime;
35   }
36
37   public synchronized void setLastAccessTime(long lastAccessTime) {
38     this.lastAccessTime = lastAccessTime;
39   }
40
41   public String JavaDoc getTitle() {
42     return title;
43   }
44
45   public synchronized void setTitle(String JavaDoc title) {
46     this.title = title;
47   }
48
49   public PortletMode getMode() {
50     return mode;
51   }
52
53   public synchronized void setMode(PortletMode mode) {
54     this.mode = mode;
55   }
56
57   public WindowState getWindowState() {
58     return state;
59   }
60
61   public synchronized void setWindowState(WindowState state) {
62     this.state = state;
63   }
64 }
Popular Tags