com.atlassian.confluence.it.plugin
Interface PluginHelper

All Known Implementing Classes:
WebTestPluginHelper

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 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.
 

Method Detail

installPlugin

void installPlugin(UploadablePlugin plugin,
                   User user)
                   throws java.io.FileNotFoundException
Install the plugin.

Throws:
java.lang.RuntimeException - if the plugin is already installed.
java.io.FileNotFoundException - if the plugin file does not exist locally
See Also:
isPluginInstalled(com.atlassian.confluence.it.plugin.UploadablePlugin,com.atlassian.confluence.it.User)

uninstallPlugin

void uninstallPlugin(UploadablePlugin plugin,
                     User user)
Uninstall the plugin.

Throws:
java.lang.RuntimeException - if the plugin is not installed.
See Also:
isPluginInstalled(UploadablePlugin,User)

isPluginInstalled

boolean isPluginInstalled(UploadablePlugin plugin,
                          User user)
Returns true if the given plugin is currently installed, otherwise false.


enablePlugin

void enablePlugin(java.lang.String pluginDisplayName,
                  User user)
Enable the plugin.

Throws:
java.lang.RuntimeException - if the plugin is already enabled.
See Also:
isPluginEnabled(String,User)

disablePlugin

void disablePlugin(java.lang.String pluginDisplayName,
                   User user)
Disable the plugin.

Throws:
java.lang.RuntimeException - if the plugin is not enabled.
See Also:
isPluginEnabled(String,User)

isPluginEnabled

boolean isPluginEnabled(java.lang.String pluginDisplayName,
                        User user)
Returns true if the given plugin is currently enabled, otherwise false.



Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.