Package io.jenkins.plugins.restlistparam
Class RestListParameterDefinition
java.lang.Object
hudson.model.ParameterDefinition
hudson.model.SimpleParameterDefinition
io.jenkins.plugins.restlistparam.AbstractRestListParameterDefinition
io.jenkins.plugins.restlistparam.RestListParameterDefinition
- All Implemented Interfaces:
ExtensionPoint,Describable<ParameterDefinition>,Serializable
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class hudson.model.ParameterDefinition
ParameterDefinition.ParameterDescriptorNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class io.jenkins.plugins.restlistparam.AbstractRestListParameterDefinition
configFields inherited from class hudson.model.ParameterDefinition
LIST -
Constructor Summary
ConstructorsConstructorDescriptionRestListParameterDefinition(String name, String description, String restEndpoint, String credentialId, MimeType mimeType, String valueExpression, String displayExpression) RestListParameterDefinition(String name, String description, String restEndpoint, String credentialId, MimeType mimeType, String valueExpression, String displayExpression, ValueOrder valueOrder, String filter, Integer cacheTime, String defaultValue, boolean allowEmptyValue) -
Method Summary
Modifier and TypeMethodDescriptioncopyWithDefaultValue(ParameterValue defaultValue) createValue(String value) createValue(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject jo) booleaninthashCode()booleanisDefaultSelected(ValueItem item) In dropdown mode, the entry displayed as the default value is preselected.booleanisValid(ParameterValue value) resolveFreeTextDefault(List<ValueItem> values) The value the dropdown preselects with validation disabled.Methods inherited from class io.jenkins.plugins.restlistparam.AbstractRestListParameterDefinition
createLoader, createLoader, entryValuesFor, getCacheTime, getCredentialId, getCustomHeaders, getCustomValueLabel, getDefaultValue, getDisplayExpression, getErrorMsg, getFilter, getMimeType, getPagination, getRestEndpoint, getValueExpression, getValueOrder, getValues, isAllowEmptyValue, isEnableValidation, setAllowEmptyValue, setCacheTime, setCustomHeaders, setDefaultValue, setDisplayExpression, setEnableValidation, setFilter, setPagination, setValueOrderMethods inherited from class hudson.model.SimpleParameterDefinition
createValue, createValueMethods inherited from class hudson.model.ParameterDefinition
all, createValue, createValue, getDefaultParameterValue, getDescription, getDescriptor, getFormattedDescription, getName, getType, setDescription
-
Constructor Details
-
RestListParameterDefinition
-
RestListParameterDefinition
-
-
Method Details
-
resolveFreeTextDefault
The value the dropdown preselects with validation disabled. The default value refers to a display value, as in dropdown mode, so it resolves to the value of the first entry displayed as the default; a default that matches no entry stays verbatim and becomes a custom value.- Parameters:
values- The entries already fetched for this form- Returns:
- The matching entry's value, otherwise the default value verbatim
-
isDefaultSelected
In dropdown mode, the entry displayed as the default value is preselected.- Specified by:
isDefaultSelectedin classAbstractRestListParameterDefinition- Parameters:
item- A fetched entry- Returns:
- Whether the build form preselects the entry because of the default value
-
copyWithDefaultValue
- Overrides:
copyWithDefaultValuein classParameterDefinition
-
createValue
- Specified by:
createValuein classSimpleParameterDefinition
-
createValue
public ParameterValue createValue(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject jo) - Overrides:
createValuein classParameterDefinition
-
isValid
- Overrides:
isValidin classParameterDefinition
-
hashCode
public int hashCode()- Overrides:
hashCodein classParameterDefinition
-
equals
- Overrides:
equalsin classParameterDefinition
-