|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PluginInstallationManager
This is used to manage installable plugins. Installable plugins are plugins that can be scheduled to be installed, uninstalled, or upgraded during JIRAs next startup process. TODO: It would probably be better if this interface extended the PluginController interface and the JiraPluginManager was broken up to remove the use of the deprecated PluginManager interface.
Method Summary | |
---|---|
void |
cancelPluginUpdate(String key)
Cancel any scheduled changes - install, upgrade or uninstall - for the plugin identified by the key . |
void |
configurePluginPath(String pluginsPath)
Configure the manager to store installed, pending, and uninstalled plugins under the given path. |
com.atlassian.plugin.loaders.PluginLoader |
getInstalledPluginsLoader()
|
String |
installPlugin(com.atlassian.plugin.PluginJar pluginJar,
com.atlassian.plugin.PluginAccessor pluginAccessor)
Schedule the plugin to be installed or upgraded, if it is a newer version of a plugin that is already installed, during the next startup cycle. |
boolean |
isConfigured()
|
void |
processUpdates()
This method is to be called during the JIRA startup process. |
void |
uninstall(com.atlassian.plugin.Plugin plugin)
Schedule the plugin to be uninstalled during the next startup cycle. |
Method Detail |
---|
boolean isConfigured()
true
if the manager has been configured with a plugin path, false
otherwise.
The manager can be configured by calling the configurePluginPath()
method.void configurePluginPath(String pluginsPath)
pluginsPath
- path to store plugin jars underString installPlugin(com.atlassian.plugin.PluginJar pluginJar, com.atlassian.plugin.PluginAccessor pluginAccessor) throws com.atlassian.plugin.PluginParseException
pluginJar
- Plugin jar to be installed.pluginAccessor
- Plugin accessor to determine if the pluginJar is a newer version of an already installed
plugin
com.atlassian.plugin.PluginParseException
- Thrown if the pluginJar cannot be opened or if it does not contain plugin metadata
or the plugin metadata is in an invalid format.void uninstall(com.atlassian.plugin.Plugin plugin) throws com.atlassian.plugin.PluginException
plugin
- Plugin to be uninstalled
com.atlassian.plugin.PluginException
- if the plugin cannot be uninstalledvoid cancelPluginUpdate(String key)
key
.
key
- Key of the plugin for which updates should be cancelled.com.atlassian.plugin.loaders.PluginLoader getInstalledPluginsLoader()
void processUpdates() throws com.atlassian.plugin.PluginException
com.atlassian.plugin.PluginException
- Thrown if there is a problem with installing/upgrading/uninstalling one of the plugins
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |