1/*2 * Copyright 2000-2001,2004 The Apache Software Foundation.3 * 4 * Licensed under the Apache License, Version 2.0 (the "License");5 * you may not use this file except in compliance with the License.6 * You may obtain a copy of the License at7 * 8 * http://www.apache.org/licenses/LICENSE-2.09 * 10 * Unless required by applicable law or agreed to in writing, software11 * distributed under the License is distributed on an "AS IS" BASIS,12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.13 * See the License for the specific language governing permissions and14 * limitations under the License.15 */1617packageorg.apache.jetspeed.portal.expire;
1819importorg.apache.jetspeed.portal.*;
2021import java.io.Serializable;
22/***23Handles content expiration2425@author <a href="mailto:burton@apache.org">Kevin A. Burton</a>26@version $Id: Expire.java,v 1.5 2004/02/23 03:24:40 jford Exp $27*/28publicinterfaceExpireextends Serializable{
293031/***32 Initialize this Expiration mechanism3334 @author <a href="mailto:burton@apache.org">Kevin A. Burton</a>35 @version $Id: Expire.java,v 1.5 2004/02/23 03:24:40 jford Exp $36 */37publicvoid init();
3839/***40 Return true if this object has expired. Provide your own implementation of41 this if you want to determine dynamic expiration.4243 @author <a href="mailto:burton@apache.org">Kevin A. Burton</a>44 @version $Id: Expire.java,v 1.5 2004/02/23 03:24:40 jford Exp $45 */46publicboolean isExpired();
4748/***49 Set this as expired.5051 @author <a href="mailto:burton@apache.org">Kevin A. Burton</a>52 @version $Id: Expire.java,v 1.5 2004/02/23 03:24:40 jford Exp $53 */54publicvoid setExpired( boolean expired );
5556/***57 Get the time this Expire object was created5859 @author <a href="mailto:burton@apache.org">Kevin A. Burton</a>60 @version $Id: Expire.java,v 1.5 2004/02/23 03:24:40 jford Exp $61 */62publiclong getCreationTime();
6364/***65 Set the time this Expire object was created66 @author <a href="mailto:burton@apache.org">Kevin A. Burton</a>67 @version $Id: Expire.java,v 1.5 2004/02/23 03:24:40 jford Exp $68 */69publicvoid setCreationTime( long creationTime );
7071/***72 Set a property7374 @author <a href="mailto:burton@apache.org">Kevin A. Burton</a>75 @version $Id: Expire.java,v 1.5 2004/02/23 03:24:40 jford Exp $76 */77publicvoid setProperty( String name, String value );
7879/***80 Get a property8182 @author <a href="mailto:burton@apache.org">Kevin A. Burton</a>83 @version $Id: Expire.java,v 1.5 2004/02/23 03:24:40 jford Exp $84 */85public String getProperty( String name );
8687/***88 Get the Portlet on which this is based.8990 @author <a href="mailto:burton@apache.org">Kevin A. Burton</a>91 @version $Id: Expire.java,v 1.5 2004/02/23 03:24:40 jford Exp $92 */93publicPortlet getPortlet();
9495/***96 Set the Portlet on which this is based.9798 @author <a href="mailto:burton@apache.org">Kevin A. Burton</a>99 @version $Id: Expire.java,v 1.5 2004/02/23 03:24:40 jford Exp $100 */101publicvoid setPortlet( Portlet portlet );
102103104105 }
106