public class XMLImporterComponent extends DefaultComponent implements XMLImporterService
XMLImporterService
Constructor and Description |
---|
XMLImporterComponent() |
Modifier and Type | Method and Description |
---|---|
List<DocumentModel> |
importDocuments(DocumentModel root,
File xmlFile)
Imports
DocumentModel in Nuxeo from an XML or a Zip archive. |
List<DocumentModel> |
importDocuments(DocumentModel root,
File source,
Map<String,Object> mvelContext)
Same as
XMLImporterService.importDocuments(DocumentModel, File) with map injected into mvel contexts used during parsing |
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
XMLImporterService.importDocuments(DocumentModel, InputStream) with map injected into mvel contexts used during
parsing |
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
activate, applicationStarted, deactivate, getAdapter, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, unregisterContribution, unregisterExtension
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution
in class DefaultComponent
public List<DocumentModel> importDocuments(DocumentModel root, File xmlFile) throws IOException
XMLImporterService
DocumentModel
in Nuxeo from an XML or a Zip archive.importDocuments
in interface XMLImporterService
root
- target container DocumentModel
xmlFile
- source file, can be XML or Zip with XML indexIOException
public List<DocumentModel> importDocuments(DocumentModel root, InputStream xmlStream) throws IOException
XMLImporterService
DocumentModel
in Nuxeo from an XML Stream.importDocuments
in interface XMLImporterService
root
- target container DocumentModel
xmlStream
- stream source for Xml contntIOException
public List<DocumentModel> importDocuments(DocumentModel root, File source, Map<String,Object> mvelContext) throws IOException
XMLImporterService
XMLImporterService.importDocuments(DocumentModel, File)
with map injected into mvel contexts used during parsingimportDocuments
in interface XMLImporterService
root
- target container DocumentModel
source
- source file, can be XML or Zip with XML indexmvelContext
- Context added each time a mvel expression is resolvedIOException
public List<DocumentModel> importDocuments(DocumentModel root, InputStream xmlStream, Map<String,Object> mvelContext) throws IOException
XMLImporterService
XMLImporterService.importDocuments(DocumentModel, InputStream)
with map injected into mvel contexts used during
parsingimportDocuments
in interface XMLImporterService
root
- target container DocumentModel
xmlStream
- stream source for Xml contntmvelContext
- Context added each time a mvel expression is resolvedIOException
Copyright © 2015 Nuxeo SA. All rights reserved.