Class PreviewHelper
- java.lang.Object
-
- org.nuxeo.ecm.platform.preview.helper.PreviewHelper
-
public class PreviewHelper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static Map<String,Boolean>hasPreviewByTypestatic StringREST_API_PREFIX
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanblobSupportsPreview(DocumentModel doc, String xpath)static booleandocHasBlobToPreview(DocumentModel document)static HtmlPreviewAdaptergetBlobPreviewAdapter(DocumentModel doc)static StringgetPreviewURL(DocumentModel doc)static StringgetPreviewURL(DocumentModel doc, String xpath)static StringmakeHtmlPage(String body)static booleantypeSupportsPreview(DocumentModel doc)
-
-
-
Field Detail
-
REST_API_PREFIX
public static final String REST_API_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
getPreviewURL
public static String getPreviewURL(DocumentModel doc)
-
getPreviewURL
public static String getPreviewURL(DocumentModel doc, String xpath)
-
typeSupportsPreview
public static boolean typeSupportsPreview(DocumentModel doc)
-
docHasBlobToPreview
public static boolean docHasBlobToPreview(DocumentModel document) throws PreviewException
- Throws:
PreviewException- Since:
- 5.7.3
-
blobSupportsPreview
public static boolean blobSupportsPreview(DocumentModel doc, String xpath)
- Since:
- 8.2
-
getBlobPreviewAdapter
public static HtmlPreviewAdapter getBlobPreviewAdapter(DocumentModel doc)
- Since:
- 8.2
-
-