com.arsdigita.portal.apportlet
Class TimestampCachingPortletRenderer

java.lang.Object
  extended bycom.arsdigita.bebop.Completable
      extended bycom.arsdigita.bebop.SimpleComponent
          extended bycom.arsdigita.bebop.TextStylable
              extended bycom.arsdigita.bebop.BlockStylable
                  extended bycom.arsdigita.bebop.SimpleContainer
                      extended bycom.arsdigita.bebop.portal.Portlet
                          extended bycom.arsdigita.bebop.portal.AbstractPortletRenderer
                              extended bycom.arsdigita.portal.apportlet.TimestampCachingPortletRenderer
All Implemented Interfaces:
BebopConstants, Cloneable, Component, Container, Lockable, PortletRenderer

public abstract class TimestampCachingPortletRenderer
extends AbstractPortletRenderer

TimestampCachingPortletRenderer

Version:
$Revision: #4 $ $Date: 2004/04/07 $
Author:
rhs@mit.edu

Field Summary
 
Fields inherited from class com.arsdigita.bebop.portal.Portlet
NARROW_PROFILE, versionId, WIDE_PROFILE
 
Fields inherited from class com.arsdigita.bebop.BlockStylable
ABSBOTTOM, ABSMIDDLE, BASELINE, BOTTOM, CENTER, FULL_WIDTH, INSERT, LEFT, MIDDLE, RIGHT, TEXTTOP, TOP
 
Fields inherited from class com.arsdigita.bebop.SimpleComponent
m_attr
 
Fields inherited from interface com.arsdigita.bebop.util.BebopConstants
BEBOP_BORDER, BEBOP_BOXPANEL, BEBOP_CELL, BEBOP_CHECKBOX, BEBOP_CHECKBOXGROUP, BEBOP_COLUMNPANEL, BEBOP_DATE, BEBOP_DATETIME, BEBOP_DHTMLEDITOR, BEBOP_FORMERRORS, BEBOP_FORMWIDGET, BEBOP_GRIDPANEL, BEBOP_LIST, BEBOP_MULTISELECT, BEBOP_OPTION, BEBOP_PAD, BEBOP_PADFRAME, BEBOP_PANELROW, BEBOP_PORTAL, BEBOP_PORTLET, BEBOP_RADIO, BEBOP_RADIOGROUP, BEBOP_SEG_BODY, BEBOP_SEG_HEADER, BEBOP_SEG_PANEL, BEBOP_SEGMENT, BEBOP_SELECT, BEBOP_TABLE, BEBOP_TABLEBODY, BEBOP_TABLEROW, BEBOP_TEXTAREA
 
Fields inherited from interface com.arsdigita.bebop.Component
BEBOP_XML_NS, CLASS, ID, ON_CLICK, STYLE
 
Constructor Summary
TimestampCachingPortletRenderer(Portlet portlet)
           
 
Method Summary
 Object getCacheKey()
           
abstract  Date getTimestamp()
           
 boolean isDirty()
          Developer's may use this method to implement cacheing of a portlet's content.
 
Methods inherited from class com.arsdigita.bebop.portal.AbstractPortletRenderer
generateBodyXML, generateXML, getDateCached
 
Methods inherited from class com.arsdigita.bebop.portal.Portlet
getCellNumber, getProfile, getSortKey, getTitle, setCellNumber, setPortletAttribute, setProfile, setSortKey, setTitle
 
Methods inherited from class com.arsdigita.bebop.SimpleContainer
add, add, children, contains, generateChildrenXML, generateParent, get, getNamespace, getTag, indexOf, isEmpty, setNamespace, setTag, size
 
Methods inherited from class com.arsdigita.bebop.BlockStylable
setBorder, setBorder, setBorderColor, setHorizontalAlignment, setMargin, setMargin, setPadding, setPadding, setVerticalAlignment
 
Methods inherited from class com.arsdigita.bebop.TextStylable
setBackgroundColor, setColor
 
Methods inherited from class com.arsdigita.bebop.SimpleComponent
clone, exportAttributes, getAttribute, getClassAttr, getIdAttr, getKey, getMetaDataAttribute, getStyleAttr, hasAttributes, isLocked, isVisible, lock, register, register, respond, setAttribute, setClassAttr, setIdAttr, setKey, setMetaDataAttribute, setStyleAttr, setVisible
 
Methods inherited from class com.arsdigita.bebop.Completable
addCompletionListener, fireCompletionEvent
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.arsdigita.bebop.Component
getClassAttr, getIdAttr, getKey, getStyleAttr, isVisible, register, register, respond, setClassAttr, setIdAttr, setKey, setStyleAttr, setVisible
 
Methods inherited from interface com.arsdigita.util.Lockable
isLocked, lock
 

Constructor Detail

TimestampCachingPortletRenderer

public TimestampCachingPortletRenderer(Portlet portlet)
Method Detail

isDirty

public boolean isDirty()
Description copied from class: AbstractPortletRenderer
Developer's may use this method to implement cacheing of a portlet's content. Portlet's default implementation always returns true.

Specified by:
isDirty in interface PortletRenderer
Overrides:
isDirty in class AbstractPortletRenderer
Returns:
whether or not the portlet's content is dirty and must be regenerated.

getCacheKey

public Object getCacheKey()
Specified by:
getCacheKey in interface PortletRenderer
Overrides:
getCacheKey in class AbstractPortletRenderer

getTimestamp

public abstract Date getTimestamp()


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC