public class ContextFunctions extends Object
Modifier and Type | Field and Description |
---|---|
protected DocumentModel |
doc |
protected DocumentWrapper |
nuxeoWrapper |
Constructor and Description |
---|
ContextFunctions(DocumentModel doc,
DocumentWrapper nuxeoWrapper) |
Modifier and Type | Method and Description |
---|---|
String |
formatDate(Object calendar) |
String |
formatDate(Object calendar,
String format) |
String |
formatDateTime(Object calendar) |
String |
formatTime(Object calendar) |
NuxeoPrincipal |
getNuxeoPrincipal(String username) |
String |
getVocabularyLabel(String voc_name,
String key) |
String |
getVocabularyTranslatedLabel(String voc_name,
String key,
String lang) |
protected final DocumentModel doc
protected final DocumentWrapper nuxeoWrapper
public ContextFunctions(DocumentModel doc, DocumentWrapper nuxeoWrapper)
public String getVocabularyTranslatedLabel(String voc_name, String key, String lang)
public String getVocabularyLabel(String voc_name, String key)
public String formatDate(Object calendar)
public String formatDateTime(Object calendar)
public String formatTime(Object calendar)
public String formatDate(Object calendar, String format)
public NuxeoPrincipal getNuxeoPrincipal(String username)
Copyright © 2015 Nuxeo SA. All rights reserved.