Class GitParameterDefinition
- java.lang.Object
-
- hudson.model.ParameterDefinition
-
- net.uaznia.lukanus.hudson.plugins.gitparameter.GitParameterDefinition
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<ParameterDefinition>
,Serializable
,Comparable<GitParameterDefinition>
public class GitParameterDefinition extends ParameterDefinition implements Comparable<GitParameterDefinition>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GitParameterDefinition.DescriptorImpl
-
Nested classes/interfaces inherited from class hudson.model.ParameterDefinition
ParameterDefinition.ParameterDescriptor
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class hudson.model.ParameterDefinition
LIST
-
-
Constructor Summary
Constructors Constructor Description GitParameterDefinition(String name, String type, String defaultValue, String description, String branch, String branchFilter, String tagFilter, net.uaznia.lukanus.hudson.plugins.gitparameter.SortMode sortMode, SelectedValue selectedValue, String useRepository, Boolean quickFilterEnabled)
-
Method Summary
-
Methods inherited from class hudson.model.ParameterDefinition
all, copyWithDefaultValue, equals, getDescription, getFormattedDescription, getName, getType, hashCode, isValid, setDescription
-
-
-
-
Constructor Detail
-
GitParameterDefinition
@DataBoundConstructor public GitParameterDefinition(String name, String type, String defaultValue, String description, String branch, String branchFilter, String tagFilter, net.uaznia.lukanus.hudson.plugins.gitparameter.SortMode sortMode, SelectedValue selectedValue, String useRepository, Boolean quickFilterEnabled)
-
-
Method Detail
-
createValue
public ParameterValue createValue(org.kohsuke.stapler.StaplerRequest request)
- Specified by:
createValue
in classParameterDefinition
-
createValue
public ParameterValue createValue(org.kohsuke.stapler.StaplerRequest request, net.sf.json.JSONObject jO)
- Specified by:
createValue
in classParameterDefinition
-
createValue
public ParameterValue createValue(CLICommand command, String value) throws IOException, InterruptedException
- Overrides:
createValue
in classParameterDefinition
- Throws:
IOException
InterruptedException
-
getDefaultParameterValue
public ParameterValue getDefaultParameterValue()
- Overrides:
getDefaultParameterValue
in classParameterDefinition
-
getAllValueItems
@Exported public ItemsErrorModel getAllValueItems()
-
getParameterType
public String getParameterType()
-
setParameterType
public void setParameterType(String type)
-
getBranch
public String getBranch()
-
setBranch
public void setBranch(String nameOfBranch)
-
getSortMode
public net.uaznia.lukanus.hudson.plugins.gitparameter.SortMode getSortMode()
-
setSortMode
public void setSortMode(net.uaznia.lukanus.hudson.plugins.gitparameter.SortMode sortMode)
-
getTagFilter
public String getTagFilter()
-
setTagFilter
public void setTagFilter(String tagFilter)
-
getDefaultValue
public String getDefaultValue()
-
setDefaultValue
public void setDefaultValue(String defaultValue)
-
getBranchFilter
public String getBranchFilter()
-
setBranchFilter
public void setBranchFilter(String branchFilter)
-
getListSize
public String getListSize()
-
setListSize
@DataBoundSetter public void setListSize(String listSize)
-
getRequiredParameter
public Boolean getRequiredParameter()
-
setRequiredParameter
@DataBoundSetter public void setRequiredParameter(Boolean requiredParameter)
-
getSelectedValue
public SelectedValue getSelectedValue()
-
getQuickFilterEnabled
public Boolean getQuickFilterEnabled()
-
compareTo
public int compareTo(GitParameterDefinition pd)
- Specified by:
compareTo
in interfaceComparable<GitParameterDefinition>
-
generateContents
public ItemsErrorModel generateContents(JobWrapper jobWrapper, List<hudson.plugins.git.GitSCM> scms)
-
getDivUUID
public String getDivUUID()
-
getDescriptor
public GitParameterDefinition.DescriptorImpl getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<ParameterDefinition>
- Overrides:
getDescriptor
in classParameterDefinition
-
getUseRepository
public String getUseRepository()
-
setUseRepository
public void setUseRepository(String useRepository)
-
getCustomJobName
public String getCustomJobName()
-
-