public class ZipExport extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
ZipExport() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addFolderDocuments(Folder folder)
Adds all folder's documents
|
protected void |
appendChildren(Folder folder,
int level)
Adds all children of the specified folder up to the given level
|
ByteArrayOutputStream |
process(long[] docIds)
Exports a selection of documents
|
void |
process(long[] docIds,
OutputStream out)
Exports a selection of documents
|
ByteArrayOutputStream |
process(long folderId,
long userId)
Exports the specified folder content
|
void |
setAllLevel(boolean b)
If allLevel set true all children of a specified folder will be export.
|
public ByteArrayOutputStream process(long folderId, long userId)
folderId - Identifier of the folderuserId - Current userpublic ByteArrayOutputStream process(long[] docIds)
docIds - Identifiers of the documentspublic void process(long[] docIds,
OutputStream out)
docIds - Identifiers of the documentsout - The stream that will receive the zippublic void setAllLevel(boolean b)
b - protected void appendChildren(Folder folder, int level)
folder - level - protected void addFolderDocuments(Folder folder)
folder - Copyright © 2008-2014 Logical Objects. All Rights Reserved.