public class

PluginsImpl

extends AbstractFuncTestUtil
implements Plugins
java.lang.Object
   ↳ com.atlassian.jira.functest.framework.AbstractFuncTestUtil
     ↳ com.atlassian.jira.functest.framework.admin.plugins.PluginsImpl

Summary

[Expand]
Inherited Fields
From class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
Public Constructors
PluginsImpl(WebTester tester, JIRAEnvironmentData environmentData, int logIndentLevel, Navigation navigation, Administration administration, LocatorFactory locators)
Public Methods
WebResponse GET(String url)
WebResponse GET(String url, Map<StringString> headers)
WebResponse PUT(String url, String postBody, String mediaType)
WebResponse PUT(String url, JSONObject json, String mediaType)
boolean canDisablePlugin(String pluginKey)
Is it possible to disable a plugin.
boolean canDisablePluginModule(String pluginKey, String completeModuleKey)
Is it possible to disable a module of a plugin.
void disablePlugin(String pluginKey)
Tries to disable a plugin (so long as it is installed).
void disablePluginModule(String pluginKey, String completeModuleKey)
Tries to disable a module within a plugin.
void enablePlugin(String pluginKey)
Tries to enable a plugin (so long as it is installed).
void enablePluginModule(String pluginKey, String completeModuleKey)
Tries to enable a module within a plugin.
boolean isPluginDisabled(String pluginKey)
Is a plugin disabled.
boolean isPluginEnabled(String pluginKey)
Is a plugin enabled.
boolean isPluginInstalled(String pluginKey)
Checks if the plugin is found in the UPM.
boolean isPluginModuleDisabled(String pluginKey, String completeModuleKey)
Is a module of a plugin disabled.
boolean isPluginModuleEnabled(String pluginKey, String completeModuleKey)
Is a module of a plugin enabled.
ReferenceDependentPlugin referenceDependentPlugin()
Gets an instance of the reference dependent plugin.
ReferenceLanguagePack referenceLanguagePack()
Gets an instance of the reference language pack plugin.
ReferencePlugin referencePlugin()
Gets an instance of the reference plugin.
Protected Methods
String getBaseUrlPlus(String... paths)
[Expand]
Inherited Methods
From class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
From class java.lang.Object
From interface com.atlassian.jira.functest.framework.admin.plugins.Plugins
From interface com.atlassian.jira.testkit.client.log.FuncTestLogger

Public Constructors

public PluginsImpl (WebTester tester, JIRAEnvironmentData environmentData, int logIndentLevel, Navigation navigation, Administration administration, LocatorFactory locators)

Public Methods

public WebResponse GET (String url)

Throws
IOException
SAXException

public WebResponse GET (String url, Map<StringString> headers)

Throws
IOException
SAXException

public WebResponse PUT (String url, String postBody, String mediaType)

Throws
IOException
SAXException

public WebResponse PUT (String url, JSONObject json, String mediaType)

Throws
IOException
SAXException

public boolean canDisablePlugin (String pluginKey)

Is it possible to disable a plugin.

Parameters
pluginKey - the key for the plugin eg. com.atlassian.examplePlugin
Returns
  • if the plugin is able to be disabled (ie. optional)

public boolean canDisablePluginModule (String pluginKey, String completeModuleKey)

Is it possible to disable a module of a plugin.

Parameters
pluginKey - the key for the plugin eg. com.atlassian.examplePlugin
completeModuleKey - the key for the module eg. com.atlassian.examplePlugin:exampleModule
Returns
  • if the module is able to be disabled (ie. optional)

public void disablePlugin (String pluginKey)

Tries to disable a plugin (so long as it is installed).

Parameters
pluginKey - the key for the plugin eg. com.atlassian.examplePlugin

public void disablePluginModule (String pluginKey, String completeModuleKey)

Tries to disable a module within a plugin.

Parameters
pluginKey - the key for the plugin eg. com.atlassian.examplePlugin
completeModuleKey - the key for the module eg. com.atlassian.examplePlugin:exampleModule

public void enablePlugin (String pluginKey)

Tries to enable a plugin (so long as it is installed).

Parameters
pluginKey - the key for the plugin eg. com.atlassian.examplePlugin

public void enablePluginModule (String pluginKey, String completeModuleKey)

Tries to enable a module within a plugin.

Parameters
pluginKey - the key for the plugin eg. com.atlassian.examplePlugin
completeModuleKey - the key for the module eg. com.atlassian.examplePlugin:exampleModule

public boolean isPluginDisabled (String pluginKey)

Is a plugin disabled.

Parameters
pluginKey - the key of the plugin to check eg. com.atlassian.examplePlugin
Returns
  • true if the plugin is disabled; otherwise, false.

public boolean isPluginEnabled (String pluginKey)

Is a plugin enabled.

Parameters
pluginKey - the key of the plugin to check eg. com.atlassian.examplePlugin
Returns
  • true if the plugin is enabled; otherwise, false.

public boolean isPluginInstalled (String pluginKey)

Checks if the plugin is found in the UPM.

Parameters
pluginKey - the key for the plugin eg. com.atlassian.examplePlugin
Returns
  • if the plugin is installed on the instance.

public boolean isPluginModuleDisabled (String pluginKey, String completeModuleKey)

Is a module of a plugin disabled.

Parameters
pluginKey - the key of the plugin eg. com.atlassian.examplePlugin
completeModuleKey - the key of the module to check eg. com.atlassian.examplePlugin:exampleModule
Returns
  • true if the module is disabled; otherwise, false.

public boolean isPluginModuleEnabled (String pluginKey, String completeModuleKey)

Is a module of a plugin enabled.

Parameters
pluginKey - the key for the plugin eg. com.atlassian.examplePlugin
completeModuleKey - the key for the module eg. com.atlassian.examplePlugin:exampleModule
Returns
  • true if the module is enabled; otherwise, false.

public ReferenceDependentPlugin referenceDependentPlugin ()

Gets an instance of the reference dependent plugin.

Returns
  • an instance of the reference dependent plugin.

public ReferenceLanguagePack referenceLanguagePack ()

Gets an instance of the reference language pack plugin.

Returns
  • an instance of the reference language pack plugin.

public ReferencePlugin referencePlugin ()

Gets an instance of the reference plugin.

Returns
  • an instance of the reference plugin.

Protected Methods

protected String getBaseUrlPlus (String... paths)