Interface HtmlPreviewAdapter
-
- All Known Implementing Classes:
AbstractHtmlPreviewAdapter,ConverterBasedHtmlPreviewAdapter,NoteHtmlPreviewAdapter,PreprocessedHtmlPreviewAdapter
public interface HtmlPreviewAdapterInterface for the Preview DocumentModel adapter.- Author:
- tiry
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancachable()voidcleanup()List<Blob>getFilePreviewBlobs()List<Blob>getFilePreviewBlobs(boolean postProcess)List<Blob>getFilePreviewBlobs(String xpath)List<Blob>getFilePreviewBlobs(String xpath, boolean postProcess)StringgetFilePreviewURL()StringgetFilePreviewURL(String xpath)booleanhasBlobToPreview()Check if the document holds some blobs that are suitable for previewbooleanhasPreview(String xpath)voidsetAdaptedDocument(DocumentModel doc)
-
-
-
Method Detail
-
cachable
boolean cachable()
-
getFilePreviewURL
String getFilePreviewURL()
-
getFilePreviewBlobs
List<Blob> getFilePreviewBlobs() throws PreviewException
- Throws:
PreviewException
-
getFilePreviewBlobs
List<Blob> getFilePreviewBlobs(String xpath) throws PreviewException
- Throws:
PreviewException
-
getFilePreviewBlobs
List<Blob> getFilePreviewBlobs(boolean postProcess) throws PreviewException
- Throws:
PreviewException
-
getFilePreviewBlobs
List<Blob> getFilePreviewBlobs(String xpath, boolean postProcess) throws PreviewException
- Throws:
PreviewException
-
setAdaptedDocument
void setAdaptedDocument(DocumentModel doc)
-
cleanup
void cleanup()
-
hasBlobToPreview
boolean hasBlobToPreview() throws PreviewExceptionCheck if the document holds some blobs that are suitable for preview- Throws:
PreviewException- Since:
- 5.7.3
-
hasPreview
boolean hasPreview(String xpath)
- Since:
- 8.2
-
-