Package sonia.scm.plugin
Interface PluginManager
public interface PluginManager
The plugin manager is responsible for plugin related tasks, such as install, uninstall or updating.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoid
Cancel all pending plugins.void
Install all pending plugins and restart the scm context.Returns all available plugins.getAvailable
(String name) Returns the available plugin with the given name.Returns all installed plugins.getInstalled
(String name) Returns the installed plugin with the given name.Returns all pending plugins.default PluginManager.PluginResult
Returns all available plugin sets from the plugin center.Returns all updatable plugins.void
Installs the plugin with the given name from the list of available plugins.void
installPluginSets
(Set<String> pluginSets, boolean restartAfterInstallation) Collects and installs all plugins and their dependencies for the given plugin sets.void
Marks the plugin with the given name for uninstall.void
Update all installed plugins.
-
Method Details
-
getAvailable
Returns the available plugin with the given name. -
getInstalled
Returns the installed plugin with the given name. -
getInstalled
List<InstalledPlugin> getInstalled()Returns all installed plugins. -
getPlugins
- Since:
- 2.40.0
-
getAvailable
List<AvailablePlugin> getAvailable()Returns all available plugins. The list contains the plugins which are loaded from the plugin center, but without the installed plugins. -
getPluginSets
Returns all available plugin sets from the plugin center.- Since:
- 2.35.0
-
installPluginSets
Collects and installs all plugins and their dependencies for the given plugin sets.- Parameters:
pluginSets
- Ids of plugin sets to installrestartAfterInstallation
- restart context after all plugins have been installed- Since:
- 2.35.0
-
getUpdatable
List<InstalledPlugin> getUpdatable()Returns all updatable plugins. -
getPending
PendingPlugins getPending()Returns all pending plugins.- Since:
- 2.38.0
-
install
Installs the plugin with the given name from the list of available plugins.- Parameters:
name
- plugin namerestartAfterInstallation
- restart context after plugin installation
-
uninstall
Marks the plugin with the given name for uninstall.- Parameters:
name
- plugin namerestartAfterInstallation
- restart context after plugin has been marked to really uninstall the plugin
-
executePendingAndRestart
void executePendingAndRestart()Install all pending plugins and restart the scm context. -
cancelPending
void cancelPending()Cancel all pending plugins. -
updateAll
void updateAll()Update all installed plugins.
-