Class PreprocessedHtmlPreviewAdapter
- java.lang.Object
-
- org.nuxeo.ecm.platform.preview.adapter.base.AbstractHtmlPreviewAdapter
-
- org.nuxeo.ecm.platform.preview.adapter.base.PreprocessedHtmlPreviewAdapter
-
- All Implemented Interfaces:
HtmlPreviewAdapter
- Direct Known Subclasses:
NoteHtmlPreviewAdapter
public class PreprocessedHtmlPreviewAdapter extends AbstractHtmlPreviewAdapter
Base class for preview adapters that will use preprocessed HTML preview that is stored inside the document.- Author:
- tiry
-
-
Field Summary
Fields Modifier and Type Field Description protected List<String>
storedPreviewFieldsPaths
-
Fields inherited from class org.nuxeo.ecm.platform.preview.adapter.base.AbstractHtmlPreviewAdapter
adaptedDoc
-
-
Constructor Summary
Constructors Constructor Description PreprocessedHtmlPreviewAdapter(List<String> fieldsPaths)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
cachable()
void
cleanup()
List<Blob>
getPreviewBlobs()
List<Blob>
getPreviewBlobs(String xpath)
boolean
hasBlobToPreview()
Check if the document holds some blobs that are suitable for previewboolean
hasPreview(String xpath)
-
Methods inherited from class org.nuxeo.ecm.platform.preview.adapter.base.AbstractHtmlPreviewAdapter
getFilePreviewBlobs, getFilePreviewBlobs, getFilePreviewBlobs, getFilePreviewBlobs, getFilePreviewURL, getFilePreviewURL, getPreviewManager, getPreviewTitle, postProcessBlobs, setAdaptedDocument, updateTitleInHtml, updateTitleInHtml
-
-
-
-
Method Detail
-
getPreviewBlobs
public List<Blob> getPreviewBlobs() throws PreviewException
- Specified by:
getPreviewBlobs
in classAbstractHtmlPreviewAdapter
- Throws:
PreviewException
-
getPreviewBlobs
public List<Blob> getPreviewBlobs(String xpath) throws PreviewException
- Specified by:
getPreviewBlobs
in classAbstractHtmlPreviewAdapter
- Throws:
PreviewException
-
cleanup
public void cleanup()
-
cachable
public boolean cachable()
-
hasBlobToPreview
public boolean hasBlobToPreview() throws PreviewException
Description copied from interface:HtmlPreviewAdapter
Check if the document holds some blobs that are suitable for preview- Throws:
PreviewException
-
hasPreview
public boolean hasPreview(String xpath)
-
-