1 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 18 public class CachedDataImpl implements CachedData { 19 private long lastAccessTime = 0; 20 private String 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 getTitle() { 42 return title; 43 } 44 45 public synchronized void setTitle(String 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 |