public class TextareaChoiceListProvider extends AddEditedChoiceListProvider
| Modifier and Type | Class and Description |
|---|---|
static class |
TextareaChoiceListProvider.DescriptorImpl
The internal class to work with views.
|
AddEditedChoiceListProvider.WhenToAdd| Constructor and Description |
|---|
TextareaChoiceListProvider(String choiceListText,
String defaultChoice,
boolean addEditedValue,
AddEditedChoiceListProvider.WhenToAdd whenToAdd)
Constructor instantiating with parameters in the configuration page.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addEditedValue(hudson.model.AbstractProject<?,?> project,
ExtensibleChoiceParameterDefinition def,
String value)
Called to add a edited value to the choice list.
|
List<String> |
getChoiceList()
Returns the list of choices the user specified in the job configuration page.
|
String |
getChoiceListText()
The list of choices, joined into a string.
|
String |
getDefaultChoice()
Returns the default choice.
|
boolean |
requiresBuildPermission()
Checks if access
ChoiceListProvider.getChoiceList() from REST API needs the Item.BUILD permission. |
protected void |
setChoiceList(List<String> choiceList) |
getWhenToAdd, isAddEditedValue, onBuildCompletedWithValue, onBuildTriggeredWithValueall@DataBoundConstructor public TextareaChoiceListProvider(String choiceListText, String defaultChoice, boolean addEditedValue, AddEditedChoiceListProvider.WhenToAdd whenToAdd)
choiceListText - the text where choices are written in each line.defaultChoice - addEditedValue - whenToAdd - public List<String> getChoiceList()
getChoiceList in class ChoiceListProviderChoiceListProvider.getChoiceList()protected void setChoiceList(List<String> choiceList)
choiceList - the choiceList to setpublic String getChoiceListText()
public String getDefaultChoice()
getDefaultChoice in class ChoiceListProviderChoiceListProvider.getDefaultChoice()public boolean requiresBuildPermission()
ChoiceListProviderChoiceListProvider.getChoiceList() from REST API needs the Item.BUILD permission.
If true this will currently return the choices only for Job based API calls.requiresBuildPermission in class ChoiceListProviderprotected void addEditedValue(hudson.model.AbstractProject<?,?> project,
ExtensibleChoiceParameterDefinition def,
String value)
AddEditedChoiceListProvideraddEditedValue in class AddEditedChoiceListProviderCopyright © 2016–2021. All rights reserved.