Package de.xima.fc.mdl.plugin
Class PluginUpdateCheckResult
java.lang.Object
de.xima.fc.mdl.plugin.PluginUpdateCheckResult
- All Implemented Interfaces:
Serializable
POJO with the result of an attempt to check for updates of a plugin.
- Since:
- 8.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic PluginUpdateCheckResultempty(WorkspaceScope scope) intstatic PluginUpdateCheckResultupdateCheckResult(int numberOfAvailableUpdates, WorkspaceScope checkedScopeWithUpdates, Map<String, String> updatePluginMetaData)
-
Method Details
-
getNumberOfAvailableUpdates
public int getNumberOfAvailableUpdates()- Returns:
- number of updates for a given scope.
-
getCheckedScopeWithUpdates
- Returns:
- scope with possible updates for plugins.
-
empty
- Parameters:
scope- Workspace scope that was checked.- Returns:
- New empty check results with the given scope and zero updates available.
-
updateCheckResult
public static PluginUpdateCheckResult updateCheckResult(int numberOfAvailableUpdates, WorkspaceScope checkedScopeWithUpdates, Map<String, String> updatePluginMetaData) - Parameters:
numberOfAvailableUpdates- number of updates in given scopecheckedScopeWithUpdates- checked scope with updatesupdatePluginMetaData- Map between the name of the plugin and the available update version.- Returns:
- the check result with the given parameters
-
getUpdatePluginMetaData
- Returns:
- a map of meta data with the plugin name from proma as key and the update version as the value.
-