com.unitedinternet.jenkins.plugins.scm2job
Class SCM2Job

java.lang.Object
  extended by com.unitedinternet.jenkins.plugins.scm2job.SCM2Job
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Action, hudson.model.ModelObject, hudson.model.RootAction

@ExportedBean
@Extension
public class SCM2Job
extends Object
implements hudson.model.RootAction

Entry point of SCM2Job plugin.

Author:
Stefan Brausch

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
SCM2Job()
           
 
Method Summary
 void doGetJobs(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Called when the 'Submit' button is pressed.
 String getDisplayName()
          
 String getIconFileName()
          
 String getPathMissing()
          Returns internationalized error message.
 ArrayList<hudson.model.Item> getResults()
          Returns the jobs found.
 String getUrlName()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SCM2Job

public SCM2Job()
Method Detail

getIconFileName

public final String getIconFileName()

Specified by:
getIconFileName in interface hudson.model.Action

getDisplayName

public final String getDisplayName()

Specified by:
getDisplayName in interface hudson.model.Action
Specified by:
getDisplayName in interface hudson.model.ModelObject

getUrlName

public final String getUrlName()

Specified by:
getUrlName in interface hudson.model.Action

getResults

public ArrayList<hudson.model.Item> getResults()
Returns the jobs found.

Returns:
list of jobs

doGetJobs

public final void doGetJobs(org.kohsuke.stapler.StaplerRequest req,
                            org.kohsuke.stapler.StaplerResponse rsp)
                     throws IOException
Called when the 'Submit' button is pressed. Processes the submitted parameters and writes the results back to a new jelly site.

Parameters:
req - submitted request
rsp - generated response
Throws:
IOException - Exception for Writer and StaplerResponse operations

getPathMissing

public String getPathMissing()
Returns internationalized error message.

Returns:
error message


Copyright © 2004-2013. All Rights Reserved.