public class PreviewHelper extends Object
| Modifier and Type | Field and Description | 
|---|---|
protected static Map<String,Boolean> | 
hasPreviewByType  | 
static String | 
REST_API_PREFIX  | 
| Modifier and Type | Method and 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 boolean | 
typeSupportsPreview(DocumentModel doc)  | 
public static final String REST_API_PREFIX
protected static final Map<String,Boolean> hasPreviewByType
public static String getPreviewURL(DocumentModel doc)
public static String getPreviewURL(DocumentModel doc, String xpath)
public static boolean typeSupportsPreview(DocumentModel doc)
public static boolean docHasBlobToPreview(DocumentModel document) throws PreviewException
document - PreviewExceptionpublic static boolean blobSupportsPreview(DocumentModel doc, String xpath)
public static HtmlPreviewAdapter getBlobPreviewAdapter(DocumentModel doc)
Copyright © 2019 Nuxeo. All rights reserved.