hudson.plugins.jswidgets
Class JsJobAction
java.lang.Object
hudson.plugins.jswidgets.JsBaseAction
hudson.plugins.jswidgets.JsJobAction
- All Implemented Interfaces:
- Action, ModelObject
public class JsJobAction
- extends JsBaseAction
This class implements the JS widgets pages for a job.
- Author:
- mfriedenhagen
|
Method Summary |
String |
getJobDescription(boolean escapeApostroph)
Returns the description of the job without line feeds and ' as this will break the Javascript output. |
AbstractProject<?,?> |
getProject()
Returns the job for which the health report will be generated. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
private static final Logger LOG
- The Logger.
project
private final transient AbstractProject<?,?> project
- The project.
JsJobAction
public JsJobAction(AbstractProject<?,?> project)
- Parameters:
project - the job for which the health report will be generated.
getProject
public AbstractProject<?,?> getProject()
- Returns the job for which the health report will be generated.
- Returns:
- job
getJobDescription
public 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.