com.atlassian.jira.functest.framework.admin.plugins
Class PluginsImpl

java.lang.Object
  extended by com.atlassian.jira.functest.framework.AbstractFuncTestUtil
      extended by com.atlassian.jira.functest.framework.admin.plugins.PluginsImpl
All Implemented Interfaces:
Plugins, FuncTestLogger

public class PluginsImpl
extends AbstractFuncTestUtil
implements Plugins

Since:
v4.3

Field Summary
 
Fields inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
environmentData, FS, locators, logger, logIndentLevel, tester
 
Constructor Summary
PluginsImpl(net.sourceforge.jwebunit.WebTester tester, com.atlassian.jira.webtests.util.JIRAEnvironmentData environmentData, int logIndentLevel, Navigation navigation, Administration administration, LocatorFactory locators)
           
 
Method Summary
 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.
 com.meterware.httpunit.WebResponse GET(String url)
           
 com.meterware.httpunit.WebResponse GET(String url, Map<String,String> headers)
           
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 PUT(String url, String postBody, String mediaType)
           
 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.
 
Methods inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
childLogIndentLevel, getAssertions, getEnvironmentData, getFuncTestHelperFactory, getLogger, log, log, navigation, submitAtPage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginsImpl

public PluginsImpl(net.sourceforge.jwebunit.WebTester tester,
                   com.atlassian.jira.webtests.util.JIRAEnvironmentData environmentData,
                   int logIndentLevel,
                   Navigation navigation,
                   Administration administration,
                   LocatorFactory locators)
Method Detail

isPluginInstalled

public boolean isPluginInstalled(String pluginKey)
Description copied from interface: Plugins
Checks if the plugin is found in the UPM.

Specified by:
isPluginInstalled in interface Plugins
Parameters:
pluginKey - - the key for the plugin eg. com.atlassian.examplePlugin
Returns:
if the plugin is installed on the instance.

referencePlugin

public ReferencePlugin referencePlugin()
Description copied from interface: Plugins
Gets an instance of the reference plugin.

Specified by:
referencePlugin in interface Plugins
Returns:
an instance of the reference plugin.

referenceDependentPlugin

public ReferenceDependentPlugin referenceDependentPlugin()
Description copied from interface: Plugins
Gets an instance of the reference dependent plugin.

Specified by:
referenceDependentPlugin in interface Plugins
Returns:
an instance of the reference dependent plugin.

referenceLanguagePack

public ReferenceLanguagePack referenceLanguagePack()
Description copied from interface: Plugins
Gets an instance of the reference language pack plugin.

Specified by:
referenceLanguagePack in interface Plugins
Returns:
an instance of the reference language pack plugin.

disablePlugin

public void disablePlugin(String pluginKey)
Description copied from interface: Plugins
Tries to disable a plugin (so long as it is installed).

Specified by:
disablePlugin in interface Plugins
Parameters:
pluginKey - - the key for the plugin eg. com.atlassian.examplePlugin

enablePlugin

public void enablePlugin(String pluginKey)
Description copied from interface: Plugins
Tries to enable a plugin (so long as it is installed).

Specified by:
enablePlugin in interface Plugins
Parameters:
pluginKey - - the key for the plugin eg. com.atlassian.examplePlugin

disablePluginModule

public void disablePluginModule(String pluginKey,
                                String completeModuleKey)
Description copied from interface: Plugins
Tries to disable a module within a plugin.

Specified by:
disablePluginModule in interface Plugins
Parameters:
pluginKey - - the key for the plugin eg. com.atlassian.examplePlugin
completeModuleKey - - the key for the module eg. com.atlassian.examplePlugin:exampleModule

enablePluginModule

public void enablePluginModule(String pluginKey,
                               String completeModuleKey)
Description copied from interface: Plugins
Tries to enable a module within a plugin.

Specified by:
enablePluginModule in interface Plugins
Parameters:
pluginKey - - the key for the plugin eg. com.atlassian.examplePlugin
completeModuleKey - - the key for the module eg. com.atlassian.examplePlugin:exampleModule

canDisablePluginModule

public boolean canDisablePluginModule(String pluginKey,
                                      String completeModuleKey)
Description copied from interface: Plugins
Is it possible to disable a module of a plugin.

Specified by:
canDisablePluginModule in interface Plugins
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)

canDisablePlugin

public boolean canDisablePlugin(String pluginKey)
Description copied from interface: Plugins
Is it possible to disable a plugin.

Specified by:
canDisablePlugin in interface Plugins
Parameters:
pluginKey - - the key for the plugin eg. com.atlassian.examplePlugin
Returns:
if the plugin is able to be disabled (ie. optional)

isPluginEnabled

public boolean isPluginEnabled(String pluginKey)
Description copied from interface: Plugins
Is a plugin enabled.

Specified by:
isPluginEnabled in interface Plugins
Parameters:
pluginKey - - the key of the plugin to check eg. com.atlassian.examplePlugin
Returns:
true if the plugin is enabled; otherwise, false.

isPluginDisabled

public boolean isPluginDisabled(String pluginKey)
Description copied from interface: Plugins
Is a plugin disabled.

Specified by:
isPluginDisabled in interface Plugins
Parameters:
pluginKey - - the key of the plugin to check eg. com.atlassian.examplePlugin
Returns:
true if the plugin is disabled; otherwise, false.

isPluginModuleEnabled

public boolean isPluginModuleEnabled(String pluginKey,
                                     String completeModuleKey)
Description copied from interface: Plugins
Is a module of a plugin enabled.

Specified by:
isPluginModuleEnabled in interface Plugins
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.

isPluginModuleDisabled

public boolean isPluginModuleDisabled(String pluginKey,
                                      String completeModuleKey)
Description copied from interface: Plugins
Is a module of a plugin disabled.

Specified by:
isPluginModuleDisabled in interface Plugins
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.

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

public com.meterware.httpunit.WebResponse GET(String url)
                                       throws IOException,
                                              SAXException
Throws:
IOException
SAXException

GET

public com.meterware.httpunit.WebResponse GET(String url,
                                              Map<String,String> headers)
                                       throws IOException,
                                              SAXException
Throws:
IOException
SAXException

getBaseUrlPlus

protected String getBaseUrlPlus(String... paths)


Copyright © 2002-2012 Atlassian. All Rights Reserved.