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, wait
cachable, cleanup, hasBlobToPreview, hasPreview
protected DocumentModel adaptedDoc
protected static PreviewAdapterManager previewManager
public AbstractHtmlPreviewAdapter()
protected PreviewAdapterManager getPreviewManager()
public void setAdaptedDocument(DocumentModel doc)
setAdaptedDocument
in interface HtmlPreviewAdapter
public String getFilePreviewURL()
getFilePreviewURL
in interface HtmlPreviewAdapter
public String getFilePreviewURL(String xpath)
getFilePreviewURL
in interface HtmlPreviewAdapter
protected String updateTitleInHtml(String htmlContent)
protected void updateTitleInHtml(File file) throws IOException
IOException
protected String getPreviewTitle()
public List<Blob> getFilePreviewBlobs() throws PreviewException
getFilePreviewBlobs
in interface HtmlPreviewAdapter
PreviewException
public List<Blob> getFilePreviewBlobs(String xpath) throws PreviewException
getFilePreviewBlobs
in interface HtmlPreviewAdapter
PreviewException
public List<Blob> getFilePreviewBlobs(boolean postProcess) throws PreviewException
getFilePreviewBlobs
in interface HtmlPreviewAdapter
PreviewException
protected abstract List<Blob> getPreviewBlobs() throws PreviewException
PreviewException
public List<Blob> getFilePreviewBlobs(String xpath, boolean postProcess) throws PreviewException
getFilePreviewBlobs
in interface HtmlPreviewAdapter
PreviewException
protected abstract List<Blob> getPreviewBlobs(String xpath) throws PreviewException
PreviewException
protected List<Blob> postProcessBlobs(List<Blob> blobs) throws PreviewException
PreviewException
Copyright © 2018 Nuxeo. All rights reserved.