Class DotNetSDKInstaller.DescriptorImpl

All Implemented Interfaces:
Saveable, OnMaster
Enclosing class:
DotNetSDKInstaller

@Extension @Symbol("installDotNetSDK") public static final class DotNetSDKInstaller.DescriptorImpl extends ToolInstallerDescriptor<DotNetSDKInstaller>
A descriptor for a .NET SDK installer.
  • 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 class ToolInstallerDescriptor<DotNetSDKInstaller>
      Parameters:
      value - The (partial) label expression to auto-complete.
      Returns:
      The computed auto-completion candidates.
    • doCheckLabel

      @NonNull @POST public FormValidation doCheckLabel(@CheckForNull @QueryParameter String value)
      Performs validation on a label expression.
      Overrides:
      doCheckLabel in class ToolInstallerDescriptor<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

      @NonNull @POST public FormValidation doCheckVersion(@CheckForNull @QueryParameter String value)
      Performs validation on a .NET version name.
      Parameters:
      value - The .NET version name to validate.
      Returns:
      The validation result.
    • doFillUrlItems

      @NonNull @POST public ListBoxModel doFillUrlItems(@CheckForNull @QueryParameter String sdk)
      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

      @NonNull @POST public ListBoxModel doFillVersionItems()
      Fills a listbox with the names of the available .NET versions.
      Returns:
      A suitably filled listbox model.
    • getDisplayName

      @NonNull public String getDisplayName()
      Returns the display name for a .NET SDK installer.
      Overrides:
      getDisplayName in class Descriptor<ToolInstaller>
      Returns:
      "Install from microsoft.com" or a localized equivalent.
    • isApplicable

      public boolean isApplicable(@CheckForNull Class<? extends ToolInstallation> toolType)
      Determines whether this installer is applicable for the specified type of tool.
      Overrides:
      isApplicable in class ToolInstallerDescriptor<DotNetSDKInstaller>
      Parameters:
      toolType - The type of tool to install.
      Returns:
      true if toolType is DotNetSDK; false otherwise.