org.nuxeo.ecm.core.io.impl.plugins
Class DocumentModelUpdater
java.lang.Object
org.nuxeo.ecm.core.io.impl.AbstractDocumentWriter
org.nuxeo.ecm.core.io.impl.AbstractDocumentModelWriter
org.nuxeo.ecm.core.io.impl.plugins.DocumentModelUpdater
- All Implemented Interfaces:
- DocumentWriter
public class DocumentModelUpdater
- extends AbstractDocumentModelWriter
A writer that only updates existing documents. The doc ID is used to identity documents.
The imported tree structure is ignored.
- Author:
- Bogdan Stefanescu
DocumentModelUpdater
public DocumentModelUpdater(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
DocumentModelUpdater
public DocumentModelUpdater(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.