hudson.plugins.jswidgets
Class JsJobAction

java.lang.Object
  extended by hudson.plugins.jswidgets.JsBaseAction
      extended by hudson.plugins.jswidgets.JsJobAction
All Implemented Interfaces:
hudson.model.Action, hudson.model.ModelObject

public class JsJobAction
extends JsBaseAction

This class implements the JS widgets pages for a job.

Author:
mfriedenhagen

Constructor Summary
JsJobAction(hudson.model.AbstractProject<?,?> project)
           
 
Method Summary
 java.lang.String getJobDescription(boolean escapeApostroph)
          Returns the description of the job without line feeds and ' as this will break the Javascript output.
 hudson.model.AbstractProject<?,?> getProject()
          Returns the job for which the health report will be generated.
 
Methods inherited from class hudson.plugins.jswidgets.JsBaseAction
getBaseUrl, getDisplayName, getIconFileName, getImagesUrl, getUrlName, skipDescription, wantHtml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsJobAction

public JsJobAction(hudson.model.AbstractProject<?,?> project)
Parameters:
project - the job for which the health report will be generated.
Method Detail

getProject

public hudson.model.AbstractProject<?,?> getProject()
Returns the job for which the health report will be generated.

Returns:
job

getJobDescription

public java.lang.String getJobDescription(boolean escapeApostroph)
Returns the description of the job without line feeds and ' as this will break the Javascript output.

Parameters:
escapeApostroph - escape apostroph (used by javascript-rendering).
Returns:
the description in one line.


Copyright © 2010. All Rights Reserved.