Class PackageListingProvider

All Implemented Interfaces:
Resource, Adaptable

public class PackageListingProvider extends DefaultObject
Provides REST binding for Package listings.
Author:
Thierry Delprat
  • Constructor Details

    • PackageListingProvider

      public PackageListingProvider()
  • Method Details

    • getConnectBaseUrl

      public String getConnectBaseUrl()
    • doList

      @GET @Produces("text/html") @Path("list") public Template doList(@QueryParam("type") String pkgType, @QueryParam("filterOnPlatform") Boolean filterOnPlatform)
    • getUpdates

      @GET @Produces("text/html") @Path("updates") public Template getUpdates(@QueryParam("type") String pkgType, @QueryParam("filterOnPlatform") Boolean filterOnPlatform)
    • getPrivate

      @GET @Produces("text/html") @Path("private") public Template getPrivate(@QueryParam("type") String pkgType, @QueryParam("filterOnPlatform") Boolean filterOnPlatform)
    • getLocal

      @GET @Produces("text/html") @Path("local") public Template getLocal(@QueryParam("type") String pkgType)
    • getRemote

      @GET @Produces("text/html") @Path("remote") public Template getRemote(@QueryParam("type") String pkgType, @QueryParam("onlyRemote") Boolean onlyRemote, @QueryParam("searchString") String searchString, @QueryParam("filterOnPlatform") Boolean filterOnPlatform)
    • getStudio

      @GET @Produces("text/html") @Path("studio") public Template getStudio()
    • getStateLabel

      public String getStateLabel(org.nuxeo.connect.update.Package pkg)
    • canInstall

      public boolean canInstall(org.nuxeo.connect.update.Package pkg)
    • needsRestart

      public boolean needsRestart(org.nuxeo.connect.update.Package pkg)
    • canUnInstall

      public boolean canUnInstall(org.nuxeo.connect.update.Package pkg)
    • canUpgrade

      public boolean canUpgrade(org.nuxeo.connect.update.Package pkg)
      Since:
      5.8
    • canRemove

      public boolean canRemove(org.nuxeo.connect.update.Package pkg)
    • canCancel

      public boolean canCancel(org.nuxeo.connect.update.Package pkg)
      Since:
      5.6
    • canDownload

      public boolean canDownload(org.nuxeo.connect.data.DownloadablePackage pkg)
      Since:
      11.1
    • getDetails

      @GET @Produces("text/html") @Path("details/{pkgId}") public Template getDetails(@PathParam("pkgId") String pkgId)
    • registrationRequired

      public boolean registrationRequired(org.nuxeo.connect.data.DownloadablePackage pkg)
      Returns:
      true if registration is required for download
      Since:
      11.1