org.jenkins.ci.plugins.keyboard_shortcuts
Class JobUtils

java.lang.Object
  extended by org.jenkins.ci.plugins.keyboard_shortcuts.JobUtils

public final class JobUtils
extends Object

Common utilities for Views.

Author:
Jesse Farinacci

Method Summary
static Collection<hudson.model.Item> getAllJobs()
           
static net.sf.json.JSONArray getAllJobsAsJsonArray()
           
static hudson.model.TopLevelItem getJob()
           
static hudson.model.TopLevelItem getJob(org.kohsuke.stapler.StaplerRequest currentRequest)
           
static String getJobName()
           
static String getJobName(hudson.model.Item item)
           
static net.sf.json.JSONObject toJSONObject(hudson.model.Item job, int idx)
           
protected static net.sf.json.JSONObject toJSONObject(String url, String displayName, int idx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAllJobs

public static Collection<hudson.model.Item> getAllJobs()

getAllJobsAsJsonArray

public static net.sf.json.JSONArray getAllJobsAsJsonArray()

getJob

public static hudson.model.TopLevelItem getJob()

getJob

public static hudson.model.TopLevelItem getJob(org.kohsuke.stapler.StaplerRequest currentRequest)

getJobName

public static String getJobName()

getJobName

public static String getJobName(hudson.model.Item item)

toJSONObject

public static net.sf.json.JSONObject toJSONObject(hudson.model.Item job,
                                                  int idx)

toJSONObject

protected static net.sf.json.JSONObject toJSONObject(String url,
                                                     String displayName,
                                                     int idx)


Copyright © 2004-2012. All Rights Reserved.