1 16 17 package org.apache.jetspeed.portal.expire; 18 19 21 import org.apache.jetspeed.portal.*; 22 23 import java.util.*; 25 26 32 public abstract class BaseExpire implements Expire { 33 34 private boolean expired = false; 35 private long creationTime; 36 private Hashtable properties = new Hashtable(); 37 private Portlet portlet = null; 38 39 44 public void init() { 45 this.setCreationTime( System.currentTimeMillis() ); 46 } 47 48 53 public boolean isExpired() { 54 return this.expired; 55 } 56 57 62 public void setExpired( boolean expired ) { 63 this.expired = expired; 64 } 65 66 71 public long getCreationTime() { 72 return this.creationTime; 73 } 74 75 80 public void setCreationTime( long creationTime ) { 81 82 this.creationTime = creationTime; 83 } 84 85 90 public void setProperty( String name, String value ) { 91 this.properties.put( name, value ); 92 } 93 94 99 public String getProperty( String name ) { 100 return (String )this.properties.get( name ); 101 } 102 103 109 public Portlet getPortlet() { 110 return this.portlet; 111 } 112 113 119 public void setPortlet( Portlet portlet ) { 120 this.portlet = portlet; 121 } 122 123 124 125 } 126 127 | Popular Tags |