Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.automation.core.scripting
Class Functions

java.lang.Object
  extended by org.nuxeo.ecm.automation.core.scripting.Functions

public class Functions
extends java.lang.Object

Author:
Bogdan Stefanescu

Field Summary
static Functions INSTANCE
           
 
Constructor Summary
Functions()
           
 
Method Summary
 DateWrapper calendar(java.util.Calendar date)
           
 DateWrapper date(java.util.Date date)
           
 DirectoryService getDirService()
           
 java.lang.String getEmail(java.lang.String username)
           
 StringList getEmails(java.util.List<java.lang.String> usernames)
           
 java.lang.String getNextId(java.lang.String key)
           
 NuxeoPrincipal getPrincipal(java.lang.String username)
           
 StringList getPrincipalEmails(java.util.List<NuxeoPrincipal> principals)
           
 UserManager getUserManager()
           
 java.lang.String getVocabularyLabel(java.lang.String voc, java.lang.String key)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final Functions INSTANCE
Constructor Detail

Functions

public Functions()
Method Detail

getUserManager

public UserManager getUserManager()
                           throws java.lang.Exception
Throws:
java.lang.Exception

getDirService

public DirectoryService getDirService()
                               throws java.lang.Exception
Throws:
java.lang.Exception

getVocabularyLabel

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

getPrincipal

public NuxeoPrincipal getPrincipal(java.lang.String username)
                            throws java.lang.Exception
Throws:
java.lang.Exception

getEmail

public java.lang.String getEmail(java.lang.String username)
                          throws java.lang.Exception
Throws:
java.lang.Exception

getPrincipalEmails

public StringList getPrincipalEmails(java.util.List<NuxeoPrincipal> principals)
                              throws java.lang.Exception
Throws:
java.lang.Exception

getEmails

public StringList getEmails(java.util.List<java.lang.String> usernames)
                     throws java.lang.Exception
Throws:
java.lang.Exception

getNextId

public java.lang.String getNextId(java.lang.String key)
                           throws java.lang.Exception
Throws:
java.lang.Exception

date

public DateWrapper date(java.util.Date date)

calendar

public DateWrapper calendar(java.util.Calendar date)

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.