public class PlatformFunctions extends CoreFunctions
Constructor and Description |
---|
PlatformFunctions() |
calendar, date, escapeHtml
public UserManager getUserManager()
public DirectoryService getDirService()
public NuxeoPrincipal getPrincipal(String username)
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 <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
ClientException
Copyright © 2015 Nuxeo SA. All rights reserved.