public class WebIdFunctions extends Object
| Constructor and Description |
|---|
WebIdFunctions() |
| Modifier and Type | Method and Description |
|---|---|
protected static org.nuxeo.ecm.platform.url.api.DocumentView |
getDownloadFileProperties(org.nuxeo.ecm.core.api.DocumentLocation docLoc,
org.nuxeo.ecm.core.api.DocumentModel doc) |
protected static org.nuxeo.ecm.platform.url.api.DocumentView |
getDownloadPictureProperties(org.nuxeo.ecm.core.api.DocumentLocation docLoc,
org.nuxeo.ecm.core.api.DocumentModel doc,
String blobPropertyName) |
static String |
getPreferredDisplayId(org.nuxeo.ecm.core.api.DocumentModel doc) |
static String |
getPreferredImgUrl(String patternName,
org.nuxeo.ecm.core.api.DocumentModel doc,
String blobPropertyName,
String filename)
Return the url by webid or the path (if not defined)
|
static String |
getPreferredLinkUrl(org.nuxeo.ecm.core.api.DocumentModel doc)
Return the url by webid or the path (if not defined)
|
static boolean |
hasWebId(org.nuxeo.ecm.core.api.DocumentModel doc)
Return true if document has a webid defined
|
public static boolean hasWebId(org.nuxeo.ecm.core.api.DocumentModel doc)
doc - the current docpublic static String getPreferredLinkUrl(org.nuxeo.ecm.core.api.DocumentModel doc)
doc - public static String getPreferredImgUrl(String patternName, org.nuxeo.ecm.core.api.DocumentModel doc, String blobPropertyName, String filename)
patternName - doc - blobPropertyName - filename - public static String getPreferredDisplayId(org.nuxeo.ecm.core.api.DocumentModel doc)
document - protected static org.nuxeo.ecm.platform.url.api.DocumentView getDownloadFileProperties(org.nuxeo.ecm.core.api.DocumentLocation docLoc,
org.nuxeo.ecm.core.api.DocumentModel doc)
throws org.nuxeo.ecm.core.api.model.PropertyException,
org.nuxeo.ecm.core.api.ClientException
org.nuxeo.ecm.core.api.model.PropertyExceptionorg.nuxeo.ecm.core.api.ClientExceptionprotected static org.nuxeo.ecm.platform.url.api.DocumentView getDownloadPictureProperties(org.nuxeo.ecm.core.api.DocumentLocation docLoc,
org.nuxeo.ecm.core.api.DocumentModel doc,
String blobPropertyName)
throws org.nuxeo.ecm.core.api.model.PropertyException,
org.nuxeo.ecm.core.api.ClientException
org.nuxeo.ecm.core.api.model.PropertyExceptionorg.nuxeo.ecm.core.api.ClientExceptionCopyright © 2020. All rights reserved.