public class UpgradeService extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
UpgradeService.UpgradabilityStatus |
| Constructor and Description |
|---|
UpgradeService(WorkspaceStorage workspaceStorage) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkBackwardCompatible(String checkedProjectVesion,
String referenceProjectVersion)
Checks whether a runtime able to handle (open without upgrading) referenceProjectVersion can also handle checkedProjectVersion
|
static UpgradeService.UpgradabilityStatus |
checkUpgradability(String projectVersion,
String rvdProjectVersion) |
com.google.gson.JsonElement |
upgradeProject(String projectName)
Upgrades a project to current RVD supported version
|
void |
upgradeWorkspace()
Upgrades all projects inside the project workspace to the version supported by current RVD
|
public UpgradeService(WorkspaceStorage workspaceStorage)
public static boolean checkBackwardCompatible(String checkedProjectVesion, String referenceProjectVersion) throws InvalidProjectVersion
referenceProjectVersion - checkedProjectVesion - InvalidProjectVersionpublic static UpgradeService.UpgradabilityStatus checkUpgradability(String projectVersion, String rvdProjectVersion) throws InvalidProjectVersion
InvalidProjectVersionpublic com.google.gson.JsonElement upgradeProject(String projectName) throws StorageException, UpgradeException
projectName - StorageExceptionUpgradeExceptionpublic void upgradeWorkspace()
throws StorageException
StorageExceptionCopyright © 2016. All Rights Reserved.