public class RpcPluginHelper extends Object implements PluginHelper
ConfluenceRpc
to perform plugin operations. All operations are
performed through the ConfluenceRpc
and therefore are performed as the
user currently logged into ConfluenceRpc
.
This relies on the Rpc Functest Plugin being installed, so it's not much good for that.Modifier and Type | Method and Description |
---|---|
void |
disablePlugin(Plugin plugin)
Disable the plugin.
|
void |
disablePluginModule(Plugin plugin,
String moduleKey) |
void |
disablePluginWithoutPersisting(Plugin plugin)
Disable the plugin without persisting.
|
void |
enablePlugin(Plugin plugin)
Enable the plugin.
|
void |
enablePluginModule(Plugin plugin,
String moduleKey) |
void |
installPlugin(UploadablePlugin plugin)
Install the plugin as the currently logged in User.
|
void |
installPluginIfNotInstalled(UploadablePlugin plugin)
Equivalent of calling
PluginHelper.isPluginInstalled(Plugin) and PluginHelper.installPlugin(UploadablePlugin) . |
boolean |
isPluginEnabled(Plugin plugin)
Returns true if the given plugin is currently enabled, otherwise false.
|
boolean |
isPluginInstalled(Plugin plugin)
Returns true if the given plugin is currently installed, otherwise false.
|
boolean |
isPluginModuleEnabled(Plugin plugin,
String moduleKey) |
void |
resetPluginEnablementState() |
void |
uninstallPlugin(Plugin plugin)
Uninstall the plugin as the currently logged in User.
|
public void installPluginIfNotInstalled(UploadablePlugin plugin) throws IOException
PluginHelper
PluginHelper.isPluginInstalled(Plugin)
and PluginHelper.installPlugin(UploadablePlugin)
.installPluginIfNotInstalled
in interface PluginHelper
IOException
public void installPlugin(UploadablePlugin plugin) throws IOException
PluginHelper
installPlugin
in interface PluginHelper
FileNotFoundException
- if the plugin file does not exist locallyIOException
PluginHelper.isPluginInstalled(Plugin)
public void uninstallPlugin(Plugin plugin)
PluginHelper
uninstallPlugin
in interface PluginHelper
PluginHelper.isPluginInstalled(Plugin)
public boolean isPluginInstalled(Plugin plugin)
PluginHelper
isPluginInstalled
in interface PluginHelper
public void enablePlugin(Plugin plugin)
PluginHelper
enablePlugin
in interface PluginHelper
PluginHelper.isPluginEnabled(Plugin)
public void resetPluginEnablementState()
resetPluginEnablementState
in interface PluginHelper
public void disablePlugin(Plugin plugin)
PluginHelper
disablePlugin
in interface PluginHelper
PluginHelper.isPluginEnabled(Plugin)
public void disablePluginWithoutPersisting(Plugin plugin)
PluginHelper
disablePluginWithoutPersisting
in interface PluginHelper
PluginHelper.isPluginEnabled(Plugin)
public boolean isPluginEnabled(Plugin plugin)
PluginHelper
isPluginEnabled
in interface PluginHelper
public void enablePluginModule(Plugin plugin, String moduleKey)
enablePluginModule
in interface PluginHelper
public void disablePluginModule(Plugin plugin, String moduleKey)
disablePluginModule
in interface PluginHelper
public boolean isPluginModuleEnabled(Plugin plugin, String moduleKey)
isPluginModuleEnabled
in interface PluginHelper
Copyright © 2003–2015 Atlassian. All rights reserved.