hudson.plugins.findbugs
Class FindBugsProjectAction

java.lang.Object
  extended by hudson.plugins.findbugs.FindBugsProjectAction
All Implemented Interfaces:
hudson.model.Action, hudson.model.ModelObject, java.io.Serializable

public class FindBugsProjectAction
extends java.lang.Object
implements hudson.model.Action

Entry point to visualize the FindBugs trend graph. Drawing of the graph is delegated to the associated FindBugsResultAction.

Author:
Ulli Hafner
See Also:
Serialized Form

Constructor Summary
FindBugsProjectAction(hudson.model.Project<?,?> project)
          Instantiates a new find bugs project action.
 
Method Summary
 void doTrend(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
          Display the warnings trend.
 void doTrendMap(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
          Display the warnings trend map.
 java.lang.String getDisplayName()
          
 java.lang.String getIconFileName()
          
 FindBugsResultAction getLastAction()
          Returns the last valid FindBugs result action.
 hudson.model.Project<?,?> getProject()
          Returns the project.
 java.lang.String getUrlName()
          
 boolean hasValidResults(hudson.model.Build<?,?> build)
          Returns whether we have enough valid results in order to draw a meaningful graph.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FindBugsProjectAction

public FindBugsProjectAction(hudson.model.Project<?,?> project)
Instantiates a new find bugs project action.

Parameters:
project - the project that owns this action
Method Detail

getProject

public hudson.model.Project<?,?> getProject()
Returns the project.

Returns:
the project

getDisplayName

public java.lang.String getDisplayName()

Specified by:
getDisplayName in interface hudson.model.Action
Specified by:
getDisplayName in interface hudson.model.ModelObject

getIconFileName

public java.lang.String getIconFileName()

Specified by:
getIconFileName in interface hudson.model.Action

getUrlName

public java.lang.String getUrlName()

Specified by:
getUrlName in interface hudson.model.Action

hasValidResults

public boolean hasValidResults(hudson.model.Build<?,?> build)
Returns whether we have enough valid results in order to draw a meaningful graph.

Parameters:
build - the build to look backward from
Returns:
true if the results are valid in order to draw a graph

doTrend

public void doTrend(org.kohsuke.stapler.StaplerRequest request,
                    org.kohsuke.stapler.StaplerResponse response)
             throws java.io.IOException
Display the warnings trend. Delegates to the the associated FindBugsResultAction.

Parameters:
request - Stapler request
response - Stapler response
Throws:
java.io.IOException - in case of an error in FindBugsResultAction.doGraph(StaplerRequest, StaplerResponse)

doTrendMap

public void doTrendMap(org.kohsuke.stapler.StaplerRequest request,
                       org.kohsuke.stapler.StaplerResponse response)
                throws java.io.IOException
Display the warnings trend map. Delegates to the the associated FindBugsResultAction.

Parameters:
request - Stapler request
response - Stapler response
Throws:
java.io.IOException - in case of an error in FindBugsResultAction.doGraph(StaplerRequest, StaplerResponse)

getLastAction

public FindBugsResultAction getLastAction()
Returns the last valid FindBugs result action.

Returns:
the last valid FindBugs result action, or null if no such action is found


Copyright © 2007. All Rights Reserved.