Class RemoteSource.DescriptorImpl

java.lang.Object
hudson.model.Descriptor<JsonSource>
com.github.cyanbaz.jenkins.plugins.jsonparameter.RemoteSource.DescriptorImpl
All Implemented Interfaces:
Saveable, Loadable, OnMaster
Enclosing class:
RemoteSource

@Extension public static class RemoteSource.DescriptorImpl extends Descriptor<JsonSource>
Descriptor for the RemoteSource, used to display this option in the Jenkins UI dropdown.
  • Constructor Details

    • DescriptorImpl

      public DescriptorImpl()
  • Method Details

    • getDisplayName

      @NonNull public String getDisplayName()
      Returns the display name shown in the dropdown for this source type.
      Overrides:
      getDisplayName in class Descriptor<JsonSource>
      Returns:
      a human-readable label for the UI
    • doFillCredentialsIdItems

      @POST public ListBoxModel doFillCredentialsIdItems(@AncestorInPath Item context)
      Populates the credentials dropdown in the UI with available username/password credentials.

      Includes:

      • Global credentials
      • Folder credentials
      • Only credentials matching the URI scope
      Parameters:
      context - the current item context (job, folder, etc.)
      Returns:
      a ListBoxModel of available credentials