public class PreviewHelper extends Object
Modifier and Type | Field and Description |
---|---|
protected static Map<String,Boolean> |
hasPreviewByType |
protected static String |
PDF_EXTENSION |
protected static String |
PDF_MIMETYPE |
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
protected static final String PDF_MIMETYPE
protected static final String PDF_EXTENSION
protected static final Map<String,Boolean> hasPreviewByType
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)
Copyright © 2016 Nuxeo SA. All rights reserved.