| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.model.JobProperty<hudson.model.AbstractProject<?,?>>
com.sonyericsson.hudson.plugins.metadata.model.MetadataJobProperty
@ExportedBean public class MetadataJobProperty
Gives support for meta data on Projects and their builds.
| Nested Class Summary | |
|---|---|
static class | 
MetadataJobProperty.MetaDataJobPropertyDescriptor
Descriptor for the MetadataJobProperty. | 
| Nested classes/interfaces inherited from interface hudson.tasks.BuildStep | 
|---|
hudson.tasks.BuildStep.PublisherList | 
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint | 
|---|
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson | 
| Field Summary | 
|---|
| Fields inherited from class hudson.model.JobProperty | 
|---|
owner | 
| Fields inherited from interface hudson.tasks.BuildStep | 
|---|
BUILDERS, PUBLISHERS | 
| Constructor Summary | |
|---|---|
MetadataJobProperty()
Default constructor.  | 
|
MetadataJobProperty(List<MetadataValue> values)
Standard DataBound Constructor.  | 
|
| Method Summary | ||
|---|---|---|
 Collection<MetadataValue> | 
addChild(MetadataValue value)
Adds the child to the list of children.  | 
|
 Collection<MetadataValue> | 
addChildren(Collection<MetadataValue> childValues)
Adds the children to this parent's list of children.  | 
|
 hudson.security.ACL | 
getACL()
Returns the ACL for the owner of the container.. | 
|
 MetadataValue | 
getChild(String name)
Returns the child with the given name, or null if there is none.  | 
|
 Collection<String> | 
getChildNames()
The child names of this parent.  | 
|
 Collection<MetadataValue> | 
getChildren()
The children of this parent.  | 
|
 | 
getDefinitionsAsFlatList(org.kohsuke.stapler.StaplerRequest request)
Returns the registered MetadataDefinitions as a flattened out Collection, with only leaves.  | 
|
 String | 
getFullName()
The full name of the element.  | 
|
 String | 
getFullName(String separator)
The full name of the element, using the chosen separator string.  | 
|
 String | 
getFullNameFrom(MetadataParent base)
Gives the full name from the given parent.  | 
|
 Collection<? extends hudson.model.Action> | 
getJobActions(hudson.model.AbstractProject<?,?> job)
 | 
|
 Collection<MetadataValue> | 
getNonDefinitionValues()
Getter for the Values not coming from definitions.  | 
|
 hudson.model.AbstractProject<?,?> | 
getOwner()
The current Project.  | 
|
 List<MetadataValue> | 
getUserValues()
All the non generated values.  | 
|
 Object | 
getValueForDefinition(MetadataDefinition definition)
Returns the user set value for a definition if one is set, if not, returns the default value for the definition.  | 
|
 List<MetadataValue> | 
getValues()
The meta data.  | 
|
 int | 
indexOf(String name)
The index of the child with the provided name.  | 
|
 MetadataValueDefinitionHelper | 
initiateHelper()
Initiates and returns a MetadataValueDefinitionHelper.  | 
|
 boolean | 
requiresReplacement()
If this parent type requires to be replaced or not when a replacement command is issued.  | 
|
 void | 
save()
Saves the container to disc, usually achieved by calling save on whatever Saveable this container is in. | 
|
 MetadataValue | 
setChild(int index,
         MetadataValue value)
Sets the child on index with the provided value, replacing any object currently on that index. | 
|
 void | 
setValues(List<MetadataValue> values)
Setter for the values.  | 
|
 net.sf.json.JSON | 
toJson()
Convert this object into a JSON object.  | 
|
| Methods inherited from class hudson.model.JobProperty | 
|---|
getDescriptor, getJobAction, getJobOverrides, getProjectAction, getProjectActions, getRequiredMonitorService, getSubTasks, perform, prebuild, reconfigure, setOwner | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
@DataBoundConstructor public MetadataJobProperty(List<MetadataValue> values)
values - the meta data.public MetadataJobProperty()
| Method Detail | 
|---|
public List<MetadataValue> getValues()
public void setValues(List<MetadataValue> values)
values - the values.public List<MetadataValue> getUserValues()
public hudson.model.AbstractProject<?,?> getOwner()
public Collection<? extends hudson.model.Action> getJobActions(hudson.model.AbstractProject<?,?> job)
getJobActions in class hudson.model.JobProperty<hudson.model.AbstractProject<?,?>>public MetadataValue getChild(String name)
MetadataParent
getChild in interface MetadataParent<MetadataValue>name - the name to search for.
public int indexOf(String name)
MetadataParent
indexOf in interface MetadataParent<MetadataValue>name - the name of the child to find.
public MetadataValue setChild(int index,
                              MetadataValue value)
MetadataParentindex with the provided value, replacing any object currently on that index.
setChild in interface MetadataParent<MetadataValue>index - the index to set.value - the child to set.
public Collection<MetadataValue> addChild(MetadataValue value)
MetadataParent
addChild in interface MetadataParent<MetadataValue>value - the child to add.
public Collection<MetadataValue> addChildren(Collection<MetadataValue> childValues)
MetadataParent
addChildren in interface MetadataParent<MetadataValue>childValues - the children to add.
@Exported public Collection<MetadataValue> getChildren()
MetadataParent
getChildren in interface MetadataParent<MetadataValue>public Collection<String> getChildNames()
MetadataParent
getChildNames in interface MetadataParent<MetadataValue>public <T extends MetadataDefinition> List<MetadataDefinition> getDefinitionsAsFlatList(org.kohsuke.stapler.StaplerRequest request)
T - the MetadataDefinition type.request - the current http request.
public Object getValueForDefinition(MetadataDefinition definition)
definition - the MetadataDefinition to find a value for.
public Collection<MetadataValue> getNonDefinitionValues()
public MetadataValueDefinitionHelper initiateHelper()
public String getFullName()
MetadataParent
getFullName in interface MetadataParent<MetadataValue>public String getFullName(String separator)
MetadataParent
getFullName in interface MetadataParent<MetadataValue>separator - the separator string.
public String getFullNameFrom(MetadataParent base)
MetadataParent
getFullNameFrom in interface MetadataParent<MetadataValue>base - the parent to base the tree structure from.
public net.sf.json.JSON toJson()
MetadataParent
toJson in interface MetadataParent<MetadataValue>public boolean requiresReplacement()
MetadataParent
requiresReplacement in interface MetadataParent<MetadataValue>MetadataValue.replacementOf(
 com.sonyericsson.hudson.plugins.metadata.model.values.MetadataValue)
public void save()
          throws IOException
MetadataContainerSaveable this container is in.
save in interface MetadataContainer<MetadataValue>IOException - if the persistence.public hudson.security.ACL getACL()
MetadataContainerACL for the owner of the container..
getACL in interface MetadataContainer<MetadataValue>
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||