|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PluginHelper
Provides methods for administering Confluence plugins via the web interface for testing purposes.
Method Summary | |
---|---|
void |
disablePlugin(Plugin plugin)
Disable the plugin. |
void |
disablePluginModule(Plugin plugin,
java.lang.String moduleKey)
|
void |
enablePlugin(Plugin plugin)
Enable the plugin. |
void |
enablePluginModule(Plugin plugin,
java.lang.String moduleKey)
|
void |
installPlugin(UploadablePlugin plugin)
Install the plugin as the currently logged in User. |
void |
installPluginIfNotInstalled(UploadablePlugin plugin)
Equivalent of calling isPluginInstalled(Plugin) and 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,
java.lang.String moduleKey)
|
void |
resetPluginEnablementState()
|
void |
uninstallPlugin(Plugin plugin)
Uninstall the plugin as the currently logged in User. |
Method Detail |
---|
void installPluginIfNotInstalled(UploadablePlugin plugin) throws java.io.IOException
isPluginInstalled(Plugin)
and installPlugin(UploadablePlugin)
.
java.io.IOException
void installPlugin(UploadablePlugin plugin) throws java.io.IOException
java.lang.RuntimeException
- if the plugin is already installed.
java.io.FileNotFoundException
- if the plugin file does not exist locally
java.io.IOException
isPluginInstalled(Plugin)
void uninstallPlugin(Plugin plugin)
java.lang.RuntimeException
- if the plugin is not installed.isPluginInstalled(Plugin)
boolean isPluginInstalled(Plugin plugin)
void enablePlugin(Plugin plugin)
java.lang.RuntimeException
- if the plugin is already enabled.isPluginEnabled(Plugin)
void resetPluginEnablementState()
void disablePlugin(Plugin plugin)
java.lang.RuntimeException
- if the plugin is not enabled.isPluginEnabled(Plugin)
boolean isPluginEnabled(Plugin plugin)
void enablePluginModule(Plugin plugin, java.lang.String moduleKey)
void disablePluginModule(Plugin plugin, java.lang.String moduleKey)
boolean isPluginModuleEnabled(Plugin plugin, java.lang.String moduleKey)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |