com.atlassian.confluence.it.plugin
Class WebTestPluginHelper

java.lang.Object
  extended by com.atlassian.confluence.it.plugin.WebTestPluginHelper

public class WebTestPluginHelper
extends Object

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(String baseUrl, User initialUser)
          Opens a separate dialog with the server for the purpose of installing plugins.
 
Method Summary
 void disablePlugin(Plugin plugin)
          Disable the plugin using its display name.
 void enablePlugin(Plugin plugin)
           
 void installPlugin(UploadablePlugin plugin)
           
 boolean isPluginEnabled(Plugin plugin)
          Throws an exception if the plugin is not installed.
 boolean isPluginInstalled(Plugin plugin)
           
 void uninstallPlugin(Plugin plugin)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebTestPluginHelper

public WebTestPluginHelper(String baseUrl,
                           User initialUser)
Opens a separate dialog with the server for the purpose of installing plugins. It does this to not interface with any ongoing dialog in the calling code.

Parameters:
baseUrl - base URL of the Confluence instance to talk to
initialUser - the user to login as initially
Method Detail

installPlugin

public void installPlugin(UploadablePlugin plugin)
                   throws FileNotFoundException
Throws:
FileNotFoundException

uninstallPlugin

public void uninstallPlugin(Plugin plugin)

isPluginInstalled

public boolean isPluginInstalled(Plugin plugin)

enablePlugin

public void enablePlugin(Plugin plugin)

disablePlugin

public void disablePlugin(Plugin plugin)
Disable the plugin using its display name.


isPluginEnabled

public boolean isPluginEnabled(Plugin plugin)
Throws an exception if the plugin is not installed.

Returns:
true if the plugin is installed and enabled.


Copyright © 2003-2013 Atlassian. All Rights Reserved.