Class AbstractHtmlPreviewAdapter
- java.lang.Object
-
- org.nuxeo.ecm.platform.preview.adapter.base.AbstractHtmlPreviewAdapter
-
- All Implemented Interfaces:
HtmlPreviewAdapter
- Direct Known Subclasses:
ConverterBasedHtmlPreviewAdapter,PreprocessedHtmlPreviewAdapter
public abstract class AbstractHtmlPreviewAdapter extends Object implements HtmlPreviewAdapter
Abstract base class for PreviewAdapters- Author:
- tiry
-
-
Field Summary
Fields Modifier and Type Field Description protected DocumentModeladaptedDoc
-
Constructor Summary
Constructors Constructor Description AbstractHtmlPreviewAdapter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description List<Blob>getFilePreviewBlobs()List<Blob>getFilePreviewBlobs(boolean postProcess)List<Blob>getFilePreviewBlobs(String xpath)List<Blob>getFilePreviewBlobs(String xpath, boolean postProcess)StringgetFilePreviewURL()StringgetFilePreviewURL(String xpath)protected abstract List<Blob>getPreviewBlobs()protected abstract List<Blob>getPreviewBlobs(String xpath)protected PreviewAdapterManagergetPreviewManager()protected StringgetPreviewTitle()protected List<Blob>postProcessBlobs(List<Blob> blobs)voidsetAdaptedDocument(DocumentModel doc)protected voidupdateTitleInHtml(File file)protected StringupdateTitleInHtml(String htmlContent)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuxeo.ecm.platform.preview.api.HtmlPreviewAdapter
cachable, cleanup, hasBlobToPreview, hasPreview
-
-
-
-
Field Detail
-
adaptedDoc
protected DocumentModel adaptedDoc
-
-
Method Detail
-
getPreviewManager
protected PreviewAdapterManager getPreviewManager()
-
setAdaptedDocument
public void setAdaptedDocument(DocumentModel doc)
- Specified by:
setAdaptedDocumentin interfaceHtmlPreviewAdapter
-
getFilePreviewURL
public String getFilePreviewURL()
- Specified by:
getFilePreviewURLin interfaceHtmlPreviewAdapter
-
getFilePreviewURL
public String getFilePreviewURL(String xpath)
- Specified by:
getFilePreviewURLin interfaceHtmlPreviewAdapter
-
updateTitleInHtml
protected void updateTitleInHtml(File file) throws IOException
- Throws:
IOException
-
getPreviewTitle
protected String getPreviewTitle()
-
getFilePreviewBlobs
public List<Blob> getFilePreviewBlobs() throws PreviewException
- Specified by:
getFilePreviewBlobsin interfaceHtmlPreviewAdapter- Throws:
PreviewException
-
getFilePreviewBlobs
public List<Blob> getFilePreviewBlobs(String xpath) throws PreviewException
- Specified by:
getFilePreviewBlobsin interfaceHtmlPreviewAdapter- Throws:
PreviewException
-
getFilePreviewBlobs
public List<Blob> getFilePreviewBlobs(boolean postProcess) throws PreviewException
- Specified by:
getFilePreviewBlobsin interfaceHtmlPreviewAdapter- Throws:
PreviewException
-
getPreviewBlobs
protected abstract List<Blob> getPreviewBlobs() throws PreviewException
- Throws:
PreviewException
-
getFilePreviewBlobs
public List<Blob> getFilePreviewBlobs(String xpath, boolean postProcess) throws PreviewException
- Specified by:
getFilePreviewBlobsin interfaceHtmlPreviewAdapter- Throws:
PreviewException
-
getPreviewBlobs
protected abstract List<Blob> getPreviewBlobs(String xpath) throws PreviewException
- Throws:
PreviewException
-
postProcessBlobs
protected List<Blob> postProcessBlobs(List<Blob> blobs) throws PreviewException
- Throws:
PreviewException
-
-