Class MVELImporterFunction
- java.lang.Object
-
- org.nuxeo.ecm.automation.core.scripting.CoreFunctions
-
- org.nuxeo.ecm.platform.importer.xml.parser.MVELImporterFunction
-
- All Implemented Interfaces:
ContextHelper
public class MVELImporterFunction extends CoreFunctions
Some helper function that are injected inside MVEL context- Author:
- Tiry
-
-
Field Summary
Fields Modifier and Type Field Description protected Stack<DocumentModel>
docsStack
protected org.dom4j.Element
el
protected Map<org.dom4j.Element,DocumentModel>
elToDoc
protected CoreSession
session
-
Constructor Summary
Constructors Constructor Description MVELImporterFunction(CoreSession session, Stack<DocumentModel> docsStack, Map<org.dom4j.Element,DocumentModel> elToDoc, org.dom4j.Element el)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentModel
mkdir(DocumentModel parent, String regexp, String data, String typeName)
Calendar
parseDate(String source, String format)
-
Methods inherited from class org.nuxeo.ecm.automation.core.scripting.CoreFunctions
calendar, calendar, date, escapeHtml
-
-
-
-
Field Detail
-
session
protected final CoreSession session
-
docsStack
protected final Stack<DocumentModel> docsStack
-
elToDoc
protected final Map<org.dom4j.Element,DocumentModel> elToDoc
-
el
protected final org.dom4j.Element el
-
-
Constructor Detail
-
MVELImporterFunction
public MVELImporterFunction(CoreSession session, Stack<DocumentModel> docsStack, Map<org.dom4j.Element,DocumentModel> elToDoc, org.dom4j.Element el)
-
-
Method Detail
-
parseDate
public Calendar parseDate(String source, String format) throws ParseException
- Throws:
ParseException
-
mkdir
public DocumentModel mkdir(DocumentModel parent, String regexp, String data, String typeName)
-
-