Class ATXInstallation.DescriptorImpl
java.lang.Object
hudson.model.Descriptor<ATXInstallation>
de.tracetronic.jenkins.plugins.ecutest.report.atx.installation.ATXInstallation.DescriptorImpl
- Enclosing class:
- ATXInstallation
@Symbol("testGuide")
@Extension(ordinal=1001.0)
public static class ATXInstallation.DescriptorImpl
extends Descriptor<ATXInstallation>
DescriptorImpl of
ATXInstallation
.-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
configure
(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) doCheckName
(String value) Validates the test.guide name which is a required field.doCheckSetting
(String name, String value) Validates the current setting field.doTestConnection
(String serverURL, String serverPort, String serverContextPath, boolean useHttpsConnection, String httpProxy, String httpsProxy, boolean ignoreSSL) Tests the server connection.List<Descriptor<? extends ATXCustomSetting>>
Gets the applicable custom settings.static String
Gets the ATX version that this ATX configuration is based on.getCustomSettings
(ATXInstallation installation) Gets the custom settings of a given ATX installation.Gets the tool descriptor holding the ecu.test installations.void
load()
void
setInstallations
(ATXInstallation... installations) Sets the installations.void
Synchronizes current ATX configuration with default configuration by overriding their current values and saving them as new ATX installation.Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
DescriptorImpl
public DescriptorImpl()Instantiates a newATXInstallation.DescriptorImpl
.
-
-
Method Details
-
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 interfaceLoadable
- Overrides:
load
in classDescriptor<ATXInstallation>
-
getInstallations
-
setInstallations
Sets the installations.- Parameters:
installations
- the new installations
-
getDefaultConfig
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) - Overrides:
configure
in classDescriptor<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 toDescriptor.save()
is required. -
getCustomSettings
Gets the custom settings of a given ATX installation.- Parameters:
installation
- the installation- Returns:
- the custom settings list
-
getApplicableCustomSettings
Gets the applicable custom settings.- Returns:
- the applicable custom settings
-
getToolDescriptor
Gets the tool descriptor holding the ecu.test installations.- Returns:
- the tool descriptor
-
getDisplayName
- Overrides:
getDisplayName
in classDescriptor<ATXInstallation>
-
doCheckName
Validates the test.guide name which is a required field.- Parameters:
value
- the name- Returns:
- the form validation
-
doCheckSetting
Validates the current setting field.- Parameters:
name
- the field namevalue
- 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 URLserverPort
- the server portserverContextPath
- the server context pathuseHttpsConnection
- if secure connection is usedhttpProxy
- the HTTP proxyhttpsProxy
- the HTTPS proxyignoreSSL
- specifies whether to ignore SSL issues- Returns:
- the form validation
-