java.lang.Object
com.atlassian.jira.functest.framework.admin.plugins.PluginsImpl
All Implemented Interfaces:
Plugins

public class PluginsImpl extends Object implements Plugins
Since:
v4.3
  • Constructor Details

  • Method Details

    • 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)