Interface PluginHelper
- All Known Implementing Classes:
RpcPluginHelper
Deprecated.
Please use confluence-test-utils module instead.
See {com.atlassian.confluence.test.plugin.PluginHelper} alternative
Provides methods for administering Confluence plugins via the web interface for testing purposes.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddisablePlugin(Plugin plugin) Deprecated.Disable the plugin.voiddisablePluginModule(Plugin plugin, String moduleKey) Deprecated.voiddisablePluginWithoutPersisting(Plugin plugin) Deprecated.Disable the plugin without persisting.voidenablePlugin(Plugin plugin) Deprecated.Enable the plugin.voidenablePluginModule(Plugin plugin, String moduleKey) Deprecated.voidinstallPlugin(UploadablePlugin plugin) Deprecated.Install the plugin as the currently logged in User.voidDeprecated.Equivalent of callingisPluginInstalled(Plugin)andinstallPlugin(UploadablePlugin).booleanisPluginEnabled(Plugin plugin) Deprecated.Returns true if the given plugin is currently enabled, otherwise false.booleanisPluginInstalled(Plugin plugin) Deprecated.Returns true if the given plugin is currently installed, otherwise false.booleanisPluginModuleEnabled(Plugin plugin, String moduleKey) Deprecated.voidDeprecated.voiduninstallPlugin(Plugin plugin) Deprecated.Uninstall the plugin as the currently logged in User.voiduninstallPluginIfInstalled(Plugin plugin) Deprecated.Equivalent of callingisPluginInstalled(Plugin)anduninstallPlugin(Plugin).
-
Method Details
-
installPluginIfNotInstalled
Deprecated.Equivalent of callingisPluginInstalled(Plugin)andinstallPlugin(UploadablePlugin).- Throws:
IOException
-
installPlugin
Deprecated.Install the plugin as the currently logged in User.- Throws:
RuntimeException- if the plugin is already installed.FileNotFoundException- if the plugin file does not exist locallyIOException- See Also:
-
uninstallPluginIfInstalled
Deprecated.Equivalent of callingisPluginInstalled(Plugin)anduninstallPlugin(Plugin).- Throws:
IOException
-
uninstallPlugin
Deprecated.Uninstall the plugin as the currently logged in User.- Throws:
RuntimeException- if the plugin is not installed.- See Also:
-
isPluginInstalled
Deprecated.Returns true if the given plugin is currently installed, otherwise false. Requires the logged in user to have admin access. -
enablePlugin
Deprecated.Enable the plugin. Requires the logged in user to have admin access.- Throws:
RuntimeException- if the plugin is already enabled.- See Also:
-
resetPluginEnablementState
void resetPluginEnablementState()Deprecated. -
disablePlugin
Deprecated.Disable the plugin. Requires the logged in user to have admin access.- Throws:
RuntimeException- if the plugin is not enabled.- See Also:
-
disablePluginWithoutPersisting
Deprecated.Disable the plugin without persisting. Requires the logged in user to have admin access.- Throws:
RuntimeException- if the plugin is not enabled.- See Also:
-
isPluginEnabled
Deprecated.Returns true if the given plugin is currently enabled, otherwise false. May throw an exception if the plugin is not installed, see implementations for details. -
enablePluginModule
Deprecated. -
disablePluginModule
Deprecated. -
isPluginModuleEnabled
Deprecated.
-