|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.it.plugin.WebTestPluginHelper
public class WebTestPluginHelper
Uses its own WebTester to perform and test administrative actions on a server with a given base url. The possession of the WebTester implies that the Dialog between this helper and the server is separate to any other conversation, so the logged in user and response (ie currently viewed page) are also separate..
Constructor Summary | |
---|---|
WebTestPluginHelper(java.lang.String baseUrl)
Opens a separate dialog with the server for the purpose of installing plugins. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebTestPluginHelper(java.lang.String baseUrl)
baseUrl
- base URL of the Confluence instance to talk toMethod Detail |
---|
public void installPlugin(UploadablePlugin plugin, User user) throws java.io.FileNotFoundException
PluginHelper
installPlugin
in interface PluginHelper
java.io.FileNotFoundException
- if the plugin file does not exist locallyPluginHelper.isPluginInstalled(com.atlassian.confluence.it.plugin.UploadablePlugin,com.atlassian.confluence.it.User)
public void uninstallPlugin(UploadablePlugin plugin, User user)
PluginHelper
uninstallPlugin
in interface PluginHelper
PluginHelper.isPluginInstalled(UploadablePlugin,User)
public boolean isPluginInstalled(UploadablePlugin plugin, User user)
PluginHelper
isPluginInstalled
in interface PluginHelper
public boolean isPluginInstalledWithDisplayName(java.lang.String pluginName, User user)
PluginHelper
isPluginInstalledWithDisplayName
in interface PluginHelper
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
public void enablePlugin(java.lang.String pluginDisplayName, User user)
PluginHelper
enablePlugin
in interface PluginHelper
PluginHelper.isPluginEnabled(String,User)
public void enablePluginModule(java.lang.String pluginKey, java.lang.String moduleKey, User user)
enablePluginModule
in interface PluginHelper
public void disablePluginModule(java.lang.String pluginKey, java.lang.String moduleKey, User user)
disablePluginModule
in interface PluginHelper
public void disablePlugin(java.lang.String pluginDisplayName, User user)
PluginHelper
disablePlugin
in interface PluginHelper
PluginHelper.isPluginEnabled(String,User)
public boolean isPluginEnabled(java.lang.String pluginDisplayName, User user)
PluginHelper
isPluginEnabled
in interface PluginHelper
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |