public class ConverterBasedHtmlPreviewAdapter extends AbstractHtmlPreviewAdapter
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ALLOW_ZIP_PREVIEW |
protected String |
defaultFieldXPath |
protected MimetypeRegistry |
mimeTypeService |
static String |
OLD_PREVIEW_PROPERTY
Deprecated.
since 10.3
|
static String |
TEXT_ANNOTATIONS_PROPERTY
Deprecated.
since 10.3
|
adaptedDoc, previewManager| Constructor and Description |
|---|
ConverterBasedHtmlPreviewAdapter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cachable() |
void |
cleanup() |
ConversionService |
getConversionService() |
protected String |
getDefaultPreviewFieldXPath() |
protected static String |
getMimeType(Blob blob) |
String |
getMimeType(File file) |
protected String |
getMimeType(String xpath) |
MimetypeRegistry |
getMimeTypeService() |
List<Blob> |
getPreviewBlobs() |
List<Blob> |
getPreviewBlobs(String xpath) |
protected List<Blob> |
getPreviewFromMimeTypePreviewer(MimeTypePreviewer mtPreviewer,
Blob blob2Preview)
Deprecated.
since 10.3
|
protected PreviewAdapterManager |
getPreviewManager() |
boolean |
hasBlobToPreview()
Check if the document holds some blobs that are suitable for preview
|
boolean |
hasPreview(String xpath) |
void |
setDefaultPreviewFieldXPath(String xPath) |
protected void |
setDigest(BlobHolder result) |
protected void |
setMimeType(BlobHolder result) |
getFilePreviewBlobs, getFilePreviewBlobs, getFilePreviewBlobs, getFilePreviewBlobs, getFilePreviewURL, getFilePreviewURL, getPreviewTitle, postProcessBlobs, setAdaptedDocument, updateTitleInHtml, updateTitleInHtmlpublic static final String OLD_PREVIEW_PROPERTY
public static final String TEXT_ANNOTATIONS_PROPERTY
protected String defaultFieldXPath
protected MimetypeRegistry mimeTypeService
protected static final String ALLOW_ZIP_PREVIEW
public ConverterBasedHtmlPreviewAdapter()
public ConversionService getConversionService()
protected PreviewAdapterManager getPreviewManager()
getPreviewManager in class AbstractHtmlPreviewAdapterprotected static String getMimeType(Blob blob)
protected String getMimeType(String xpath)
protected String getDefaultPreviewFieldXPath()
public void setDefaultPreviewFieldXPath(String xPath)
public List<Blob> getPreviewBlobs() throws PreviewException
getPreviewBlobs in class AbstractHtmlPreviewAdapterPreviewExceptionpublic boolean hasPreview(String xpath)
public List<Blob> getPreviewBlobs(String xpath) throws PreviewException
getPreviewBlobs in class AbstractHtmlPreviewAdapterPreviewExceptionprotected List<Blob> getPreviewFromMimeTypePreviewer(MimeTypePreviewer mtPreviewer, Blob blob2Preview)
This allows old HTML preview to be used, to make annotations available.
To be removed with JSF UI.
protected void setMimeType(BlobHolder result)
protected void setDigest(BlobHolder result)
public String getMimeType(File file) throws ConversionException
ConversionExceptionpublic MimetypeRegistry getMimeTypeService() throws ConversionException
ConversionExceptionpublic void cleanup()
public boolean cachable()
public boolean hasBlobToPreview() throws PreviewException
HtmlPreviewAdapterPreviewExceptionCopyright © 2019 Nuxeo. All rights reserved.