org.nuxeo.ecm.core.io.impl.plugins
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
DocumentModelInjector
public DocumentModelInjector(CoreSession session,
String parentPath)
- Parameters:
session
- the session to the repository where to writeparentPath
- 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
DocumentModelInjector
public DocumentModelInjector(CoreSession session,
String parentPath,
int saveInterval)
write
public DocumentTranslationMap write(ExportedDocument xdoc)
throws IOException
- Description copied from interface:
DocumentWriter
- Writes a single document.
- Specified by:
write
in interface DocumentWriter
- Specified by:
write
in class AbstractDocumentWriter
- Parameters:
xdoc
- the document to write
- Returns:
- the translation map.
- Throws:
IOException
Copyright © 2011 Nuxeo SAS. All Rights Reserved.