Class ExtensibleDocumentTreeReader
java.lang.Object
org.nuxeo.ecm.core.io.impl.AbstractDocumentReader
org.nuxeo.ecm.core.io.impl.plugins.DocumentModelReader
org.nuxeo.ecm.core.io.impl.plugins.ExtensibleDocumentTreeReader
- All Implemented Interfaces:
DocumentReader
Compared to the default
DocumentReader
implementation this one does handle versions and allows to plug
ExportExtension
- Since:
- 7.4
-
Field Summary
Modifier and TypeFieldDescriptionprotected List<ExportExtension>
protected DocumentTreeIterator
protected int
protected List<DocumentModel>
static final String
Fields inherited from class org.nuxeo.ecm.core.io.impl.plugins.DocumentModelReader
inlineBlobs, session
-
Constructor Summary
ConstructorDescriptionExtensibleDocumentTreeReader
(CoreSession session, DocumentModel root) ExtensibleDocumentTreeReader
(CoreSession session, DocumentModel root, boolean excludeRoot) ExtensibleDocumentTreeReader
(CoreSession session, DocumentRef root) -
Method Summary
Methods inherited from class org.nuxeo.ecm.core.io.impl.plugins.DocumentModelReader
getInlineBlobs, setInlineBlobs
Methods inherited from class org.nuxeo.ecm.core.io.impl.AbstractDocumentReader
read
-
Field Details
-
iterator
-
pathSegmentsToRemove
protected int pathSegmentsToRemove -
pendingVersions
-
extensions
-
VERSION_VIRTUAL_PATH_SEGMENT
- See Also:
-
-
Constructor Details
-
ExtensibleDocumentTreeReader
-
ExtensibleDocumentTreeReader
-
ExtensibleDocumentTreeReader
-
-
Method Details
-
registerExtension
-
close
public void close()Description copied from interface:DocumentReader
Closes the reader.- Specified by:
close
in interfaceDocumentReader
- Overrides:
close
in classDocumentModelReader
-
read
Description copied from interface:DocumentReader
Reads a single document.- Specified by:
read
in interfaceDocumentReader
- Specified by:
read
in classDocumentModelReader
- Returns:
- the document read or null if there are no more documents to read
- Throws:
IOException
-