Class NexusChoiceListProvider.NexusDescriptorImpl

java.lang.Object
hudson.model.Descriptor<jp.ikedam.jenkins.plugins.extensible_choice_parameter.ChoiceListProvider>
org.jenkinsci.plugins.maven_artifact_choicelistprovider.AbstractMavenArtifactDescriptorImpl
org.jenkinsci.plugins.maven_artifact_choicelistprovider.nexus.NexusChoiceListProvider.NexusDescriptorImpl
All Implemented Interfaces:
Saveable, Loadable, OnMaster
Enclosing class:
NexusChoiceListProvider

@Extension public static class NexusChoiceListProvider.NexusDescriptorImpl extends AbstractMavenArtifactDescriptorImpl
  • Constructor Details

    • NexusDescriptorImpl

      public NexusDescriptorImpl()
  • Method Details

    • getDisplayName

      public String getDisplayName()
      the display name shown in the dropdown to select a choice provider.
      Overrides:
      getDisplayName in class Descriptor<jp.ikedam.jenkins.plugins.extensible_choice_parameter.ChoiceListProvider>
      Returns:
      display name
      See Also:
    • doFillCredentialsIdItems

      public ListBoxModel doFillCredentialsIdItems(@AncestorInPath Item pItem, @QueryParameter String credentialsId)
    • doTest

      public FormValidation doTest(@AncestorInPath Item pItem, @QueryParameter String url, @QueryParameter String credentialsId, @QueryParameter String repositoryId, @QueryParameter String groupId, @QueryParameter String artifactId, @QueryParameter String packaging, @QueryParameter String classifier, @QueryParameter boolean inverseFilter, @QueryParameter String filterExpression, @QueryParameter boolean reverseOrder)
    • wrapTestConnection

      protected Map<String,String> wrapTestConnection(IVersionReader pService, String pRepositoryId, String pGroupId, String pArtifactId, String pPackaging, String pClassifier, boolean pInverseFilter, String pFilterExpression, boolean pReverseOrder)
      Description copied from class: AbstractMavenArtifactDescriptorImpl
      Own implementations of this DescriptorImpl might do this normally as a static inner class. The surrounding class then has to extend AbstractMavenArtifactChoiceListProvider and thus this wrapper method can forward to the implementation of readURL.
      Specified by:
      wrapTestConnection in class AbstractMavenArtifactDescriptorImpl
      Parameters:
      pService - TBD
      pRepositoryId - TBD
      pGroupId - TBD
      pArtifactId - TBD
      pPackaging - TBD
      pClassifier - TBD
      pInverseFilter - TBD
      pFilterExpression - TBD
      pReverseOrder - TBD
      Returns:
      the list of found items.
    • doCheckUrl

      public FormValidation doCheckUrl(@QueryParameter String url)
    • configure

      public boolean configure(org.kohsuke.stapler.StaplerRequest2 staplerRequest, net.sf.json.JSONObject json) throws Descriptor.FormException
      Saves the Global-Option Settings
      Overrides:
      configure in class Descriptor<jp.ikedam.jenkins.plugins.extensible_choice_parameter.ChoiceListProvider>
      Throws:
      Descriptor.FormException
    • getUseRestfulAPI

      public boolean getUseRestfulAPI()
      Returns the value for checkbox in the "Manage Jenkins" section.
      Returns:
      TRUE if the RESTful API should be used.