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.
|
void |
uninstallPluginIfInstalled(Plugin plugin)
Equivalent of calling
PluginHelper.isPluginInstalled(Plugin) and PluginHelper.uninstallPlugin(Plugin). |
public void installPluginIfNotInstalled(UploadablePlugin plugin) throws IOException
PluginHelperPluginHelper.isPluginInstalled(Plugin) and PluginHelper.installPlugin(UploadablePlugin).installPluginIfNotInstalled in interface PluginHelperIOExceptionpublic void installPlugin(UploadablePlugin plugin) throws IOException
PluginHelperinstallPlugin in interface PluginHelperFileNotFoundException - if the plugin file does not exist locallyIOExceptionPluginHelper.isPluginInstalled(Plugin)public void uninstallPluginIfInstalled(Plugin plugin) throws IOException
PluginHelperPluginHelper.isPluginInstalled(Plugin) and PluginHelper.uninstallPlugin(Plugin).uninstallPluginIfInstalled in interface PluginHelperIOExceptionpublic void uninstallPlugin(Plugin plugin)
PluginHelperuninstallPlugin in interface PluginHelperPluginHelper.isPluginInstalled(Plugin)public boolean isPluginInstalled(Plugin plugin)
PluginHelperisPluginInstalled in interface PluginHelperpublic void enablePlugin(Plugin plugin)
PluginHelperenablePlugin in interface PluginHelperPluginHelper.isPluginEnabled(Plugin)public void resetPluginEnablementState()
resetPluginEnablementState in interface PluginHelperpublic void disablePlugin(Plugin plugin)
PluginHelperdisablePlugin in interface PluginHelperPluginHelper.isPluginEnabled(Plugin)public void disablePluginWithoutPersisting(Plugin plugin)
PluginHelperdisablePluginWithoutPersisting in interface PluginHelperPluginHelper.isPluginEnabled(Plugin)public boolean isPluginEnabled(Plugin plugin)
PluginHelperisPluginEnabled in interface PluginHelperpublic void enablePluginModule(Plugin plugin, String moduleKey)
enablePluginModule in interface PluginHelperpublic void disablePluginModule(Plugin plugin, String moduleKey)
disablePluginModule in interface PluginHelperpublic boolean isPluginModuleEnabled(Plugin plugin, String moduleKey)
isPluginModuleEnabled in interface PluginHelperCopyright © 2003–2022 Atlassian. All rights reserved.