public abstract class AddEditedChoiceListProvider extends ChoiceListProvider
| Modifier and Type | Class and Description |
|---|---|
static class |
AddEditedChoiceListProvider.WhenToAdd
Used to Specify when to add a edited value
|
| Constructor and Description |
|---|
AddEditedChoiceListProvider(boolean addEditedValue,
AddEditedChoiceListProvider.WhenToAdd whenToAdd)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
addEditedValue(hudson.model.AbstractProject<?,?> project,
ExtensibleChoiceParameterDefinition def,
String value)
Called to add a edited value to the choice list.
|
AddEditedChoiceListProvider.WhenToAdd |
getWhenToAdd()
Returns when to add a edited value.
|
boolean |
isAddEditedValue()
Returns whether to add edited value.
|
void |
onBuildCompletedWithValue(hudson.model.AbstractBuild<?,?> build,
ExtensibleChoiceParameterDefinition def,
String value)
Called when a build is completed
Call addEditedValue() if needed
|
void |
onBuildTriggeredWithValue(hudson.model.AbstractProject<?,?> job,
ExtensibleChoiceParameterDefinition def,
String value)
Called when a build is triggered
Call addEditedValue() if needed
|
all, getChoiceList, getDefaultChoicepublic AddEditedChoiceListProvider(boolean addEditedValue,
AddEditedChoiceListProvider.WhenToAdd whenToAdd)
whenToAdd - when to add a edited value.public AddEditedChoiceListProvider.WhenToAdd getWhenToAdd()
public boolean isAddEditedValue()
public void onBuildCompletedWithValue(hudson.model.AbstractBuild<?,?> build,
ExtensibleChoiceParameterDefinition def,
String value)
onBuildCompletedWithValue in class ChoiceListProviderbuild - the build with which this choice provider is used.def - the parameter definition the value specifiedvalue - the value specified.ChoiceListProvider.onBuildCompletedWithValue(hudson.model.AbstractBuild, jp.ikedam.jenkins.plugins.extensible_choice_parameter.ExtensibleChoiceParameterDefinition, java.lang.String)public void onBuildTriggeredWithValue(hudson.model.AbstractProject<?,?> job,
ExtensibleChoiceParameterDefinition def,
String value)
onBuildTriggeredWithValue in class ChoiceListProviderjob - the job with which this choice provider is used.def - the parameter definition the value specifiedvalue - the value specified.ChoiceListProvider.onBuildTriggeredWithValue(hudson.model.AbstractProject, jp.ikedam.jenkins.plugins.extensible_choice_parameter.ExtensibleChoiceParameterDefinition, java.lang.String)protected abstract void addEditedValue(hudson.model.AbstractProject<?,?> project,
ExtensibleChoiceParameterDefinition def,
String value)
project - def - value - Copyright © 2016–2020. All rights reserved.