com.sonyericsson.hudson.plugins.metadata.model
Class MetadataJobProperty.MetaDataJobPropertyDescriptor

java.lang.Object
  extended by hudson.model.Descriptor<hudson.model.JobProperty<?>>
      extended by hudson.model.JobPropertyDescriptor
          extended by com.sonyericsson.hudson.plugins.metadata.model.MetadataJobProperty.MetaDataJobPropertyDescriptor
All Implemented Interfaces:
hudson.model.Saveable
Enclosing class:
MetadataJobProperty

@Extension
public static class MetadataJobProperty.MetaDataJobPropertyDescriptor
extends hudson.model.JobPropertyDescriptor

Descriptor for the MetadataJobProperty.


Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.model.Descriptor
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType, hudson.model.Descriptor.Self
 
Field Summary
 
Fields inherited from class hudson.model.Descriptor
clazz
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
MetadataJobProperty.MetaDataJobPropertyDescriptor()
           
 
Method Summary
 String getDisplayName()
           
 List<AbstractMetadataValue.AbstractMetaDataValueDescriptor> getValueDescriptors(org.kohsuke.stapler.StaplerRequest request)
          All registered meta data descriptors that applies to jobs.
static MetadataJobProperty instanceFor(hudson.model.AbstractProject project)
          Gives the MetadataJobProperty for the given Job.
 hudson.model.JobProperty<?> newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
           
 
Methods inherited from class hudson.model.JobPropertyDescriptor
all, getPropertyDescriptors, isApplicable
 
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetadataJobProperty.MetaDataJobPropertyDescriptor

public MetadataJobProperty.MetaDataJobPropertyDescriptor()
Method Detail

getDisplayName

public String getDisplayName()
Specified by:
getDisplayName in class hudson.model.Descriptor<hudson.model.JobProperty<?>>

newInstance

public hudson.model.JobProperty<?> newInstance(org.kohsuke.stapler.StaplerRequest req,
                                               net.sf.json.JSONObject formData)
                                        throws hudson.model.Descriptor.FormException
Overrides:
newInstance in class hudson.model.JobPropertyDescriptor
Throws:
hudson.model.Descriptor.FormException

getValueDescriptors

public List<AbstractMetadataValue.AbstractMetaDataValueDescriptor> getValueDescriptors(org.kohsuke.stapler.StaplerRequest request)
All registered meta data descriptors that applies to jobs. To be used by a hetero-list.

Parameters:
request - the current http request.
Returns:
a list.

instanceFor

public static MetadataJobProperty instanceFor(hudson.model.AbstractProject project)
                                       throws IOException
Gives the MetadataJobProperty for the given Job. If no metadata is available on the job the property will be created and added to it.

Parameters:
project - the job.
Returns:
the property created or found.
Throws:
IOException - if an error occurs when adding the property to the job.


Copyright © 2004-2013. All Rights Reserved.