public class ExtensibleDocumentWriter extends DocumentModelWriter
DocumentModelWriter
implementation this one does handle versions and allows to plug
ExportExtension
Modifier and Type | Field and Description |
---|---|
protected List<ImportExtension> |
extensions |
protected static org.apache.commons.logging.Log |
log |
root, session, unsavedDocuments
Constructor and Description |
---|
ExtensibleDocumentWriter(CoreSession session,
String parentPath) |
Modifier and Type | Method and Description |
---|---|
protected DocumentModel |
createDocument(ExportedDocument xdoc,
Path toPath)
Creates a new document given its path.
|
void |
registerExtension(ImportExtension ext) |
write
beforeCreateDocument, beforeSaveDocument, close, getFieldClass, getSaveInterval, getTranslationMap, loadFacetsInfo, loadSchema, loadSchemas, loadSystemInfo, saveIfNeeded, setSaveInterval, updateDocument
createCompactFormat, createPrettyPrint, write, write
protected static org.apache.commons.logging.Log log
protected List<ImportExtension> extensions
public ExtensibleDocumentWriter(CoreSession session, String parentPath)
public void registerExtension(ImportExtension ext)
protected DocumentModel createDocument(ExportedDocument xdoc, Path toPath)
AbstractDocumentModelWriter
The parent of this document is assumed to exist.
createDocument
in class AbstractDocumentModelWriter
xdoc
- the document containingtoPath
- the path of the doc to createCopyright © 2016 Nuxeo SA. All rights reserved.