public class PlatformFunctions extends CoreFunctions
Constructor and Description |
---|
PlatformFunctions() |
Modifier and Type | Method and Description |
---|---|
DirectoryService |
getDirService() |
String |
getEmail(String username) |
StringList |
getEmails(List<String> usernames) |
StringList |
getEmails(List<String> usernames,
boolean usePrefix)
Returns user emails
|
StringList |
getEmailsFromGroup(String group) |
StringList |
getEmailsFromGroup(String group,
boolean ignoreGroups) |
String |
getNextId(String key) |
NuxeoPrincipal |
getPrincipal(String username) |
StringList |
getPrincipalEmails(List<NuxeoPrincipal> principals) |
Set<NuxeoPrincipal> |
getPrincipalsFromGroup(String group) |
Set<NuxeoPrincipal> |
getPrincipalsFromGroup(String group,
boolean ignoreGroups) |
UserManager |
getUserManager() |
String |
getVocabularyLabel(String voc,
String key) |
static String |
htmlEscape(String str) |
calendar, date, escapeHtml
public UserManager getUserManager() throws Exception
Exception
public DirectoryService getDirService() throws Exception
Exception
public String getVocabularyLabel(String voc, String key) throws Exception
Exception
public NuxeoPrincipal getPrincipal(String username) throws Exception
Exception
public Set<NuxeoPrincipal> getPrincipalsFromGroup(String group) throws Exception
Exception
public Set<NuxeoPrincipal> getPrincipalsFromGroup(String group, boolean ignoreGroups) throws Exception
Exception
public StringList getEmailsFromGroup(String group) throws Exception
Exception
public StringList getEmailsFromGroup(String group, boolean ignoreGroups) throws Exception
Exception
public StringList getPrincipalEmails(List<NuxeoPrincipal> principals) throws Exception
Exception
public StringList getEmails(List<String> usernames) throws Exception
Exception
public StringList getEmails(List<String> usernames, boolean usePrefix) throws Exception
usernames
- list of user namesusePrefix
- indicates if user resolution takes into account nuxeo
prefix user:Exception
Copyright © 2011 Nuxeo SA. All Rights Reserved.