Class MavenMetadataChoiceListProvider
java.lang.Object
hudson.model.AbstractDescribableImpl<jp.ikedam.jenkins.plugins.extensible_choice_parameter.ChoiceListProvider>
jp.ikedam.jenkins.plugins.extensible_choice_parameter.ChoiceListProvider
org.jenkinsci.plugins.maven_artifact_choicelistprovider.AbstractMavenArtifactChoiceListProvider
org.jenkinsci.plugins.maven_artifact_choicelistprovider.maven.MavenMetadataChoiceListProvider
- All Implemented Interfaces:
ExtensionPoint,Describable<jp.ikedam.jenkins.plugins.extensible_choice_parameter.ChoiceListProvider>,Serializable
- Author:
- Attila Simon
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNested classes/interfaces inherited from class org.jenkinsci.plugins.maven_artifact_choicelistprovider.AbstractMavenArtifactChoiceListProvider
AbstractMavenArtifactChoiceListProvider.DescriptorImplNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class org.jenkinsci.plugins.maven_artifact_choicelistprovider.AbstractMavenArtifactChoiceListProvider
DEFAULT_REGEX_MATCH_ALL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateServiceInstance(Item item) Different implementation will return differentIVersionReaderinstances.booleangetUrl()protected Collection<String> selectChoiceList(Map<String, String> pChoices) IfgetListVersionNumbersOnly()is set, only the bare version numbers are displayed instead of the full artifact URLs.voidsetCredentialsId(String credentialsId) voidsetListVersionNumbersOnly(boolean listVersionNumbersOnly) voidMethods inherited from class org.jenkinsci.plugins.maven_artifact_choicelistprovider.AbstractMavenArtifactChoiceListProvider
filterArtifacts, getArtifactId, getChoiceList, getClassifier, getCredentials, getFilterExpression, getGroupId, getInverseFilter, getPackaging, getRepositoryId, getReverseOrder, isErrorResult, onBuildCompletedWithValue, onBuildTriggeredWithValue, readURL, setArtifactId, setClassifier, setFilterExpression, setGroupId, setInverseFilter, setPackaging, setRepositoryId, setReverseOrderMethods inherited from class jp.ikedam.jenkins.plugins.extensible_choice_parameter.ChoiceListProvider
all, getDefaultChoice, requiresBuildPermissionMethods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
MavenMetadataChoiceListProvider
-
-
Method Details
-
createServiceInstance
Description copied from class:AbstractMavenArtifactChoiceListProviderDifferent implementation will return differentIVersionReaderinstances.- Specified by:
createServiceInstancein classAbstractMavenArtifactChoiceListProvider- Parameters:
item- for security checks.- Returns:
- the service implementation.
-
selectChoiceList
IfgetListVersionNumbersOnly()is set, only the bare version numbers are displayed instead of the full artifact URLs.- Overrides:
selectChoiceListin classAbstractMavenArtifactChoiceListProvider- Parameters:
pChoices- the map returned byAbstractMavenArtifactChoiceListProvider.readURL(org.jenkinsci.plugins.maven_artifact_choicelistprovider.IVersionReader, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean, java.lang.String, boolean): version number to full artifact URL.- Returns:
- the entries to display, never null
-
setListVersionNumbersOnly
@DataBoundSetter public void setListVersionNumbersOnly(boolean listVersionNumbersOnly) -
getListVersionNumbersOnly
public boolean getListVersionNumbersOnly() -
setCredentialsId
-
getCredentialsId
-
setUrl
-
getUrl
-