org.nuxeo.ecm.core.io.impl.plugins
Class DocumentModelWriter
java.lang.Object
org.nuxeo.ecm.core.io.impl.AbstractDocumentWriter
org.nuxeo.ecm.core.io.impl.AbstractDocumentModelWriter
org.nuxeo.ecm.core.io.impl.plugins.DocumentModelWriter
- All Implemented Interfaces:
- DocumentWriter
public class DocumentModelWriter
- extends AbstractDocumentModelWriter
A writer which is creating new docs or updating existing docs.
- Author:
- Bogdan Stefanescu
DocumentModelWriter
public DocumentModelWriter(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
DocumentModelWriter
public DocumentModelWriter(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.