org.apache.jetspeed.portal.expire
Class BaseExpire

java.lang.Object
  extended byorg.apache.jetspeed.portal.expire.BaseExpire
All Implemented Interfaces:
Expire, java.io.Serializable
Direct Known Subclasses:
FileWatchExpire, NoExpire

public abstract class BaseExpire
extends java.lang.Object
implements Expire

Handles content expiration

Version:
$Id: BaseExpire.java,v 1.5 2004/02/23 03:24:40 jford Exp $
Author:
Kevin A. Burton
See Also:
Serialized Form

Constructor Summary
BaseExpire()
           
 
Method Summary
 long getCreationTime()
          Get the time this Expire object was created
 Portlet getPortlet()
          Get the Portlet on which this is based.
 java.lang.String getProperty(java.lang.String name)
          Get a property
 void init()
          Initialize this Expiration mechanism
 boolean isExpired()
          Return true if this object has expired.
 void setCreationTime(long creationTime)
          Set the time this Expire object was created
 void setExpired(boolean expired)
          Set this as expired.
 void setPortlet(Portlet portlet)
          Set the Portlet on which this is based.
 void setProperty(java.lang.String name, java.lang.String value)
          Set a property
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseExpire

public BaseExpire()
Method Detail

init

public void init()
Description copied from interface: Expire
Initialize this Expiration mechanism

Specified by:
init in interface Expire
See Also:
Expire.init()

isExpired

public boolean isExpired()
Description copied from interface: Expire
Return true if this object has expired. Provide your own implementation of this if you want to determine dynamic expiration.

Specified by:
isExpired in interface Expire
See Also:
Expire.isExpired()

setExpired

public void setExpired(boolean expired)
Description copied from interface: Expire
Set this as expired.

Specified by:
setExpired in interface Expire
See Also:
Expire.setExpired(boolean)

getCreationTime

public long getCreationTime()
Description copied from interface: Expire
Get the time this Expire object was created

Specified by:
getCreationTime in interface Expire
See Also:
Expire.getCreationTime()

setCreationTime

public void setCreationTime(long creationTime)
Description copied from interface: Expire
Set the time this Expire object was created

Specified by:
setCreationTime in interface Expire
See Also:
Expire.setCreationTime(long)

setProperty

public void setProperty(java.lang.String name,
                        java.lang.String value)
Description copied from interface: Expire
Set a property

Specified by:
setProperty in interface Expire
See Also:
Expire.setProperty(java.lang.String, java.lang.String)

getProperty

public java.lang.String getProperty(java.lang.String name)
Description copied from interface: Expire
Get a property

Specified by:
getProperty in interface Expire
See Also:
Expire.getProperty(java.lang.String)

getPortlet

public Portlet getPortlet()
Get the Portlet on which this is based.

Specified by:
getPortlet in interface Expire

setPortlet

public void setPortlet(Portlet portlet)
Set the Portlet on which this is based.

Specified by:
setPortlet in interface Expire


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.