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>
hasPreviewByType
static String
REST_API_PREFIX
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
blobSupportsPreview(DocumentModel doc, String xpath)
static boolean
docHasBlobToPreview(DocumentModel document)
static HtmlPreviewAdapter
getBlobPreviewAdapter(DocumentModel doc)
static String
getPreviewURL(DocumentModel doc)
static String
getPreviewURL(DocumentModel doc, String xpath)
static String
makeHtmlPage(String body)
static boolean
typeSupportsPreview(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
-
-