hudson.plugins.serenitec
Class SerenitecResultAction

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

public class SerenitecResultAction
extends AbstractResultAction<SerenitecResult>

Controls the live cycle of the warnings results. This action persists the results of the warnings analysis 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 warnings result trend.

Author:
Ulli Hafner
See Also:
Serialized Form

Constructor Summary
SerenitecResultAction(hudson.model.AbstractBuild<?,?> owner, HealthReportBuilder healthReportBuilder)
          Creates a new instance of WarningsResultAction.
SerenitecResultAction(hudson.model.AbstractBuild<?,?> owner, HealthReportBuilder healthReportBuilder, SerenitecResult result)
          Creates a new instance of WarningsResultAction.
 
Method Summary
protected  SerenitecDescriptor getDescriptor()
          Returns the descriptor of the associated plug-in.
 java.lang.String getDisplayName()
          
 java.lang.String getMultipleItemsTooltip(int numberOfItems)
          Returns the tooltip for several items.
 SerenitecResultAction getPreviousResultAction()
          Gets the warnings result of the previous build.
 java.lang.String getSingleItemTooltip()
          Returns the tooltip for exactly one item.
 
Methods inherited from class hudson.plugins.serenitec.util.AbstractResultAction
buildDataSet, buildDetailsDataSet, doDetailsGraph, doGraph, doGraphMap, doPersonalGraph, doRulesRepartitionPie, getBuildHealth, getHealthReportBuilder, getIconFileName, getOwner, getPreviousBuild, getResult, getTarget, getUrlName, hasPreviousResultAction, setResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerenitecResultAction

public SerenitecResultAction(hudson.model.AbstractBuild<?,?> owner,
                             HealthReportBuilder healthReportBuilder)
Creates a new instance of WarningsResultAction.

Parameters:
owner - the associated build of this action
healthReportBuilder - health builder to use

SerenitecResultAction

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

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

getDescriptor

protected SerenitecDescriptor getDescriptor()
Returns the descriptor of the associated plug-in.

Specified by:
getDescriptor in class AbstractResultAction<SerenitecResult>
Returns:
the descriptor of the associated plug-in

getDisplayName

public java.lang.String getDisplayName()


getMultipleItemsTooltip

public java.lang.String getMultipleItemsTooltip(int numberOfItems)
Returns the tooltip for several items.

Parameters:
numberOfItems - the number of items to display the tooltip for
Returns:
the tooltip for several items

getPreviousResultAction

public SerenitecResultAction getPreviousResultAction()
Gets the warnings result of the previous build.

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

getSingleItemTooltip

public java.lang.String getSingleItemTooltip()
Returns the tooltip for exactly one item.

Returns:
the tooltip for exactly one item


Copyright © 2008. All Rights Reserved.