Class UpgradeResource


  • @Path("/lumis/service/portalmanagement/upgrade")
    public class UpgradeResource
    extends java.lang.Object
    LumisXP upgrade rest resource.
    Since:
    9.0.0
    Version:
    $Revision$ $Date$
    • Constructor Summary

      Constructors 
      Constructor Description
      UpgradeResource()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.ws.rs.core.Response downloadVersionUpgrade​(@NotEmpty @NotNull java.lang.String userMail, @NotEmpty @NotNull java.lang.String productVersion)
      Endpoint to download the LumisXP upgrade version.
      javax.ws.rs.core.Response initUpgrade​(@NotEmpty @NotNull java.lang.String userMail, @NotEmpty @NotNull java.lang.String productVersion, @NotEmpty @NotNull java.lang.String productDownloadId)
      Endpoint to start the LumisXP upgrade.
      void setExecutables​(LocalDataFile curFile)
      Sets all sh files as executable recursively.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UpgradeResource

        public UpgradeResource()
    • Method Detail

      • downloadVersionUpgrade

        @Path("/downloadVersion")
        @GET
        @Produces("application/json")
        public javax.ws.rs.core.Response downloadVersionUpgrade​(@QueryParam("userMail") @NotEmpty @NotNull
                                                                @NotEmpty @NotNull java.lang.String userMail,
                                                                @QueryParam("version") @NotEmpty @NotNull
                                                                @NotEmpty @NotNull java.lang.String productVersion)
                                                         throws PortalException
        Endpoint to download the LumisXP upgrade version.
        Parameters:
        userMail - current user lumis site login.
        productVersion - the target product version.
        Throws:
        PortalException
        Since:
        9.0.0
      • initUpgrade

        @Path("/init")
        @GET
        @Produces("application/json")
        public javax.ws.rs.core.Response initUpgrade​(@QueryParam("userMail") @NotEmpty @NotNull
                                                     @NotEmpty @NotNull java.lang.String userMail,
                                                     @QueryParam("version") @NotEmpty @NotNull
                                                     @NotEmpty @NotNull java.lang.String productVersion,
                                                     @QueryParam("productDownloadId") @NotEmpty @NotNull
                                                     @NotEmpty @NotNull java.lang.String productDownloadId)
                                              throws PortalException
        Endpoint to start the LumisXP upgrade.
        Parameters:
        userMail - current user lumis site login.
        productVersion - the target product version.
        productDownloadId - the already downloaded product version.
        Throws:
        PortalException
        Since:
        9.0.0
      • setExecutables

        public void setExecutables​(LocalDataFile curFile)
                            throws java.io.IOException
        Sets all sh files as executable recursively.
        Parameters:
        curFile - current file.
        Throws:
        java.io.IOException
        Since:
        9.0.0