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 ofATXInstallation
.
-
-
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 Constructor Description DescriptorImpl()
Instantiates a newATXInstallation.DescriptorImpl
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json)
FormValidation
doCheckName(String value)
Validates the test.guide name which is a required field.FormValidation
doCheckSetting(String name, String value)
Validates the current setting field.FormValidation
doTestConnection(String serverURL, String serverPort, String serverContextPath, boolean useHttpsConnection, String httpProxy, String httpsProxy, boolean ignoreSSL)
Tests the server connection.List<Descriptor<? extends ATXCustomSetting>>
getApplicableCustomSettings()
Gets the applicable custom settings.static String
getATXConfigVersion()
Gets the ATX version that this ATX configuration is based on.List<ATXCustomSetting>
getCustomSettings(ATXInstallation installation)
Gets the custom settings of a given ATX installation.ATXConfig
getDefaultConfig()
String
getDisplayName()
ATXInstallation[]
getInstallations()
ETInstallation.DescriptorImpl
getToolDescriptor()
Gets the tool descriptor holding the ecu.test installations.void
load()
void
setInstallations(ATXInstallation... installations)
Sets the installations.void
syncWithDefaultConfig()
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, calcAutoCompleteSettings, calcFillSettings, configure, 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, getT, getViewPage, isInstance, isSubTypeOf, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Constructor Detail
-
DescriptorImpl
public DescriptorImpl()
Instantiates a newATXInstallation.DescriptorImpl
.
-
-
Method Detail
-
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()
- Overrides:
load
in classDescriptor<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 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
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 classDescriptor<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 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
-
-