Class XMLImporterServiceImpl
java.lang.Object
org.nuxeo.ecm.platform.importer.xml.parser.XMLImporterServiceImpl
Main implementation class for delivering the Import logic
- Author:
- Tiry
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
protected Boolean
protected Stack<DocumentModel>
protected Map<org.dom4j.Element,
DocumentModel> protected static final String
protected static final String
protected static final String
protected ParserConfigRegistry
protected DocumentModel
protected CoreSession
protected File
static final String
-
Constructor Summary
ConstructorDescriptionXMLImporterServiceImpl
(DocumentModel rootDoc, ParserConfigRegistry registry) XMLImporterServiceImpl
(DocumentModel rootDoc, ParserConfigRegistry registry, Map<String, Object> mvelContext, boolean deferSave) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
createNewDocument
(org.dom4j.Element el, DocConfigDescriptor conf) protected List<AttributeConfigDescriptor>
getAttributConfigs
(org.dom4j.Element el) protected DocConfigDescriptor
getDocCreationConfig
(org.dom4j.Element el) getMVELContext
(org.dom4j.Element el) protected ParserConfigRegistry
parse
(InputStream is) parse
(org.dom4j.Document doc) protected void
process
(org.dom4j.Element el) protected void
processDocAttributes
(DocumentModel doc, org.dom4j.Element el, AttributeConfigDescriptor conf) protected Object
protected Object
resolveAndEvaluateXmlNode
(org.dom4j.Element el, String xpr) protected Blob
resolveBlob
(org.dom4j.Element el, AttributeConfigDescriptor conf, String propertyName) protected Object
resolveComplex
(org.dom4j.Element el, AttributeConfigDescriptor conf) protected Object
resolveMVEL
(org.dom4j.Element el, String xpr) protected String
resolveName
(org.dom4j.Element el, String xpr) protected String
resolvePath
(org.dom4j.Element el, String xpr) protected Object
-
Field Details
-
FILE_PROPERTY
- See Also:
-
CONTENT_PROPERTY
- See Also:
-
MIME_TYPE_PROPERTY
- See Also:
-
FILE_NAME_PROPERTY
- See Also:
-
XML_IMPORTER_INITIALIZATION
- See Also:
-
session
-
rootDoc
-
docsStack
-
deletedAttributes
-
mvelCtx
-
elToDoc
-
registry
-
deferSave
-
workingDirectory
-
-
Constructor Details
-
XMLImporterServiceImpl
-
XMLImporterServiceImpl
public XMLImporterServiceImpl(DocumentModel rootDoc, ParserConfigRegistry registry, Map<String, Object> mvelContext, boolean deferSave)
-
-
Method Details
-
getRegistry
-
getDocCreationConfig
-
getAttributConfigs
-
parse
- Throws:
IOException
-
parse
- Throws:
IOException
-
parse
-
resolveComplex
-
resolveBlob
protected Blob resolveBlob(org.dom4j.Element el, AttributeConfigDescriptor conf, String propertyName) -
processDocAttributes
protected void processDocAttributes(DocumentModel doc, org.dom4j.Element el, AttributeConfigDescriptor conf) -
getMVELContext
-
resolve
-
resolveMVEL
-
resolveXP
-
resolvePath
-
resolveName
-
resolveAndEvaluateXmlNode
-
createNewDocument
-
process
protected void process(org.dom4j.Element el)
-