Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.io.impl.plugins
Class DocumentModelWriter

java.lang.Object
  extended by org.nuxeo.ecm.core.io.impl.AbstractDocumentWriter
      extended by org.nuxeo.ecm.core.io.impl.AbstractDocumentModelWriter
          extended by 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

Constructor Summary
DocumentModelWriter(CoreSession session, String parentPath)
           
DocumentModelWriter(CoreSession session, String parentPath, int saveInterval)
           
 
Method Summary
 DocumentTranslationMap write(ExportedDocument xdoc)
          Writes a single document.
 
Methods inherited from class org.nuxeo.ecm.core.io.impl.AbstractDocumentModelWriter
close, getSaveInterval, getTranslationMap, setSaveInterval
 
Methods inherited from class org.nuxeo.ecm.core.io.impl.AbstractDocumentWriter
createCompactFormat, createPrettyPrint, write, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentModelWriter

public DocumentModelWriter(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

DocumentModelWriter

public DocumentModelWriter(CoreSession session,
                           String parentPath,
                           int saveInterval)
Method Detail

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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.