Class AbstractMavenArtifactDescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<jp.ikedam.jenkins.plugins.extensible_choice_parameter.ChoiceListProvider>
-
- org.jenkinsci.plugins.maven_artifact_choicelistprovider.AbstractMavenArtifactDescriptorImpl
-
- Direct Known Subclasses:
ArtifactoryChoiceListProvider.ArtifactoryDescriptorImpl
,MavenCentralChoiceListProvider.MavenDescriptorImpl
,Nexus3ChoiceListProvider.Nexus3DescriptorImpl
,NexusChoiceListProvider.NexusDescriptorImpl
public abstract class AbstractMavenArtifactDescriptorImpl extends Descriptor<jp.ikedam.jenkins.plugins.extensible_choice_parameter.ChoiceListProvider>
Base Class for a Descriptor.- Author:
- stephan.watermeyer, Diebold Nixdorf
-
-
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 AbstractMavenArtifactDescriptorImpl()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description FormValidation
doCheckArtifactId(String artifactId, String groupId)
FormValidation
doCheckClassifier(String classifier)
FormValidation
doCheckFilterExpression(String filterExpression)
FormValidation
doCheckGroupId(String groupId, String artifactId)
FormValidation
doCheckPackaging(String packaging)
FormValidation
performTest(IVersionReader pService, String repositoryId, String groupId, String artifactId, String packaging, String classifier, boolean inverseFilter, String filterExpression, boolean reverseOrder)
protected abstract Map<String,String>
wrapTestConnection(IVersionReader service, String repositoryId, String groupId, String artifactId, String packaging, String classifier, boolean inverseFilter, String filterExpression, boolean reverseOrder)
Own implementations of this DescriptorImpl might do this normally as a static inner class.-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, 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
-
-
-
-
Method Detail
-
doCheckGroupId
public FormValidation doCheckGroupId(@QueryParameter String groupId, @QueryParameter String artifactId)
-
doCheckArtifactId
public FormValidation doCheckArtifactId(@QueryParameter String artifactId, @QueryParameter String groupId)
-
doCheckPackaging
public FormValidation doCheckPackaging(@QueryParameter String packaging)
-
doCheckClassifier
public FormValidation doCheckClassifier(@QueryParameter String classifier)
-
doCheckFilterExpression
public FormValidation doCheckFilterExpression(@QueryParameter String filterExpression)
-
performTest
public FormValidation performTest(IVersionReader pService, @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 abstract Map<String,String> wrapTestConnection(IVersionReader service, String repositoryId, String groupId, String artifactId, String packaging, String classifier, boolean inverseFilter, String filterExpression, boolean reverseOrder)
Own implementations of this DescriptorImpl might do this normally as a static inner class. The surrounding class then has to extendAbstractMavenArtifactChoiceListProvider
and thus this wrapper method can forward to the implementation of readURL.- Parameters:
service
- TBDrepositoryId
- TBDgroupId
- TBDartifactId
- TBDpackaging
- TBDclassifier
- TBDinverseFilter
- TBDfilterExpression
- TBDreverseOrder
- TBD- Returns:
- the list of found items.
-
-