hudson.plugins.tasks
Class TasksResultAction

java.lang.Object
  extended by hudson.plugins.tasks.util.AbstractResultAction<TasksResult>
      extended by hudson.plugins.tasks.TasksResultAction
All Implemented Interfaces:
hudson.model.Action, hudson.model.HealthReportingAction, hudson.model.ModelObject, ResultAction<TasksResult>, java.io.Serializable, org.kohsuke.stapler.StaplerProxy

public class TasksResultAction
extends AbstractResultAction<TasksResult>

Controls the live cycle of the task scanner results. This action persists the results of the task scanner of a build and displays the results on the build page. The actual visualization of the results is defined in the matching summary.jelly file.

Moreover, this class renders the tasks scanner result trend.

Author:
Ulli Hafner
See Also:
Serialized Form

Constructor Summary
TasksResultAction(hudson.model.AbstractBuild<?,?> owner, TasksResult result, HealthReportBuilder healthReportBuilder)
          Creates a new instance of TasksResultAction.
 
Method Summary
protected  org.jfree.chart.JFreeChart createChart(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
          Creates the chart for this action.
 java.lang.String getDisplayName()
          
protected  int getHealthCounter()
          Returns the health counter of this result.
 java.lang.String getIconUrl()
          Returns the file name URL of the icon.
 TasksResultAction getPreviousResultAction()
          Gets the tasks result of the previous build.
 java.lang.String getUrlName()
          
 boolean hasPreviousResultAction()
          Returns whether a previous build already did run with FindBugs.
 
Methods inherited from class hudson.plugins.tasks.util.AbstractResultAction
doGraph, doGraphMap, getBuildHealth, getHealthReportBuilder, getIconFileName, getOwner, getResult, getTarget, setResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TasksResultAction

public TasksResultAction(hudson.model.AbstractBuild<?,?> owner,
                         TasksResult result,
                         HealthReportBuilder healthReportBuilder)
Creates a new instance of TasksResultAction.

Parameters:
owner - the associated build of this action
result - the result in this build
healthReportBuilder - health builder to use
Method Detail

getHealthCounter

protected int getHealthCounter()
Returns the health counter of this result.

Specified by:
getHealthCounter in class AbstractResultAction<TasksResult>
Returns:
the health counter of this result.

getDisplayName

public java.lang.String getDisplayName()


getIconUrl

public java.lang.String getIconUrl()
Returns the file name URL of the icon.

Specified by:
getIconUrl in class AbstractResultAction<TasksResult>
Returns:
the file name URL of the icon.

getUrlName

public java.lang.String getUrlName()


getPreviousResultAction

public TasksResultAction getPreviousResultAction()
Gets the tasks result of the previous build.

Returns:
the tasks result of the previous build.
Throws:
java.util.NoSuchElementException - if there is no previous build for this action

hasPreviousResultAction

public boolean hasPreviousResultAction()
Returns whether a previous build already did run with FindBugs.

Returns:
true if a previous build already did run with FindBugs.

createChart

protected org.jfree.chart.JFreeChart createChart(org.kohsuke.stapler.StaplerRequest request,
                                                 org.kohsuke.stapler.StaplerResponse response)
Creates the chart for this action.

Specified by:
createChart in class AbstractResultAction<TasksResult>
Parameters:
request - Stapler request
response - Stapler response
Returns:
the chart for this action.


Copyright © 2008. All Rights Reserved.