public class PlatformFunctions extends CoreFunctions
Constructor and Description |
---|
PlatformFunctions() |
calendar, date, escapeHtml
public PlatformFunctions()
public UserManager getUserManager()
public DirectoryService getDirService()
public String getVocabularyLabel(String voc, String key)
public NuxeoPrincipal getPrincipal(String username)
protected String getEmail(NuxeoPrincipal principal, String userSchemaName, String userEmailFieldName)
public Set<NuxeoPrincipal> getPrincipalsFromGroup(String group)
public Set<NuxeoPrincipal> getPrincipalsFromGroup(String group, boolean ignoreGroups)
public StringList getEmailsFromGroup(String group)
public StringList getEmailsFromGroup(String group, boolean ignoreGroups)
public StringList getPrincipalEmails(List<NuxeoPrincipal> principals)
public StringList getEmails(List<String> usernames)
public StringList getEmails(List<String> usernames, boolean usePrefix)
usernames
- list of user namesusePrefix
- indicates if user resolution takes into account nuxeo prefix user:public static String htmlEscape(String str)
public 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)
T
- list
- List of values of type Avalue
- Value can be instance of java.util.Collectionxxxxx
- if in values there is at least one object type not compatible with the collection listpublic <T> List<T> concatenateValuesAsNewList(Object... values)
Copyright © 2015 Nuxeo SA. All rights reserved.