|
||||||||||
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(java.lang.String pluginDisplayName,
User user)
Disable the plugin. |
void |
disablePluginModule(java.lang.String pluginKey,
java.lang.String moduleKey,
User user)
|
void |
enablePlugin(java.lang.String pluginDisplayName,
User user)
Enable the plugin. |
void |
enablePluginModule(java.lang.String pluginKey,
java.lang.String moduleKey,
User user)
|
void |
installPlugin(UploadablePlugin plugin,
User user)
Install the plugin. |
boolean |
isPluginEnabled(java.lang.String pluginDisplayName,
User user)
Returns true if the given plugin is currently enabled, otherwise false. |
boolean |
isPluginInstalled(UploadablePlugin plugin,
User user)
Returns true if the given plugin is currently installed, otherwise false. |
boolean |
isPluginInstalledWithDisplayName(java.lang.String pluginName,
User user)
Returns true if a plugin with the given display name is installed, otherwise false. |
void |
uninstallPlugin(UploadablePlugin plugin,
User user)
Uninstall the plugin. |
Method Detail |
---|
void installPlugin(UploadablePlugin plugin, User user) throws java.io.FileNotFoundException
java.lang.RuntimeException
- if the plugin is already installed.
java.io.FileNotFoundException
- if the plugin file does not exist locallyisPluginInstalled(com.atlassian.confluence.it.plugin.UploadablePlugin,com.atlassian.confluence.it.User)
void uninstallPlugin(UploadablePlugin plugin, User user)
java.lang.RuntimeException
- if the plugin is not installed.isPluginInstalled(UploadablePlugin,User)
boolean isPluginInstalled(UploadablePlugin plugin, User user)
boolean isPluginInstalledWithDisplayName(java.lang.String pluginName, User user)
pluginName
- name of the plugin as displayed in the plugin page.user
- who will log in if necessary to view the admin screen. Must have admin permission
void enablePlugin(java.lang.String pluginDisplayName, User user)
java.lang.RuntimeException
- if the plugin is already enabled.isPluginEnabled(String,User)
void disablePlugin(java.lang.String pluginDisplayName, User user)
java.lang.RuntimeException
- if the plugin is not enabled.isPluginEnabled(String,User)
boolean isPluginEnabled(java.lang.String pluginDisplayName, User user)
void enablePluginModule(java.lang.String pluginKey, java.lang.String moduleKey, User user)
void disablePluginModule(java.lang.String pluginKey, java.lang.String moduleKey, User user)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |