Package org.nuxeo.connect.client.we
Class DownloadHandler
- java.lang.Object
-
- org.nuxeo.ecm.webengine.model.impl.AbstractResource<ResourceTypeImpl>
-
- org.nuxeo.ecm.webengine.model.impl.DefaultObject
-
- org.nuxeo.connect.client.we.DownloadHandler
-
public class DownloadHandler extends DefaultObject
Provides REST binding forPackage
download management.- Author:
- Thierry Delprat
-
-
Constructor Summary
Constructors Constructor Description DownloadHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
cancelDownload(String pkgId, String source)
protected org.nuxeo.connect.data.DownloadingPackage
getDownloadingPackage(String pkgId)
String
getDownloadProgress(String pkgId)
Object
getDownloadProgressPage(String pkgId, String source, Boolean install, Boolean depCheck, String pkgType, Boolean onlyRemote, Boolean filterOnPlatform)
String
getDownloadsProgress()
Object
startDownload(String pkgId, String source, Boolean install, Boolean depCheck, String pkgType, Boolean onlyRemote, Boolean filterOnPlatform)
String
startDownloads(String pkgList)
-
Methods inherited from class org.nuxeo.ecm.webengine.model.impl.DefaultObject
disptachAdapter, isAdapter
-
Methods inherited from class org.nuxeo.ecm.webengine.model.impl.AbstractResource
checkGuard, dispose, getActiveAdapter, getAdapter, getContext, getFacets, getLinks, getModule, getName, getNext, getNextSegment, getPath, getPrevious, getTemplate, getTrailingPath, getType, getURL, getView, hasFacet, initialize, initialize, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRoot, toString
-
-
-
-
Constructor Detail
-
DownloadHandler
public DownloadHandler()
-
-
Method Detail
-
getDownloadProgress
public String getDownloadProgress(String pkgId)
-
getDownloadsProgress
public String getDownloadsProgress()
-
getDownloadProgressPage
public Object getDownloadProgressPage(String pkgId, String source, Boolean install, Boolean depCheck, String pkgType, Boolean onlyRemote, Boolean filterOnPlatform)
-
getDownloadingPackage
protected org.nuxeo.connect.data.DownloadingPackage getDownloadingPackage(String pkgId)
-
startDownload
public Object startDownload(String pkgId, String source, Boolean install, Boolean depCheck, String pkgType, Boolean onlyRemote, Boolean filterOnPlatform)
-
startDownloads
public String startDownloads(String pkgList)
-
cancelDownload
public Object cancelDownload(String pkgId, String source)
- Since:
- 5.6
-
-