public class ContextFunctions extends Object
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) |
public ContextFunctions(DocumentModel doc, DocumentWrapper nuxeoWrapper)
public String getVocabularyTranslatedLabel(String voc_name, String key, String lang) throws Exception
Exception
public String getVocabularyLabel(String voc_name, String key) throws Exception
Exception
public NuxeoPrincipal getNuxeoPrincipal(String username) throws ClientException
ClientException
Copyright © 2013 Nuxeo SA. All Rights Reserved.