org.eclipse.update.operations
Interface IOperationValidator


public interface IOperationValidator

This class contains various validation methods to be invoked before or during executing update manager operations.

Note: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.

Since:
3.0

Method Summary
 IStatus validateCurrentState()
          Check the current state.
 IStatus validatePendingChanges(IConfigFeatureOperation[] jobs)
          Called by the API using managed-only update policy.
 IStatus validatePendingChanges(IInstallFeatureOperation[] jobs)
          Called by the UI before doing a batched processing of several pending install changes.
 IStatus validatePendingChanges(IUnconfigFeatureOperation[] jobs)
          Called by the API using managed-only update policy.
 IStatus validatePendingConfig(IFeature feature)
          Called before performing operation.
 IStatus validatePendingInstall(IFeature oldFeature, IFeature newFeature)
          Called before performing install.
 IStatus validatePendingReplaceVersion(IFeature feature, IFeature anotherFeature)
          Called before performing operation.
 IStatus validatePendingRevert(IInstallConfiguration config)
          Called before doing a revert/ restore operation
 IStatus validatePendingUnconfig(IFeature feature)
          Called before performing operation.
 IStatus validatePlatformConfigValid()
          Checks if the platform configuration has been modified outside this program.
 

Method Detail

validatePendingInstall

IStatus validatePendingInstall(IFeature oldFeature,
                               IFeature newFeature)
Called before performing install.

Returns:
the error status, or null if no errors

validatePendingConfig

IStatus validatePendingConfig(IFeature feature)
Called before performing operation.

Returns:
the error status, or null if no errors

validatePendingUnconfig

IStatus validatePendingUnconfig(IFeature feature)
Called before performing operation.

Returns:
the error status, or null if no errors

validatePendingReplaceVersion

IStatus validatePendingReplaceVersion(IFeature feature,
                                      IFeature anotherFeature)
Called before performing operation.

Returns:
the error status, or null if no errors

validatePendingRevert

IStatus validatePendingRevert(IInstallConfiguration config)
Called before doing a revert/ restore operation

Returns:
the error status, or null if no errors

validatePendingChanges

IStatus validatePendingChanges(IInstallFeatureOperation[] jobs)
Called by the UI before doing a batched processing of several pending install changes.

Returns:
the error status, or null if no errors

validatePendingChanges

IStatus validatePendingChanges(IConfigFeatureOperation[] jobs)
Called by the API using managed-only update policy. This is use for batch processing of several pending configure changes.

Returns:
the error status, or null if no errors
Since:
3.3

validatePendingChanges

IStatus validatePendingChanges(IUnconfigFeatureOperation[] jobs)
Called by the API using managed-only update policy. This is use for batch processing of several pending unconfigure changes.

Returns:
the error status, or null if no errors
Since:
3.3

validateCurrentState

IStatus validateCurrentState()
Check the current state.

Returns:
the error status, or null if no errors

validatePlatformConfigValid

IStatus validatePlatformConfigValid()
Checks if the platform configuration has been modified outside this program.

Returns:
the error status, or null if no errors