Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.publisher.remoting.marshaling.io
Class SingleShadowDocumentWriter

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.platform.publisher.remoting.marshaling.io.SingleShadowDocumentWriter
All Implemented Interfaces:
DocumentWriter

public class SingleShadowDocumentWriter
extends AbstractDocumentModelWriter

DocumentModelWriter that creates a shallow DocumentModel (ie: no path and no uuid).

Author:
tiry

Constructor Summary
SingleShadowDocumentWriter(CoreSession session, String parentPath)
           
 
Method Summary
 DocumentModel getShadowDocument()
           
 DocumentTranslationMap write(ExportedDocument doc)
          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

SingleShadowDocumentWriter

public SingleShadowDocumentWriter(CoreSession session,
                                  String parentPath)
Method Detail

write

public DocumentTranslationMap write(ExportedDocument doc)
                             throws IOException
Description copied from interface: DocumentWriter
Writes a single document.

Specified by:
write in interface DocumentWriter
Specified by:
write in class AbstractDocumentWriter
Parameters:
doc - the document to write
Returns:
the translation map.
Throws:
IOException

getShadowDocument

public DocumentModel getShadowDocument()

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.