Class ContextFunctions
- java.lang.Object
-
- org.nuxeo.template.context.extensions.ContextFunctions
-
public class ContextFunctions extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected DocumentModel
doc
protected DocumentWrapper
nuxeoWrapper
-
Constructor Summary
Constructors Constructor Description ContextFunctions(DocumentModel doc, DocumentWrapper nuxeoWrapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
doc
protected final DocumentModel doc
-
nuxeoWrapper
protected final DocumentWrapper nuxeoWrapper
-
-
Constructor Detail
-
ContextFunctions
public ContextFunctions(DocumentModel doc, DocumentWrapper nuxeoWrapper)
-
-
Method Detail
-
getVocabularyTranslatedLabel
public String getVocabularyTranslatedLabel(String voc_name, String key, String lang)
-
getVocabularyLabel
public String getVocabularyLabel(String voc_name, String key)
-
formatDate
public String formatDate(Object calendar)
-
formatDateTime
public String formatDateTime(Object calendar)
-
formatTime
public String formatTime(Object calendar)
-
formatDate
public String formatDate(Object calendar, String format)
-
getNuxeoPrincipal
public NuxeoPrincipal getNuxeoPrincipal(String username)
-
-