Class ATXInstallation.DescriptorImpl

java.lang.Object
hudson.model.Descriptor<ATXInstallation>
de.tracetronic.jenkins.plugins.ecutest.report.atx.installation.ATXInstallation.DescriptorImpl
All Implemented Interfaces:
Saveable, Loadable, OnMaster
Enclosing class:
ATXInstallation

@Symbol("testGuide") @Extension(ordinal=1001.0) public static class ATXInstallation.DescriptorImpl extends Descriptor<ATXInstallation>
DescriptorImpl of ATXInstallation.
  • Constructor Details

  • Method Details

    • getATXConfigVersion

      public static String getATXConfigVersion()
      Gets the ATX version that this ATX configuration is based on.
      Returns:
      the related ATX version
    • load

      public void load()
      Specified by:
      load in interface Loadable
      Overrides:
      load in class Descriptor<ATXInstallation>
    • getInstallations

      public ATXInstallation[] getInstallations()
    • setInstallations

      public void setInstallations(ATXInstallation... installations)
      Sets the installations.
      Parameters:
      installations - the new installations
    • getDefaultConfig

      public ATXConfig getDefaultConfig()
    • configure

      public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json)
      Overrides:
      configure in class Descriptor<ATXInstallation>
    • syncWithDefaultConfig

      public void syncWithDefaultConfig()
      Synchronizes current ATX configuration with default configuration by overriding their current values and saving them as new ATX installation.

      This method will be automatically called by ETPlugin.syncATXConfiguration() to avoid circular dependencies while loading other plugins. Explicit call to Descriptor.save() is required.

    • getCustomSettings

      public List<ATXCustomSetting> getCustomSettings(ATXInstallation installation)
      Gets the custom settings of a given ATX installation.
      Parameters:
      installation - the installation
      Returns:
      the custom settings list
    • getApplicableCustomSettings

      public List<Descriptor<? extends ATXCustomSetting>> getApplicableCustomSettings()
      Gets the applicable custom settings.
      Returns:
      the applicable custom settings
    • getToolDescriptor

      public ETInstallation.DescriptorImpl getToolDescriptor()
      Gets the tool descriptor holding the ecu.test installations.
      Returns:
      the tool descriptor
    • getDisplayName

      @Nonnull public String getDisplayName()
      Overrides:
      getDisplayName in class Descriptor<ATXInstallation>
    • doCheckName

      public FormValidation doCheckName(@QueryParameter String value)
      Validates the test.guide name which is a required field.
      Parameters:
      value - the name
      Returns:
      the form validation
    • doCheckSetting

      public FormValidation doCheckSetting(@QueryParameter String name, @QueryParameter String value)
      Validates the current setting field.
      Parameters:
      name - the field name
      value - the field value
      Returns:
      the form validation
    • doTestConnection

      public FormValidation doTestConnection(@QueryParameter String serverURL, @QueryParameter String serverPort, @QueryParameter String serverContextPath, @QueryParameter boolean useHttpsConnection, @QueryParameter String httpProxy, @QueryParameter String httpsProxy, @QueryParameter boolean ignoreSSL)
      Tests the server connection.
      Parameters:
      serverURL - the server URL
      serverPort - the server port
      serverContextPath - the server context path
      useHttpsConnection - if secure connection is used
      httpProxy - the HTTP proxy
      httpsProxy - the HTTPS proxy
      ignoreSSL - specifies whether to ignore SSL issues
      Returns:
      the form validation