hudson.plugins.jira
Class JiraProjectProperty

java.lang.Object
  extended by hudson.model.JobProperty<hudson.model.AbstractProject<?,?>>
      extended by hudson.plugins.jira.JiraProjectProperty
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.model.JobProperty<?>>, hudson.tasks.BuildStep

public class JiraProjectProperty
extends hudson.model.JobProperty<hudson.model.AbstractProject<?,?>>

Associates AbstractProject with JiraSite.

Author:
Kohsuke Kawaguchi

Nested Class Summary
static class JiraProjectProperty.DescriptorImpl
           
 
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
static JiraProjectProperty.DescriptorImpl DESCRIPTOR
           
 String siteName
          Used to find JiraSite.
 
Fields inherited from class hudson.model.JobProperty
owner
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
JiraProjectProperty(String siteName)
           
 
Method Summary
 JiraProjectProperty.DescriptorImpl getDescriptor()
           
 JiraSite getSite()
          Gets the JiraSite that this project belongs to.
 
Methods inherited from class hudson.model.JobProperty
getJobAction, getJobActions, getJobOverrides, getProjectAction, getProjectActions, getRequiredMonitorService, getSubTasks, perform, prebuild, setOwner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

siteName

public final String siteName
Used to find JiraSite. Matches JiraSite.getName(). Always non-null (but beware that this value might become stale if the system config is changed.)


DESCRIPTOR

@Extension
public static final JiraProjectProperty.DescriptorImpl DESCRIPTOR
Constructor Detail

JiraProjectProperty

@DataBoundConstructor
public JiraProjectProperty(String siteName)
Method Detail

getSite

public JiraSite getSite()
Gets the JiraSite that this project belongs to.

Returns:
null if the configuration becomes out of sync.

getDescriptor

public JiraProjectProperty.DescriptorImpl getDescriptor()
Specified by:
getDescriptor in interface hudson.model.Describable<hudson.model.JobProperty<?>>
Overrides:
getDescriptor in class hudson.model.JobProperty<hudson.model.AbstractProject<?,?>>


Copyright © 2004-2012 Hudson. All Rights Reserved.