org.apache.jetspeed.portal.expire
Interface Expire

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
BaseExpire

public interface Expire
extends java.io.Serializable

Handles content expiration

Version:
$Id: Expire.java,v 1.5 2004/02/23 03:24:40 jford Exp $
Author:
Kevin A. Burton

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
 

Method Detail

init

public void init()
Initialize this Expiration mechanism


isExpired

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


setExpired

public void setExpired(boolean expired)
Set this as expired.


getCreationTime

public long getCreationTime()
Get the time this Expire object was created


setCreationTime

public void setCreationTime(long creationTime)
Set the time this Expire object was created


setProperty

public void setProperty(java.lang.String name,
                        java.lang.String value)
Set a property


getProperty

public java.lang.String getProperty(java.lang.String name)
Get a property


getPortlet

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


setPortlet

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



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