Class CoreFunctions
- java.lang.Object
-
- org.nuxeo.ecm.automation.core.scripting.CoreFunctions
-
- All Implemented Interfaces:
ContextHelper
- Direct Known Subclasses:
MVELImporterFunction,PlatformFunctions
public class CoreFunctions extends Object implements ContextHelper
The functions exposed by the core library. You may want to extend this class to expose more functions under the "Fn" context variable for scripting expressions.- Author:
- Bogdan Stefanescu
-
-
Constructor Summary
Constructors Constructor Description CoreFunctions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DateWrappercalendar(Calendar date)DateWrappercalendar(Date inputDate)This method is similar tocalendar(Calendar)but takes aDateargument.DateWrapperdate(Date date)StringescapeHtml(Object obj)
-
-
-
Method Detail
-
date
public DateWrapper date(Date date)
-
calendar
public DateWrapper calendar(Calendar date)
-
calendar
public DateWrapper calendar(Date inputDate)
This method is similar tocalendar(Calendar)but takes aDateargument.- Parameters:
inputDate- the date to wrap- Returns:
- a
DateWrapper - Since:
- 11.1
-
-