@Name(value="importExportAction") @Scope(value=EVENT) public class ImportExportActionBean extends Object implements Serializable
Constructor and Description |
---|
ImportExportActionBean() |
Modifier and Type | Method and Description |
---|---|
String |
doExportDocument() |
String |
doExportFolder() |
static void |
export(List<DocumentModel> docList) |
String |
exportCurrentList() |
String |
getDocumentExportURL()
Generates URL to call export restlet on a leaf.
|
String |
getDocumentXMLExportURL()
Returns the Rest URL for a document export in XML format
|
String |
getDocumentZIPExportURL()
Returns the Rest URL for a document export in ZIP format
|
String |
getDocumentZIPTreeExportURL()
Returns the Rest URL for a document tree export in ZIP format
|
String |
getExportURL(DocumentModel doc,
boolean exportAsZip,
boolean exportAsTree)
Returns the REST URL for export of given document.
|
String |
getFolderExportURL()
Generates URL to call export restlet on a folder.
|
public String doExportDocument() throws IOException
IOException
public String doExportFolder() throws IOException
IOException
public String getExportURL(DocumentModel doc, boolean exportAsZip, boolean exportAsTree)
doc
- the document to exportexportAsZip
- a boolean stating if export should be given in ZIP
format. When exporting the tree, ZIP format is forced.exportAsTree
- a boolean stating if export should include the
document children.public String getDocumentExportURL()
public String getFolderExportURL()
public String getDocumentXMLExportURL()
public String getDocumentZIPExportURL()
public String getDocumentZIPTreeExportURL()
public String exportCurrentList()
public static void export(List<DocumentModel> docList)
Copyright © 2013 Nuxeo SA. All Rights Reserved.