Interface XMLImporterService
-
- All Known Implementing Classes:
XMLImporterComponent
public interface XMLImporterService
Interface for importer service- Author:
- Tiry
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<DocumentModel>
importDocuments(DocumentModel root, File source)
ImportsDocumentModel
in Nuxeo from an XML or a Zip archive.List<DocumentModel>
importDocuments(DocumentModel root, File source, boolean deferSave)
ImportsDocumentModel
in Nuxeo from an XML or a Zip archive.List<DocumentModel>
importDocuments(DocumentModel root, File source, Map<String,Object> mvelContext)
Same asimportDocuments(DocumentModel, File)
with map injected into mvel contexts used during parsingList<DocumentModel>
importDocuments(DocumentModel root, File source, Map<String,Object> mvelContext, boolean deferSave)
List<DocumentModel>
importDocuments(DocumentModel root, InputStream xmlStream)
ImportsDocumentModel
in Nuxeo from an XML Stream.List<DocumentModel>
importDocuments(DocumentModel root, InputStream xmlStream, Map<String,Object> mvelContext)
Same asimportDocuments(DocumentModel, InputStream)
with map injected into mvel contexts used during parsing
-
-
-
Method Detail
-
importDocuments
List<DocumentModel> importDocuments(DocumentModel root, File source) 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 index- Throws:
IOException
-
importDocuments
List<DocumentModel> importDocuments(DocumentModel root, InputStream xmlStream) throws IOException
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 IOException
Same 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 IOException
Same 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
-
-