Package de.xima.fc.mdl.plugin
Class PluginUpdateResult
java.lang.Object
de.xima.fc.mdl.plugin.PluginUpdateResult
- All Implemented Interfaces:
Serializable
POJO with the result of an attempt to update a plugin.
- Since:
- 8.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic PluginUpdateResult
forFailure
(PluginMeta plugin, List<String> localizedMessages) static PluginUpdateResult
forFailure
(PluginMeta plugin, List<String> localizedMessages, Throwable error) static PluginUpdateResult
forSuccess
(PluginMeta plugin, List<String> localizedMessages) static PluginUpdateResult
forUpToDate
(PluginMeta plugin, List<String> localizedMessages) getError()
boolean
Gets whether no error was encountered during the update of the plugin.
-
Method Details
-
getError
- Returns:
- When
not successful
, the error that caused the failure, if any.
-
getLocalizedMessages
- Returns:
- A list of localized warning or error messages with further details.
-
getPlugin
- Returns:
- ID and name of the updated plugin.
-
getStatus
- Returns:
- Whether the plugin was updated.
-
isSuccess
public boolean isSuccess()Gets whether no error was encountered during the update of the plugin. -
forFailure
- Parameters:
plugin
- ID and name of the updated plugin.localizedMessages
- A list of localized warning or error messages with further details.- Returns:
- A new plugin update result for a failed plugin update.
-
forFailure
public static PluginUpdateResult forFailure(PluginMeta plugin, List<String> localizedMessages, Throwable error) - Parameters:
plugin
- ID and name of the updated plugin.localizedMessages
- A list of localized warning or error messages with further details.error
- The error that caused the failure.- Returns:
- A new plugin update result for a failed plugin update.
-
forSuccess
- Parameters:
plugin
- ID and name of the updated plugin.localizedMessages
- A list of localized warning or error messages with further details.- Returns:
- A new plugin update result for a successfully updated plugin.
-
forUpToDate
- Parameters:
plugin
- ID and name of the updated plugin.localizedMessages
- A list of localized warning or error messages with further details.- Returns:
- A new plugin update result for a plugin that was not updated because it was already up-to-date..
-