| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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 | 
enablePlugin(java.lang.String pluginDisplayName,
             User user)
Enable the plugin.  | 
 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.  | 
 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 to| Method Detail | 
|---|
public void installPlugin(UploadablePlugin plugin,
                          User user)
                   throws java.io.FileNotFoundException
PluginHelper
installPlugin in interface PluginHelperjava.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 PluginHelperPluginHelper.isPluginInstalled(UploadablePlugin,User)
public boolean isPluginInstalled(UploadablePlugin plugin,
                                 User user)
PluginHelper
isPluginInstalled in interface PluginHelper
public void enablePlugin(java.lang.String pluginDisplayName,
                         User user)
PluginHelper
enablePlugin in interface PluginHelperPluginHelper.isPluginEnabled(String,User)
public void disablePlugin(java.lang.String pluginDisplayName,
                          User user)
PluginHelper
disablePlugin in interface PluginHelperPluginHelper.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 | |||||||||