Class AbstractHtmlPreviewAdapter
java.lang.Object
org.nuxeo.ecm.platform.preview.adapter.base.AbstractHtmlPreviewAdapter
- All Implemented Interfaces:
HtmlPreviewAdapter
- Direct Known Subclasses:
ConverterBasedHtmlPreviewAdapter,PreprocessedHtmlPreviewAdapter
Abstract base class for PreviewAdapters
- Author:
- tiry
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFilePreviewBlobs(boolean postProcess) getFilePreviewBlobs(String xpath) getFilePreviewBlobs(String xpath, boolean postProcess) getFilePreviewURL(String xpath) getPreviewBlobs(String xpath) protected PreviewAdapterManagerprotected StringpostProcessBlobs(List<Blob> blobs) voidprotected voidupdateTitleInHtml(File file) protected StringupdateTitleInHtml(String htmlContent) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nuxeo.ecm.platform.preview.api.HtmlPreviewAdapter
cachable, cleanup, hasBlobToPreview, hasPreview
-
Field Details
-
adaptedDoc
-
-
Constructor Details
-
AbstractHtmlPreviewAdapter
public AbstractHtmlPreviewAdapter()
-
-
Method Details
-
getPreviewManager
-
setAdaptedDocument
- Specified by:
setAdaptedDocumentin interfaceHtmlPreviewAdapter
-
getFilePreviewURL
- Specified by:
getFilePreviewURLin interfaceHtmlPreviewAdapter
-
getFilePreviewURL
- Specified by:
getFilePreviewURLin interfaceHtmlPreviewAdapter
-
updateTitleInHtml
-
updateTitleInHtml
- Throws:
IOException
-
getPreviewTitle
-
getFilePreviewBlobs
- Specified by:
getFilePreviewBlobsin interfaceHtmlPreviewAdapter- Throws:
PreviewException
-
getFilePreviewBlobs
- Specified by:
getFilePreviewBlobsin interfaceHtmlPreviewAdapter- Throws:
PreviewException
-
getFilePreviewBlobs
- Specified by:
getFilePreviewBlobsin interfaceHtmlPreviewAdapter- Throws:
PreviewException
-
getPreviewBlobs
- Throws:
PreviewException
-
getFilePreviewBlobs
- Specified by:
getFilePreviewBlobsin interfaceHtmlPreviewAdapter- Throws:
PreviewException
-
getPreviewBlobs
- Throws:
PreviewException
-
postProcessBlobs
- Throws:
PreviewException
-