public abstract class AbstractHtmlPreviewAdapter extends Object implements HtmlPreviewAdapter
| Modifier and Type | Field and Description |
|---|---|
protected DocumentModel |
adaptedDoc |
protected static PreviewAdapterManager |
previewManager |
| Constructor and Description |
|---|
AbstractHtmlPreviewAdapter() |
| Modifier and Type | Method and Description |
|---|---|
List<Blob> |
getFilePreviewBlobs() |
List<Blob> |
getFilePreviewBlobs(boolean postProcess) |
List<Blob> |
getFilePreviewBlobs(String xpath) |
List<Blob> |
getFilePreviewBlobs(String xpath,
boolean postProcess) |
String |
getFilePreviewURL() |
String |
getFilePreviewURL(String xpath) |
protected abstract List<Blob> |
getPreviewBlobs() |
protected abstract List<Blob> |
getPreviewBlobs(String xpath) |
protected PreviewAdapterManager |
getPreviewManager() |
protected String |
getPreviewTitle() |
protected List<Blob> |
postProcessBlobs(List<Blob> blobs) |
void |
setAdaptedDocument(DocumentModel doc) |
protected void |
updateTitleInHtml(File file) |
protected String |
updateTitleInHtml(String htmlContent) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcachable, cleanup, hasBlobToPreview, hasPreviewprotected DocumentModel adaptedDoc
protected static PreviewAdapterManager previewManager
public AbstractHtmlPreviewAdapter()
protected PreviewAdapterManager getPreviewManager()
public void setAdaptedDocument(DocumentModel doc)
setAdaptedDocument in interface HtmlPreviewAdapterpublic String getFilePreviewURL()
getFilePreviewURL in interface HtmlPreviewAdapterpublic String getFilePreviewURL(String xpath)
getFilePreviewURL in interface HtmlPreviewAdapterprotected String updateTitleInHtml(String htmlContent)
protected void updateTitleInHtml(File file) throws IOException
IOExceptionprotected String getPreviewTitle()
public List<Blob> getFilePreviewBlobs() throws PreviewException
getFilePreviewBlobs in interface HtmlPreviewAdapterPreviewExceptionpublic List<Blob> getFilePreviewBlobs(String xpath) throws PreviewException
getFilePreviewBlobs in interface HtmlPreviewAdapterPreviewExceptionpublic List<Blob> getFilePreviewBlobs(boolean postProcess) throws PreviewException
getFilePreviewBlobs in interface HtmlPreviewAdapterPreviewExceptionprotected abstract List<Blob> getPreviewBlobs() throws PreviewException
PreviewExceptionpublic List<Blob> getFilePreviewBlobs(String xpath, boolean postProcess) throws PreviewException
getFilePreviewBlobs in interface HtmlPreviewAdapterPreviewExceptionprotected abstract List<Blob> getPreviewBlobs(String xpath) throws PreviewException
PreviewExceptionprotected List<Blob> postProcessBlobs(List<Blob> blobs) throws PreviewException
PreviewExceptionCopyright © 2016 Nuxeo SA. All rights reserved.