public class SingleShadowDocumentWriter extends AbstractDocumentModelWriter
DocumentModelWriter
that creates a shallow DocumentModel (ie: no
path and no uuid).Constructor and Description |
---|
SingleShadowDocumentWriter(CoreSession session,
String parentPath) |
Modifier and Type | Method and Description |
---|---|
DocumentModel |
getShadowDocument() |
DocumentTranslationMap |
write(ExportedDocument doc)
Writes a single document.
|
close, getSaveInterval, getTranslationMap, setSaveInterval
createCompactFormat, createPrettyPrint, write, write
public SingleShadowDocumentWriter(CoreSession session, String parentPath)
public DocumentTranslationMap write(ExportedDocument doc) throws IOException
DocumentWriter
write
in interface DocumentWriter
write
in class AbstractDocumentWriter
doc
- the document to writeIOException
public DocumentModel getShadowDocument()
Copyright © 2011 Nuxeo SA. All Rights Reserved.