public class ListSubversionTagsParameterDefinition extends hudson.model.ParameterDefinition implements Comparable<ListSubversionTagsParameterDefinition>
ParameterDefinition to be displayed at the top of the configuration page of AbstractProjects.
When used, this parameter will request the user to select a Subversion tag at build-time by displaying a
drop-down list. See ListSubversionTagsParameterValue.
| Modifier and Type | Class and Description |
|---|---|
static class |
ListSubversionTagsParameterDefinition.DescriptorImpl |
| Constructor and Description |
|---|
ListSubversionTagsParameterDefinition(String name,
String tagsDir,
String uuid) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ListSubversionTagsParameterDefinition pd) |
hudson.model.ParameterValue |
createValue(org.kohsuke.stapler.StaplerRequest req) |
hudson.model.ParameterValue |
createValue(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData) |
ListSubversionTagsParameterDefinition.DescriptorImpl |
getDescriptor() |
List<String> |
getTags()
Returns a list of Subversion dirs to be displayed in
ListSubversionTagsParameterDefinition/index.jelly. |
String |
getTagsDir() |
protected void |
removeParentDir(List<String> dirs)
Removes the parent directory (that is, the tags directory) from a list of
directories.
|
public hudson.model.ParameterValue createValue(org.kohsuke.stapler.StaplerRequest req)
createValue in class hudson.model.ParameterDefinitionpublic hudson.model.ParameterValue createValue(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
createValue in class hudson.model.ParameterDefinitionpublic ListSubversionTagsParameterDefinition.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.model.ParameterDefinition>getDescriptor in class hudson.model.ParameterDefinitionpublic List<String> getTags()
ListSubversionTagsParameterDefinition/index.jelly.
This method plainly reuses settings that must have been preivously defined when configuring the Subversion SCM.
This method never returns null. In case an error happens, the
returned list contains an error message surrounded by < and >.
public String getTagsDir()
protected void removeParentDir(List<String> dirs)
public int compareTo(ListSubversionTagsParameterDefinition pd)
compareTo in interface Comparable<ListSubversionTagsParameterDefinition>Copyright © 2004-2015 Hudson. All Rights Reserved.