Class PluginsImpl
java.lang.Object
com.atlassian.jira.functest.framework.admin.plugins.PluginsImpl
- All Implemented Interfaces:
Plugins
- Since:
- v4.3
-
Constructor Summary
ConstructorsConstructorDescriptionPluginsImpl
(net.sourceforge.jwebunit.WebTester tester, JIRAEnvironmentData environmentData, int logIndentLevel, Navigation navigation, Administration administration, LocatorFactory locators) PluginsImpl
(net.sourceforge.jwebunit.WebTester tester, JIRAEnvironmentData environmentData, Navigation navigation, Administration administration, LocatorFactory locators) -
Method Summary
Modifier and TypeMethodDescriptionboolean
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.com.meterware.httpunit.WebResponse
com.meterware.httpunit.WebResponse
protected String
getBaseUrlPlus
(String... paths) 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.com.meterware.httpunit.WebResponse
PUT
(String url, JSONObject json, String mediaType) com.meterware.httpunit.WebResponse
Gets an instance of the reference dependent plugin.Gets an instance of the reference language pack plugin.Gets an instance of the reference plugin.
-
Constructor Details
-
Method Details
-
isPluginInstalled
Description copied from interface:Plugins
Checks if the plugin is found in the UPM.- Specified by:
isPluginInstalled
in interfacePlugins
- Parameters:
pluginKey
- - the key for the plugin eg. com.atlassian.examplePlugin- Returns:
- if the plugin is installed on the instance.
-
referencePlugin
Description copied from interface:Plugins
Gets an instance of the reference plugin.- Specified by:
referencePlugin
in interfacePlugins
- Returns:
- an instance of the reference plugin.
-
referenceDependentPlugin
Description copied from interface:Plugins
Gets an instance of the reference dependent plugin.- Specified by:
referenceDependentPlugin
in interfacePlugins
- Returns:
- an instance of the reference dependent plugin.
-
referenceLanguagePack
Description copied from interface:Plugins
Gets an instance of the reference language pack plugin.- Specified by:
referenceLanguagePack
in interfacePlugins
- Returns:
- an instance of the reference language pack plugin.
-
disablePlugin
Description copied from interface:Plugins
Tries to disable a plugin (so long as it is installed).- Specified by:
disablePlugin
in interfacePlugins
- Parameters:
pluginKey
- - the key for the plugin eg. com.atlassian.examplePlugin
-
enablePlugin
Description copied from interface:Plugins
Tries to enable a plugin (so long as it is installed).- Specified by:
enablePlugin
in interfacePlugins
- Parameters:
pluginKey
- - the key for the plugin eg. com.atlassian.examplePlugin
-
disablePluginModule
Description copied from interface:Plugins
Tries to disable a module within a plugin.- Specified by:
disablePluginModule
in interfacePlugins
- Parameters:
pluginKey
- - the key for the plugin eg. com.atlassian.examplePlugincompleteModuleKey
- - the key for the module eg. com.atlassian.examplePlugin:exampleModule
-
enablePluginModule
Description copied from interface:Plugins
Tries to enable a module within a plugin.- Specified by:
enablePluginModule
in interfacePlugins
- Parameters:
pluginKey
- - the key for the plugin eg. com.atlassian.examplePlugincompleteModuleKey
- - the key for the module eg. com.atlassian.examplePlugin:exampleModule
-
canDisablePluginModule
Description copied from interface:Plugins
Is it possible to disable a module of a plugin.- Specified by:
canDisablePluginModule
in interfacePlugins
- Parameters:
pluginKey
- - the key for the plugin eg. com.atlassian.examplePlugincompleteModuleKey
- - the key for the module eg. com.atlassian.examplePlugin:exampleModule- Returns:
- if the module is able to be disabled (ie. optional)
-
canDisablePlugin
Description copied from interface:Plugins
Is it possible to disable a plugin.- Specified by:
canDisablePlugin
in interfacePlugins
- Parameters:
pluginKey
- - the key for the plugin eg. com.atlassian.examplePlugin- Returns:
- if the plugin is able to be disabled (ie. optional)
-
isPluginEnabled
Description copied from interface:Plugins
Is a plugin enabled.- Specified by:
isPluginEnabled
in interfacePlugins
- Parameters:
pluginKey
- - the key of the plugin to check eg. com.atlassian.examplePlugin- Returns:
- true if the plugin is enabled; otherwise, false.
-
isPluginDisabled
Description copied from interface:Plugins
Is a plugin disabled.- Specified by:
isPluginDisabled
in interfacePlugins
- Parameters:
pluginKey
- - the key of the plugin to check eg. com.atlassian.examplePlugin- Returns:
- true if the plugin is disabled; otherwise, false.
-
isPluginModuleEnabled
Description copied from interface:Plugins
Is a module of a plugin enabled.- Specified by:
isPluginModuleEnabled
in interfacePlugins
- Parameters:
pluginKey
- - the key for the plugin eg. com.atlassian.examplePlugincompleteModuleKey
- - the key for the module eg. com.atlassian.examplePlugin:exampleModule- Returns:
- true if the module is enabled; otherwise, false.
-
isPluginModuleDisabled
Description copied from interface:Plugins
Is a module of a plugin disabled.- Specified by:
isPluginModuleDisabled
in interfacePlugins
- Parameters:
pluginKey
- - the key of the plugin eg. com.atlassian.examplePlugincompleteModuleKey
- - the key of the module to check eg. com.atlassian.examplePlugin:exampleModule- Returns:
- true if the module is disabled; otherwise, false.
-
PUT
public com.meterware.httpunit.WebResponse PUT(String url, JSONObject json, String mediaType) throws IOException, SAXException - Throws:
IOException
SAXException
-
PUT
public com.meterware.httpunit.WebResponse PUT(String url, String postBody, String mediaType) throws IOException, SAXException - Throws:
IOException
SAXException
-
GET
- Throws:
IOException
SAXException
-
GET
public com.meterware.httpunit.WebResponse GET(String url, Map<String, String> headers) throws IOException, SAXException- Throws:
IOException
SAXException
-
getBaseUrlPlus
-