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
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected Booleanprotected Stack<DocumentModel> protected Map<org.dom4j.Element, DocumentModel> protected static final Stringprotected static final Stringprotected static final Stringprotected ParserConfigRegistryprotected DocumentModelprotected CoreSessionprotected Filestatic final String -
Constructor Summary
ConstructorsConstructorDescriptionXMLImporterServiceImpl(DocumentModel rootDoc, ParserConfigRegistry registry) XMLImporterServiceImpl(DocumentModel rootDoc, ParserConfigRegistry registry, Map<String, Object> mvelContext, boolean deferSave) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateNewDocument(org.dom4j.Element el, DocConfigDescriptor conf) protected List<AttributeConfigDescriptor> getAttributConfigs(org.dom4j.Element el) protected DocConfigDescriptorgetDocCreationConfig(org.dom4j.Element el) getMVELContext(org.dom4j.Element el) protected ParserConfigRegistryparse(InputStream is) parse(org.dom4j.Document doc) protected voidprocess(org.dom4j.Element el) protected voidprocessDocAttributes(DocumentModel doc, org.dom4j.Element el, AttributeConfigDescriptor conf) protected Objectprotected ObjectresolveAndEvaluateXmlNode(org.dom4j.Element el, String xpr) protected BlobresolveBlob(org.dom4j.Element el, AttributeConfigDescriptor conf, String propertyName) protected ObjectresolveComplex(org.dom4j.Element el, AttributeConfigDescriptor conf) protected ObjectresolveMVEL(org.dom4j.Element el, String xpr) protected StringresolveName(org.dom4j.Element el, String xpr) protected StringresolvePath(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)
-