Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.preview.restlet
Class PreviewCacheEntry

java.lang.Object
  extended by org.nuxeo.ecm.platform.preview.restlet.PreviewCacheEntry

public class PreviewCacheEntry
extends Object

Manage cache entry for computed previews.

This avoids the needs of rebuilding the preview on each access. This is particularly important when the generated HTML references images

Author:
tiry

Constructor Summary
PreviewCacheEntry(Calendar modified, HtmlPreviewAdapter adapter, String xpath)
           
 
Method Summary
 HtmlPreviewAdapter getAdapter()
           
 Calendar getModified()
           
 long getTimeStamp()
           
 String getXpath()
           
 void setAdapter(HtmlPreviewAdapter adapter)
           
 void setModified(Calendar modified)
           
 void setXpath(String xpath)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreviewCacheEntry

public PreviewCacheEntry(Calendar modified,
                         HtmlPreviewAdapter adapter,
                         String xpath)
Method Detail

getTimeStamp

public long getTimeStamp()

getModified

public Calendar getModified()

setModified

public void setModified(Calendar modified)

getAdapter

public HtmlPreviewAdapter getAdapter()

setAdapter

public void setAdapter(HtmlPreviewAdapter adapter)

getXpath

public String getXpath()

setXpath

public void setXpath(String xpath)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.