Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.io.client
Class ImportExportActionBean

java.lang.Object
  extended by org.nuxeo.ecm.platform.io.client.ImportExportActionBean
All Implemented Interfaces:
Serializable

@Name(value="importExportAction")
@Scope(value=EVENT)
public class ImportExportActionBean
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
ImportExportActionBean()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImportExportActionBean

public ImportExportActionBean()
Method Detail

doExportDocument

public String doExportDocument()
                        throws IOException
Throws:
IOException

doExportFolder

public String doExportFolder()
                      throws IOException
Throws:
IOException

getExportURL

public String getExportURL(DocumentModel doc,
                           boolean exportAsZip,
                           boolean exportAsTree)
Returns the REST URL for export of given document.

Parameters:
doc - the document to export
exportAsZip - 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.
Since:
5.4.2

getDocumentExportURL

public String getDocumentExportURL()
Generates URL to call export restlet on a leaf.

Returns:
export restlet URL

getFolderExportURL

public String getFolderExportURL()
Generates URL to call export restlet on a folder.

Returns:
export restlet URL

getDocumentXMLExportURL

public String getDocumentXMLExportURL()
Returns the Rest URL for a document export in XML format

Since:
5.4.2

getDocumentZIPExportURL

public String getDocumentZIPExportURL()
Returns the Rest URL for a document export in ZIP format

Since:
5.4.2

getDocumentZIPTreeExportURL

public String getDocumentZIPTreeExportURL()
Returns the Rest URL for a document tree export in ZIP format

Returns:
Since:
5.4.2

exportCurrentList

public String exportCurrentList()

export

public static void export(List<DocumentModel> docList)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.