hudson.scm.listtagsparameter
Class ListSubversionTagsParameterDefinition
java.lang.Object
hudson.model.ParameterDefinition
hudson.scm.listtagsparameter.ListSubversionTagsParameterDefinition
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Describable<hudson.model.ParameterDefinition>, Serializable, Comparable<ListSubversionTagsParameterDefinition>
public class ListSubversionTagsParameterDefinition
- extends hudson.model.ParameterDefinition
- implements Comparable<ListSubversionTagsParameterDefinition>
Defines a new 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.
- Author:
- Romain Seguy (http://openromain.blogspot.com)
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from class hudson.model.ParameterDefinition |
hudson.model.ParameterDefinition.ParameterDescriptor |
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Fields inherited from class hudson.model.ParameterDefinition |
LIST |
| Methods inherited from class hudson.model.ParameterDefinition |
all, createValue, equals, getDefaultParameterValue, getDescription, getName, getType, hashCode |
ListSubversionTagsParameterDefinition
@DataBoundConstructor
public ListSubversionTagsParameterDefinition(String name,
String tagsDir,
String uuid)
createValue
public hudson.model.ParameterValue createValue(org.kohsuke.stapler.StaplerRequest req)
- Specified by:
createValue in class hudson.model.ParameterDefinition
createValue
public hudson.model.ParameterValue createValue(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
- Specified by:
createValue in class hudson.model.ParameterDefinition
getDescriptor
public ListSubversionTagsParameterDefinition.DescriptorImpl getDescriptor()
- Specified by:
getDescriptor in interface hudson.model.Describable<hudson.model.ParameterDefinition>- Overrides:
getDescriptor in class hudson.model.ParameterDefinition
getTags
public List<String> getTags()
- Returns a list of Subversion dirs to be displayed in
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 >.
getTagsDir
public String getTagsDir()
removeParentDir
protected void removeParentDir(List<String> dirs)
- Removes the parent directory (that is, the tags directory) from a list of
directories.
compareTo
public int compareTo(ListSubversionTagsParameterDefinition pd)
- Specified by:
compareTo in interface Comparable<ListSubversionTagsParameterDefinition>
Copyright © 2004-2012 Hudson. All Rights Reserved.