Nuxeo Enterprise Platform 5.4

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

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

public class PreviewCacheEntry
extends java.lang.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(java.util.Calendar modified, HtmlPreviewAdapter adapter, java.lang.String xpath)
           
 
Method Summary
 HtmlPreviewAdapter getAdapter()
           
 java.util.Calendar getModified()
           
 long getTimeStamp()
           
 java.lang.String getXpath()
           
 void setAdapter(HtmlPreviewAdapter adapter)
           
 void setModified(java.util.Calendar modified)
           
 void setXpath(java.lang.String xpath)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreviewCacheEntry

public PreviewCacheEntry(java.util.Calendar modified,
                         HtmlPreviewAdapter adapter,
                         java.lang.String xpath)
Method Detail

getTimeStamp

public long getTimeStamp()

getModified

public java.util.Calendar getModified()

setModified

public void setModified(java.util.Calendar modified)

getAdapter

public HtmlPreviewAdapter getAdapter()

setAdapter

public void setAdapter(HtmlPreviewAdapter adapter)

getXpath

public java.lang.String getXpath()

setXpath

public void setXpath(java.lang.String xpath)

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.