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 booleancachable()voidcleanup()List<Blob>getPreviewBlobs()List<Blob>getPreviewBlobs(String xpath)booleanhasBlobToPreview()Check if the document holds some blobs that are suitable for previewbooleanhasPreview(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:
getPreviewBlobsin classAbstractHtmlPreviewAdapter- Throws:
PreviewException
-
getPreviewBlobs
public List<Blob> getPreviewBlobs(String xpath) throws PreviewException
- Specified by:
getPreviewBlobsin classAbstractHtmlPreviewAdapter- Throws:
PreviewException
-
cleanup
public void cleanup()
-
cachable
public boolean cachable()
-
hasBlobToPreview
public boolean hasBlobToPreview() throws PreviewExceptionDescription copied from interface:HtmlPreviewAdapterCheck if the document holds some blobs that are suitable for preview- Throws:
PreviewException
-
hasPreview
public boolean hasPreview(String xpath)
-
-