Interface XMLImporterService
- All Known Implementing Classes:
XMLImporterComponent
public interface XMLImporterService
Interface for importer service
- Author:
- Tiry
-
Method Summary
Modifier and TypeMethodDescriptionimportDocuments
(DocumentModel root, File source) ImportsDocumentModel
in Nuxeo from an XML or a Zip archive.importDocuments
(DocumentModel root, File source, boolean deferSave) ImportsDocumentModel
in Nuxeo from an XML or a Zip archive.importDocuments
(DocumentModel root, File source, Map<String, Object> mvelContext) Same asimportDocuments(DocumentModel, File)
with map injected into mvel contexts used during parsingimportDocuments
(DocumentModel root, File source, Map<String, Object> mvelContext, boolean deferSave) importDocuments
(DocumentModel root, InputStream xmlStream) ImportsDocumentModel
in Nuxeo from an XML Stream.importDocuments
(DocumentModel root, InputStream xmlStream, Map<String, Object> mvelContext) Same asimportDocuments(DocumentModel, InputStream)
with map injected into mvel contexts used during parsing
-
Method Details
-
importDocuments
ImportsDocumentModel
in Nuxeo from an XML or a Zip archive.- Parameters:
root
- target containerDocumentModel
source
- source file, can be XML or Zip with XML index- Throws:
IOException
-
importDocuments
ImportsDocumentModel
in Nuxeo from an XML Stream.- Parameters:
root
- target containerDocumentModel
xmlStream
- stream source for Xml contnt- Throws:
IOException
-
importDocuments
List<DocumentModel> importDocuments(DocumentModel root, File source, Map<String, Object> mvelContext) throws IOExceptionSame asimportDocuments(DocumentModel, File)
with map injected into mvel contexts used during parsing- Parameters:
root
- target containerDocumentModel
source
- source file, can be XML or Zip with XML indexmvelContext
- Context added each time a mvel expression is resolved- Throws:
IOException
-
importDocuments
List<DocumentModel> importDocuments(DocumentModel root, InputStream xmlStream, Map<String, Object> mvelContext) throws IOExceptionSame asimportDocuments(DocumentModel, InputStream)
with map injected into mvel contexts used during parsing- Parameters:
root
- target containerDocumentModel
xmlStream
- stream source for Xml contntmvelContext
- Context added each time a mvel expression is resolved- Throws:
IOException
-
importDocuments
List<DocumentModel> importDocuments(DocumentModel root, File source, Map<String, Object> mvelContext, boolean deferSave) throws IOException- Throws:
IOException
-
importDocuments
List<DocumentModel> importDocuments(DocumentModel root, File source, boolean deferSave) throws IOException ImportsDocumentModel
in Nuxeo from an XML or a Zip archive.- Parameters:
root
- target containerDocumentModel
source
- source file, can be XML or Zip with XML indexdeferSave
- if true, do not save docs in docsStack during processing, save them after full parse of xml doc- Throws:
IOException
- Since:
- 7.4
-