public class PreviewCacheEntry extends Object
This avoids the needs of rebuilding the preview on each access. This is particularly important when the generated HTML references images
Modifier and Type | Field and Description |
---|---|
protected HtmlPreviewAdapter |
adapter |
protected Calendar |
modified |
protected long |
timeStamp |
protected String |
xpath |
Constructor and Description |
---|
PreviewCacheEntry(Calendar modified,
HtmlPreviewAdapter adapter,
String xpath) |
Modifier and Type | Method and Description |
---|---|
HtmlPreviewAdapter |
getAdapter() |
Calendar |
getModified() |
long |
getTimeStamp() |
String |
getXpath() |
void |
setAdapter(HtmlPreviewAdapter adapter) |
void |
setModified(Calendar modified) |
void |
setXpath(String xpath) |
protected HtmlPreviewAdapter adapter
protected final long timeStamp
public PreviewCacheEntry(Calendar modified, HtmlPreviewAdapter adapter, String xpath)
public long getTimeStamp()
public Calendar getModified()
public void setModified(Calendar modified)
public HtmlPreviewAdapter getAdapter()
public void setAdapter(HtmlPreviewAdapter adapter)
Copyright © 2018 Nuxeo. All rights reserved.