Class ExportDocument
- java.lang.Object
-
- org.nuxeo.ecm.platform.io.operation.ExportDocument
-
public class ExportDocument extends Object
Operation that export a document.- Since:
- 7.2
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
exportAsTree
protected boolean
exportAsZip
static String
ID
protected CoreSession
session
-
Constructor Summary
Constructors Constructor Description ExportDocument()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DocumentReader
makeDocumentReader(CoreSession session, DocumentModel doc, boolean exportAsTree, boolean exportAsZip)
protected DocumentWriter
makeDocumentWriter(OutputStream outputStream, boolean exportAsTree, boolean exportAsZip)
protected DocumentPipe
makePipe(boolean exportAsTree)
Blob
run(DocumentModel doc)
-
-
-
Field Detail
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
exportAsTree
protected boolean exportAsTree
-
exportAsZip
protected boolean exportAsZip
-
session
protected CoreSession session
-
-
Method Detail
-
run
public Blob run(DocumentModel doc) throws IOException
- Throws:
IOException
-
makePipe
protected DocumentPipe makePipe(boolean exportAsTree)
-
makeDocumentReader
protected DocumentReader makeDocumentReader(CoreSession session, DocumentModel doc, boolean exportAsTree, boolean exportAsZip)
-
makeDocumentWriter
protected DocumentWriter makeDocumentWriter(OutputStream outputStream, boolean exportAsTree, boolean exportAsZip) throws IOException
- Throws:
IOException
-
-