hudson.plugins.jswidgets
Class JsJobAction

java.lang.Object
  extended by hudson.plugins.jswidgets.JsBaseAction
      extended by 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

Field Summary
private static Logger LOG
          The Logger.
private  AbstractProject<?,?> project
          The project.
 
Constructor Summary
JsJobAction(AbstractProject<?,?> project)
           
 
Method Summary
 String getJobDescription()
          Returns the description of the job without line feeds as this will break the Javascript output.
 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, wantHtml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final Logger LOG
The Logger.


project

private final transient AbstractProject<?,?> project
The project.

Constructor Detail

JsJobAction

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

getProject

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

Returns:
job

getJobDescription

public String getJobDescription()
Returns the description of the job without line feeds as this will break the Javascript output.

Returns:
the description in one line.


Copyright © 2009. All Rights Reserved.