public interface XMLImporterService
Modifier and Type | Method and Description |
---|---|
List<DocumentModel> |
importDocuments(DocumentModel root,
File source)
Imports
DocumentModel in Nuxeo from an XML or a Zip archive. |
List<DocumentModel> |
importDocuments(DocumentModel root,
File source,
boolean deferSave)
Imports
DocumentModel in Nuxeo from an XML or a Zip archive. |
List<DocumentModel> |
importDocuments(DocumentModel root,
File source,
Map<String,Object> mvelContext)
Same as
importDocuments(DocumentModel, File) with map injected into mvel contexts used during parsing |
List<DocumentModel> |
importDocuments(DocumentModel root,
File source,
Map<String,Object> mvelContext,
boolean deferSave) |
List<DocumentModel> |
importDocuments(DocumentModel root,
InputStream xmlStream)
Imports
DocumentModel in Nuxeo from an XML Stream. |
List<DocumentModel> |
importDocuments(DocumentModel root,
InputStream xmlStream,
Map<String,Object> mvelContext)
Same as
importDocuments(DocumentModel, InputStream) with map injected into mvel contexts used during
parsing |
List<DocumentModel> importDocuments(DocumentModel root, File source) throws IOException
DocumentModel
in Nuxeo from an XML or a Zip archive.root
- target container DocumentModel
source
- source file, can be XML or Zip with XML indexIOException
List<DocumentModel> importDocuments(DocumentModel root, InputStream xmlStream) throws IOException
DocumentModel
in Nuxeo from an XML Stream.root
- target container DocumentModel
xmlStream
- stream source for Xml contntIOException
List<DocumentModel> importDocuments(DocumentModel root, File source, Map<String,Object> mvelContext) throws IOException
importDocuments(DocumentModel, File)
with map injected into mvel contexts used during parsingroot
- target container DocumentModel
source
- source file, can be XML or Zip with XML indexmvelContext
- Context added each time a mvel expression is resolvedIOException
List<DocumentModel> importDocuments(DocumentModel root, InputStream xmlStream, Map<String,Object> mvelContext) throws IOException
importDocuments(DocumentModel, InputStream)
with map injected into mvel contexts used during
parsingroot
- target container DocumentModel
xmlStream
- stream source for Xml contntmvelContext
- Context added each time a mvel expression is resolvedIOException
List<DocumentModel> importDocuments(DocumentModel root, File source, Map<String,Object> mvelContext, boolean deferSave) throws IOException
IOException
List<DocumentModel> importDocuments(DocumentModel root, File source, boolean deferSave) throws IOException
DocumentModel
in Nuxeo from an XML or a Zip archive.root
- target container DocumentModel
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 docIOException
Copyright © 2015 Nuxeo SA. All rights reserved.