Class ConverterBasedHtmlPreviewAdapter
java.lang.Object
org.nuxeo.ecm.platform.preview.adapter.base.AbstractHtmlPreviewAdapter
org.nuxeo.ecm.platform.preview.adapter.base.ConverterBasedHtmlPreviewAdapter
- All Implemented Interfaces:
HtmlPreviewAdapter
Base class for preview based on "on the fly" HTML transformers
- Author:
- tiry
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
protected String
protected MimetypeRegistry
Deprecated.since 11.1.Fields inherited from class org.nuxeo.ecm.platform.preview.adapter.base.AbstractHtmlPreviewAdapter
adaptedDoc
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
cachable()
void
cleanup()
protected String
getMimeType
(File file) protected String
getMimeType
(String xpath) protected static String
getMimeType
(Blob blob) Deprecated.since 11.1.getPreviewBlobs
(String xpath) boolean
Check if the document holds some blobs that are suitable for previewboolean
hasPreview
(String xpath) void
protected void
setDigest
(BlobHolder result) protected void
setMimeType
(BlobHolder result) Methods inherited from class org.nuxeo.ecm.platform.preview.adapter.base.AbstractHtmlPreviewAdapter
getFilePreviewBlobs, getFilePreviewBlobs, getFilePreviewBlobs, getFilePreviewBlobs, getFilePreviewURL, getFilePreviewURL, getPreviewManager, getPreviewTitle, postProcessBlobs, setAdaptedDocument, updateTitleInHtml, updateTitleInHtml
-
Field Details
-
defaultFieldXPath
-
mimeTypeService
Deprecated.since 11.1. UseFramework.getService(Class)
withMimetypeRegistry
instead. -
ALLOW_ZIP_PREVIEW
- Since:
- 8.10
- See Also:
-
-
Constructor Details
-
ConverterBasedHtmlPreviewAdapter
public ConverterBasedHtmlPreviewAdapter()
-
-
Method Details
-
getConversionService
-
getMimeType
-
getMimeType
-
getDefaultPreviewFieldXPath
-
setDefaultPreviewFieldXPath
-
getPreviewBlobs
- Specified by:
getPreviewBlobs
in classAbstractHtmlPreviewAdapter
- Throws:
PreviewException
-
hasPreview
-
getPreviewBlobs
- Specified by:
getPreviewBlobs
in classAbstractHtmlPreviewAdapter
- Throws:
PreviewException
-
setMimeType
-
setDigest
-
getMimeType
- Throws:
ConversionException
-
getMimeTypeService
Deprecated.since 11.1. UseFramework.getService(Class)
withMimetypeRegistry
instead.- Throws:
ConversionException
-
cleanup
public void cleanup() -
cachable
public boolean cachable() -
hasBlobToPreview
Description copied from interface:HtmlPreviewAdapter
Check if the document holds some blobs that are suitable for preview- Throws:
PreviewException
-