Package io.jenkins.plugins.dotnet
Class DotNetSDKInstaller.DescriptorImpl
java.lang.Object
hudson.model.Descriptor<ToolInstaller>
hudson.tools.ToolInstallerDescriptor<DotNetSDKInstaller>
io.jenkins.plugins.dotnet.DotNetSDKInstaller.DescriptorImpl
- Enclosing class:
- DotNetSDKInstaller
@Extension
@Symbol("installDotNetSDK")
public static final class DotNetSDKInstaller.DescriptorImpl
extends ToolInstallerDescriptor<DotNetSDKInstaller>
A descriptor for a .NET SDK installer.
-
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
-
Method Summary
Modifier and TypeMethodDescriptiondoAutoCompleteLabel
(String value) Performs auto-completion on a label expression.doCheckLabel
(String value) Performs validation on a label expression.doCheckRelease
(String version, String value) Performs validation on a .NET release name.doCheckSdk
(String version, String release, String value) Performs validation on a .NET SDK name.doCheckUrl
(String version, String release, String sdk, String value) Performs validation on a .NET SDK installation package URL.doCheckVersion
(String value) Performs validation on a .NET version name.doFillReleaseItems
(String version, boolean includePreview) Fills a listbox with the names of .NET releases.doFillSdkItems
(String version, String release) Fills a listbox with the names of .NET SDKs.doFillUrlItems
(String sdk) Fills a listbox with the installation package URLs for a .NET SDK.Fills a listbox with the names of the available .NET versions.Returns the display name for a .NET SDK installer.boolean
isApplicable
(Class<? extends ToolInstallation> toolType) Determines whether this installer is applicable for the specified type of tool.Methods inherited from class hudson.tools.ToolInstallerDescriptor
all, for_
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, 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, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
DescriptorImpl
public DescriptorImpl()
-
-
Method Details
-
doAutoCompleteLabel
@NonNull @POST public AutoCompletionCandidates doAutoCompleteLabel(@CheckForNull @QueryParameter String value) Performs auto-completion on a label expression.- Overrides:
doAutoCompleteLabel
in classToolInstallerDescriptor<DotNetSDKInstaller>
- Parameters:
value
- The (partial) label expression to auto-complete.- Returns:
- The computed auto-completion candidates.
-
doCheckLabel
Performs validation on a label expression.- Overrides:
doCheckLabel
in classToolInstallerDescriptor<DotNetSDKInstaller>
- Parameters:
value
- The label expression to validate.- Returns:
- The validation result.
-
doCheckRelease
@NonNull @POST public FormValidation doCheckRelease(@CheckForNull @QueryParameter String version, @CheckForNull @QueryParameter String value) Performs validation on a .NET release name.- Parameters:
version
- The name of the .NET version containing the release.value
- The .NET release name to validate.- Returns:
- The validation result.
-
doCheckSdk
@NonNull @POST public FormValidation doCheckSdk(@CheckForNull @QueryParameter String version, @CheckForNull @QueryParameter String release, @CheckForNull @QueryParameter String value) Performs validation on a .NET SDK name.- Parameters:
version
- The name of the .NET version containing the release.release
- The name of the .NET release containing the SDK.value
- The .NET SDK name to validate.- Returns:
- The validation result.
-
doCheckUrl
@NonNull @POST public FormValidation doCheckUrl(@CheckForNull @QueryParameter String version, @CheckForNull @QueryParameter String release, @CheckForNull @QueryParameter String sdk, @CheckForNull @QueryParameter String value) Performs validation on a .NET SDK installation package URL.- Parameters:
version
- The name of the .NET version containing the release.release
- The name of the .NET release containing the SDK.sdk
- The name of the .NET SDK containing the installation package.value
- The installation package URL to validate.- Returns:
- The validation result.
-
doCheckVersion
Performs validation on a .NET version name.- Parameters:
value
- The .NET version name to validate.- Returns:
- The validation result.
-
doFillUrlItems
Fills a listbox with the installation package URLs for a .NET SDK.- Parameters:
sdk
- The name of the .NET SDK from which to obtain installation package URLs.- Returns:
- A suitably filled listbox model.
-
doFillReleaseItems
@NonNull @POST public ListBoxModel doFillReleaseItems(@CheckForNull @QueryParameter String version, @QueryParameter boolean includePreview) Fills a listbox with the names of .NET releases.- Parameters:
version
- The name of the .NET version containing the releases.includePreview
- Indicates whether preview releases should be included.- Returns:
- A suitably filled listbox model.
-
doFillSdkItems
@NonNull @POST public ListBoxModel doFillSdkItems(@CheckForNull @QueryParameter String version, @CheckForNull @QueryParameter String release) Fills a listbox with the names of .NET SDKs.- Parameters:
version
- The name of the .NET version containing the release.release
- The name of the .NET release containing the SDKs.- Returns:
- A suitably filled listbox model.
-
doFillVersionItems
Fills a listbox with the names of the available .NET versions.- Returns:
- A suitably filled listbox model.
-
getDisplayName
Returns the display name for a .NET SDK installer.- Overrides:
getDisplayName
in classDescriptor<ToolInstaller>
- Returns:
- "Install from microsoft.com" or a localized equivalent.
-
isApplicable
Determines whether this installer is applicable for the specified type of tool.- Overrides:
isApplicable
in classToolInstallerDescriptor<DotNetSDKInstaller>
- Parameters:
toolType
- The type of tool to install.- Returns:
true
iftoolType
isDotNetSDK
;false
otherwise.
-