Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.automation.features
Class PlatformFunctions

java.lang.Object
  extended by org.nuxeo.ecm.automation.core.scripting.CoreFunctions
      extended by org.nuxeo.ecm.automation.features.PlatformFunctions

public class PlatformFunctions
extends CoreFunctions

Author:
Bogdan Stefanescu

Constructor Summary
PlatformFunctions()
           
 
Method Summary
 DirectoryService getDirService()
           
 String getEmail(String username)
           
 StringList getEmails(List<String> usernames)
           
 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)
           
 
Methods inherited from class org.nuxeo.ecm.automation.core.scripting.CoreFunctions
calendar, date, escapeHtml
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlatformFunctions

public PlatformFunctions()
Method Detail

getUserManager

public UserManager getUserManager()
                           throws Exception
Throws:
Exception

getDirService

public DirectoryService getDirService()
                               throws Exception
Throws:
Exception

getVocabularyLabel

public String getVocabularyLabel(String voc,
                                 String key)
                          throws Exception
Throws:
Exception

getPrincipal

public NuxeoPrincipal getPrincipal(String username)
                            throws Exception
Throws:
Exception

getEmail

public String getEmail(String username)
                throws Exception
Throws:
Exception

getPrincipalsFromGroup

public Set<NuxeoPrincipal> getPrincipalsFromGroup(String group)
                                           throws Exception
Throws:
Exception

getPrincipalsFromGroup

public Set<NuxeoPrincipal> getPrincipalsFromGroup(String group,
                                                  boolean ignoreGroups)
                                           throws Exception
Throws:
Exception

getEmailsFromGroup

public StringList getEmailsFromGroup(String group)
                              throws Exception
Throws:
Exception

getEmailsFromGroup

public StringList getEmailsFromGroup(String group,
                                     boolean ignoreGroups)
                              throws Exception
Throws:
Exception

getPrincipalEmails

public StringList getPrincipalEmails(List<NuxeoPrincipal> principals)
                              throws Exception
Throws:
Exception

getEmails

public StringList getEmails(List<String> usernames)
                     throws Exception
Throws:
Exception

getNextId

public String getNextId(String key)
                 throws Exception
Throws:
Exception

htmlEscape

public static String htmlEscape(String str)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.