Class PlatformProvisioningManager
java.lang.Object
com.e1c.g5.v8.dt.internal.provisioning.PlatformProvisioningManager
- All Implemented Interfaces:
IPlatformProvisioningManager
Implementation of the
IPlatformProvisioningManager
-
Field Summary
Fields inherited from interface com.e1c.g5.v8.dt.provisioning.IPlatformProvisioningManager
HEADLESS_INSTALLATION_ARGUMENT
-
Constructor Summary
ConstructorsConstructorDescriptionPlatformProvisioningManager
(IRuntimeRegistry runtimeTypeRegistry) Constructs the instance -
Method Summary
Modifier and TypeMethodDescriptionboolean
checkPreviousInstallationFailed
(Version version) Checks if there was an error during the last attempt of the platform support installationgetPlatformBundleNameForVersion
(Version version) Returns platform bundle name for the received version.Gets the platform support information in form of ordered versions lists with the designation of the installed/not installed status for each platform versionorg.eclipse.core.runtime.IStatus
performInstallation
(org.eclipse.equinox.p2.operations.InstallOperation installOperation, String bundleName, org.eclipse.core.runtime.IProgressMonitor monitor) Method performing bundle installation.org.eclipse.core.runtime.IStatus
performUninstallation
(org.eclipse.equinox.p2.operations.UninstallOperation uninstallOperation, org.eclipse.core.runtime.IProgressMonitor monitor) Method performing bundle uninstallation.org.eclipse.equinox.p2.operations.InstallOperation
Prepares the platform support P2 installation operationorg.eclipse.equinox.p2.operations.UninstallOperation
Prepares the platform support P2 uninstallation operationvoid
registerInstallationFailure
(Version version) Registers the installation failure for the platform support of the given versionboolean
resetInstallationFailure
(Version version) Resets the previously registred installation error for the given version, if any
-
Constructor Details
-
PlatformProvisioningManager
Constructs the instance- Parameters:
runtimeTypeRegistry
- The reference to theIRuntimeRegistry
-
-
Method Details
-
checkPreviousInstallationFailed
Description copied from interface:IPlatformProvisioningManager
Checks if there was an error during the last attempt of the platform support installation- Specified by:
checkPreviousInstallationFailed
in interfaceIPlatformProvisioningManager
- Parameters:
version
- The version of the platform to check the error for. May not benull
- Returns:
- True if the error is registered
-
getPlatformSupportInfo
Description copied from interface:IPlatformProvisioningManager
Gets the platform support information in form of ordered versions lists with the designation of the installed/not installed status for each platform version- Specified by:
getPlatformSupportInfo
in interfaceIPlatformProvisioningManager
- Returns:
- The list of support statuses for each platform version
-
preparePlatformSupportInstallOperation
public org.eclipse.equinox.p2.operations.InstallOperation preparePlatformSupportInstallOperation(Version version) Description copied from interface:IPlatformProvisioningManager
Prepares the platform support P2 installation operation- Specified by:
preparePlatformSupportInstallOperation
in interfaceIPlatformProvisioningManager
- Parameters:
version
- The 1C platform version to install. May not be {@link null}- Returns:
- The install operation for the given platform. May be
null
in case if the platform is not supported
-
preparePlatformSupportUninstallOperation
public org.eclipse.equinox.p2.operations.UninstallOperation preparePlatformSupportUninstallOperation(Version version) Description copied from interface:IPlatformProvisioningManager
Prepares the platform support P2 uninstallation operation- Specified by:
preparePlatformSupportUninstallOperation
in interfaceIPlatformProvisioningManager
- Parameters:
version
- The 1C platform version to uninstall support for. May not be {@link null}- Returns:
- The uninstall operation for the given platform. May be
null
in case if the platform is not supported/installed
-
registerInstallationFailure
Description copied from interface:IPlatformProvisioningManager
Registers the installation failure for the platform support of the given version- Specified by:
registerInstallationFailure
in interfaceIPlatformProvisioningManager
- Parameters:
version
- The version of the platform to register the error for. May not benull
-
resetInstallationFailure
Description copied from interface:IPlatformProvisioningManager
Resets the previously registred installation error for the given version, if any- Specified by:
resetInstallationFailure
in interfaceIPlatformProvisioningManager
- Parameters:
version
- The version of the platform to reset the error for. May not benull
- Returns:
- True in case if the error was registered earlier
-
getPlatformBundleNameForVersion
Description copied from interface:IPlatformProvisioningManager
Returns platform bundle name for the received version. Pay no attention if version is invalid - method just add required prefix- Specified by:
getPlatformBundleNameForVersion
in interfaceIPlatformProvisioningManager
- Parameters:
version
- The version of the platform to get bundle name. May not benull
- Returns:
- Bundle name for the required version, not
null
-
performInstallation
public org.eclipse.core.runtime.IStatus performInstallation(org.eclipse.equinox.p2.operations.InstallOperation installOperation, String bundleName, org.eclipse.core.runtime.IProgressMonitor monitor) throws InterruptedException Description copied from interface:IPlatformProvisioningManager
Method performing bundle installation. Originally is designed for platform, but may be used for others as well- Note: install operation must be resolved modally by the caller before method execution if needed
- Specified by:
performInstallation
in interfaceIPlatformProvisioningManager
- Parameters:
installOperation
- The provisioning install operation. May not benull
bundleName
- The bundle name to be started after installation. May benull
if we ignore bundle launchingmonitor
- Parent progress monitor of the performing operation. May benull
as it is combined with operation's if needed- Returns:
- Installation status. May not be
null
- Throws:
InterruptedException
-
performUninstallation
public org.eclipse.core.runtime.IStatus performUninstallation(org.eclipse.equinox.p2.operations.UninstallOperation uninstallOperation, org.eclipse.core.runtime.IProgressMonitor monitor) throws InterruptedException Description copied from interface:IPlatformProvisioningManager
Method performing bundle uninstallation. Originally is designed for platform, but may be used for others as well- Note: uninstall operation must be resolved modally by the caller before method execution if needed
- Specified by:
performUninstallation
in interfaceIPlatformProvisioningManager
- Parameters:
uninstallOperation
- The provisioning install operation. May not benull
monitor
- Parent progress monitor of the performing operation. May benull
as it's combined with operation's if needed- Returns:
- Installation status. May not be
null
- Throws:
InterruptedException
-