public class ExtensibleDocumentTreeReader extends DocumentModelReader
DocumentReader
implementation this one does handle versions and allows to plug
ExportExtension
Modifier and Type | Field and Description |
---|---|
protected List<ExportExtension> |
extensions |
protected DocumentTreeIterator |
iterator |
protected int |
pathSegmentsToRemove |
protected List<DocumentModel> |
pendingVersions |
static String |
VERSION_VIRTUAL_PATH_SEGMENT |
inlineBlobs, session
Constructor and Description |
---|
ExtensibleDocumentTreeReader(CoreSession session,
DocumentModel root) |
ExtensibleDocumentTreeReader(CoreSession session,
DocumentModel root,
boolean excludeRoot) |
ExtensibleDocumentTreeReader(CoreSession session,
DocumentRef root) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the reader.
|
ExportedDocument |
read()
Reads a single document.
|
void |
registerExtension(ExportExtension ext) |
getInlineBlobs, setInlineBlobs
read
protected DocumentTreeIterator iterator
protected int pathSegmentsToRemove
protected List<DocumentModel> pendingVersions
protected List<ExportExtension> extensions
public static final String VERSION_VIRTUAL_PATH_SEGMENT
public ExtensibleDocumentTreeReader(CoreSession session, DocumentModel root, boolean excludeRoot)
public ExtensibleDocumentTreeReader(CoreSession session, DocumentRef root)
public ExtensibleDocumentTreeReader(CoreSession session, DocumentModel root)
public void registerExtension(ExportExtension ext)
public void close()
DocumentReader
close
in interface DocumentReader
close
in class DocumentModelReader
public ExportedDocument read() throws IOException
DocumentReader
read
in interface DocumentReader
read
in class DocumentModelReader
IOException
Copyright © 2018 Nuxeo. All rights reserved.