Class DocumentModelInjector
- java.lang.Object
- 
- org.nuxeo.ecm.core.io.impl.AbstractDocumentWriter
- 
- org.nuxeo.ecm.core.io.impl.AbstractDocumentModelWriter
- 
- org.nuxeo.ecm.core.io.impl.plugins.DocumentModelInjector
 
 
 
- 
- All Implemented Interfaces:
- DocumentWriter
 
 public class DocumentModelInjector extends AbstractDocumentModelWriter - Author:
- Bogdan Stefanescu
 
- 
- 
Field Summary- 
Fields inherited from class org.nuxeo.ecm.core.io.impl.AbstractDocumentModelWriterroot, session, unsavedDocuments
 
- 
 - 
Constructor SummaryConstructors Constructor Description DocumentModelInjector(CoreSession session, String parentPath)DocumentModelInjector(CoreSession session, String parentPath, int saveInterval)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentTranslationMapwrite(ExportedDocument xdoc)Writes a single document.- 
Methods inherited from class org.nuxeo.ecm.core.io.impl.AbstractDocumentModelWriterbeforeCreateDocument, beforeSaveDocument, close, createDocument, getFieldClass, getSaveInterval, getTranslationMap, loadFacetsInfo, loadSchema, loadSchemas, loadSystemInfo, saveIfNeeded, setSaveInterval, updateDocument
 - 
Methods inherited from class org.nuxeo.ecm.core.io.impl.AbstractDocumentWritercreateCompactFormat, createPrettyPrint, write, write
 
- 
 
- 
- 
- 
Constructor Detail- 
DocumentModelInjectorpublic DocumentModelInjector(CoreSession session, String parentPath) - Parameters:
- session- the session to the repository where to write
- parentPath- where to write the tree. this document will be used as the parent of all top level documents passed as input. Note that you may have
 
 - 
DocumentModelInjectorpublic DocumentModelInjector(CoreSession session, String parentPath, int saveInterval) 
 
- 
 - 
Method Detail- 
writepublic DocumentTranslationMap write(ExportedDocument xdoc) throws IOException Description copied from interface:DocumentWriterWrites a single document.- Specified by:
- writein interface- DocumentWriter
- Specified by:
- writein class- AbstractDocumentWriter
- Parameters:
- xdoc- the document to write
- Returns:
- the translation map.
- Throws:
- IOException
 
 
- 
 
-