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 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
Copyright © 2013 Nuxeo SA. All Rights Reserved.