Interface PluginHelper
-
- All Known Implementing Classes:
RpcPluginHelper
@Deprecated public interface PluginHelper
Deprecated.Please use confluence-test-utils module instead. See {com.atlassian.confluence.test.plugin.PluginHelper} alternativeProvides methods for administering Confluence plugins via the web interface for testing purposes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
disablePlugin(Plugin plugin)
Deprecated.Disable the plugin.void
disablePluginModule(Plugin plugin, String moduleKey)
Deprecated.void
disablePluginWithoutPersisting(Plugin plugin)
Deprecated.Disable the plugin without persisting.void
enablePlugin(Plugin plugin)
Deprecated.Enable the plugin.void
enablePluginModule(Plugin plugin, String moduleKey)
Deprecated.void
installPlugin(UploadablePlugin plugin)
Deprecated.Install the plugin as the currently logged in User.void
installPluginIfNotInstalled(UploadablePlugin plugin)
Deprecated.Equivalent of callingisPluginInstalled(Plugin)
andinstallPlugin(UploadablePlugin)
.boolean
isPluginEnabled(Plugin plugin)
Deprecated.Returns true if the given plugin is currently enabled, otherwise false.boolean
isPluginInstalled(Plugin plugin)
Deprecated.Returns true if the given plugin is currently installed, otherwise false.boolean
isPluginModuleEnabled(Plugin plugin, String moduleKey)
Deprecated.void
resetPluginEnablementState()
Deprecated.void
uninstallPlugin(Plugin plugin)
Deprecated.Uninstall the plugin as the currently logged in User.void
uninstallPluginIfInstalled(Plugin plugin)
Deprecated.Equivalent of callingisPluginInstalled(Plugin)
anduninstallPlugin(Plugin)
.
-
-
-
Method Detail
-
installPluginIfNotInstalled
void installPluginIfNotInstalled(UploadablePlugin plugin) throws IOException
Deprecated.Equivalent of callingisPluginInstalled(Plugin)
andinstallPlugin(UploadablePlugin)
.- Throws:
IOException
-
installPlugin
void installPlugin(UploadablePlugin plugin) throws IOException
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:
isPluginInstalled(Plugin)
-
uninstallPluginIfInstalled
void uninstallPluginIfInstalled(Plugin plugin) throws IOException
Deprecated.Equivalent of callingisPluginInstalled(Plugin)
anduninstallPlugin(Plugin)
.- Throws:
IOException
-
uninstallPlugin
void uninstallPlugin(Plugin plugin)
Deprecated.Uninstall the plugin as the currently logged in User.- Throws:
RuntimeException
- if the plugin is not installed.- See Also:
isPluginInstalled(Plugin)
-
isPluginInstalled
boolean isPluginInstalled(Plugin plugin)
Deprecated.Returns true if the given plugin is currently installed, otherwise false. Requires the logged in user to have admin access.
-
enablePlugin
void enablePlugin(Plugin plugin)
Deprecated.Enable the plugin. Requires the logged in user to have admin access.- Throws:
RuntimeException
- if the plugin is already enabled.- See Also:
isPluginEnabled(Plugin)
-
resetPluginEnablementState
void resetPluginEnablementState()
Deprecated.
-
disablePlugin
void disablePlugin(Plugin plugin)
Deprecated.Disable the plugin. Requires the logged in user to have admin access.- Throws:
RuntimeException
- if the plugin is not enabled.- See Also:
isPluginEnabled(Plugin)
-
disablePluginWithoutPersisting
void disablePluginWithoutPersisting(Plugin plugin)
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(Plugin)
-
isPluginEnabled
boolean isPluginEnabled(Plugin plugin)
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.
-
-