Class UpgradeResource
- java.lang.Object
-
- lumis.service.portalmanagement.upgrade.UpgradeResource
-
@Path("/lumis/service/portalmanagement/upgrade") public class UpgradeResource extends java.lang.Object
LumisXP upgrade rest resource.- Since:
- 9.0.0
- Version:
- $Revision: 22420 $ $Date: 2019-02-19 16:21:02 -0300 (Tue, 19 Feb 2019) $
-
-
Constructor Summary
Constructors Constructor Description UpgradeResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response
downloadVersionUpgrade(@NotEmpty @NotNull java.lang.String userMail, @NotEmpty @NotNull java.lang.String productVersion)
Endpoint to download the LumisXP upgrade version.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.
-
-
-
Method Detail
-
downloadVersionUpgrade
@Path("/downloadVersion") @GET @Produces("application/json") public 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 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
-
-