public class PreviewHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PREVIEWURL_DEFAULTXPATH |
static String |
PREVIEWURL_PREFIX |
Modifier and Type | Method and Description |
---|---|
static boolean |
docHasBlobToPreview(DocumentModel document) |
static DocumentRef |
getDocumentRefFromPreviewURL(String url) |
static String |
getPreviewURL(DocumentModel doc) |
static String |
getPreviewURL(DocumentModel doc,
String xpath) |
static String |
getViewerURL(DocumentModel doc,
String xpath,
Blob blob,
String baseURL) |
static boolean |
isPDF(Blob blob) |
static boolean |
typeSupportsPreview(DocumentModel doc) |
public static final String PREVIEWURL_PREFIX
public static final String PREVIEWURL_DEFAULTXPATH
public static String getPreviewURL(DocumentModel doc)
public static String getPreviewURL(DocumentModel doc, String xpath)
public static DocumentRef getDocumentRefFromPreviewURL(String url)
public static boolean typeSupportsPreview(DocumentModel doc)
public static boolean docHasBlobToPreview(DocumentModel document) throws PreviewException
document
- PreviewException
public static String getViewerURL(DocumentModel doc, String xpath, Blob blob, String baseURL)
public static boolean isPDF(Blob blob)
Copyright © 2015 Nuxeo SA. All rights reserved.