public class PlatformFunctions extends CoreFunctions
| Constructor and Description |
|---|
PlatformFunctions() |
calendar, date, escapeHtmlpublic UserManager getUserManager() throws Exception
Exceptionpublic DirectoryService getDirService() throws Exception
Exceptionpublic String getVocabularyLabel(String voc, String key) throws Exception
Exceptionpublic NuxeoPrincipal getPrincipal(String username) throws Exception
Exceptionprotected String getEmail(NuxeoPrincipal principal, String userSchemaName, String userEmailFieldName) throws ClientException
ClientExceptionpublic Set<NuxeoPrincipal> getPrincipalsFromGroup(String group) throws Exception
Exceptionpublic Set<NuxeoPrincipal> getPrincipalsFromGroup(String group, boolean ignoreGroups) throws Exception
Exceptionpublic StringList getEmailsFromGroup(String group) throws Exception
Exceptionpublic StringList getEmailsFromGroup(String group, boolean ignoreGroups) throws Exception
Exceptionpublic StringList getPrincipalEmails(List<NuxeoPrincipal> principals) throws Exception
Exceptionpublic StringList getEmails(List<String> usernames) throws Exception
Exceptionpublic StringList getEmails(List<String> usernames, boolean usePrefix) throws Exception
usernames - list of user namesusePrefix - indicates if user resolution takes into account nuxeo prefix user:Exceptionpublic static String nxqlEscape(String str)
The resulting string is safe to include between single quotes in a NXQL expression.
str - the input stringpublic <T> List<T> concatenateIntoList(List<T> list, Object... values) throws ClientException
T - list - List of values of type Avalue - Value can be instance of java.util.CollectionClientException - if value if a collection but not contains only A values and type that extends A.ClientException - if list is nullxxxxx - if in values there is at least one object type not compatible with the collection listpublic <T> List<T> concatenateValuesAsNewList(Object... values) throws ClientException
ClientExceptionCopyright © 2019 Nuxeo SA. All rights reserved.