public class XMLImporterComponent extends DefaultComponent implements XMLImporterService
XMLImporterService| Modifier and Type | Field and Description | 
|---|---|
protected List<AttributeConfigDescriptor> | 
attributeConfigs  | 
protected List<DocConfigDescriptor> | 
docConfigs  | 
lastModified, name| Constructor and Description | 
|---|
XMLImporterComponent()  | 
activate, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerExtension, setLastModified, setModifiedNow, setName, start, stop, unregister, unregisterContribution, unregisterExtensionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplicationStarted, getApplicationStartedOrderprotected List<DocConfigDescriptor> docConfigs
protected List<AttributeConfigDescriptor> attributeConfigs
public XMLImporterComponent()
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution in class DefaultComponentprotected ParserConfigRegistry getConfigRegistry()
public List<DocumentModel> importDocuments(DocumentModel root, File xmlFile) throws IOException
XMLImporterServiceDocumentModel in Nuxeo from an XML or a Zip archive.importDocuments in interface XMLImporterServiceroot - target container DocumentModelxmlFile - source file, can be XML or Zip with XML indexIOExceptionpublic List<DocumentModel> importDocuments(DocumentModel root, File xmlFile, boolean deferSave) throws IOException
XMLImporterServiceDocumentModel in Nuxeo from an XML or a Zip archive.importDocuments in interface XMLImporterServiceroot - target container DocumentModelxmlFile - 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 docIOExceptionpublic List<DocumentModel> importDocuments(DocumentModel root, InputStream xmlStream) throws IOException
XMLImporterServiceDocumentModel in Nuxeo from an XML Stream.importDocuments in interface XMLImporterServiceroot - target container DocumentModelxmlStream - stream source for Xml contntIOExceptionpublic List<DocumentModel> importDocuments(DocumentModel root, InputStream xmlStream, Map<String,Object> mvelContext) throws IOException
XMLImporterServiceXMLImporterService.importDocuments(DocumentModel, InputStream) with map injected into mvel contexts used during
 parsingimportDocuments in interface XMLImporterServiceroot - target container DocumentModelxmlStream - stream source for Xml contntmvelContext - Context added each time a mvel expression is resolvedIOExceptionpublic List<DocumentModel> importDocuments(DocumentModel root, File source, Map<String,Object> mvelContext) throws IOException
XMLImporterServiceXMLImporterService.importDocuments(DocumentModel, File) with map injected into mvel contexts used during parsingimportDocuments in interface XMLImporterServiceroot - target container DocumentModelsource - source file, can be XML or Zip with XML indexmvelContext - Context added each time a mvel expression is resolvedIOExceptionpublic List<DocumentModel> importDocuments(DocumentModel root, File source, Map<String,Object> mvelContext, boolean deferSave) throws IOException
importDocuments in interface XMLImporterServiceIOExceptionCopyright © 2019 Nuxeo. All rights reserved.