com.thalesgroup.hudson.plugins.cppcheck
Class CppcheckProjectAction

java.lang.Object
  extended by com.thalesgroup.hudson.plugins.cppcheck.CppcheckProjectAction
All Implemented Interfaces:
hudson.model.Action, hudson.model.ModelObject, java.io.Serializable

public class CppcheckProjectAction
extends java.lang.Object
implements hudson.model.Action, java.io.Serializable

See Also:
Serialized Form

Field Summary
static int CHART_HEIGHT
           
static int CHART_WIDTH
           
 hudson.model.AbstractProject<?,?> project
           
static java.lang.String URL_NAME
           
 
Constructor Summary
CppcheckProjectAction(hudson.model.AbstractProject<?,?> project)
           
 
Method Summary
 void doIndex(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
          Redirects the index page to the last result.
 void doTrend(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
          Display the trend graph.
 void doTrendMap(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
          Display the trend map.
 java.lang.String getDisplayName()
           
 java.lang.String getIconFileName()
           
 hudson.model.AbstractBuild<?,?> getLastFinishedBuild()
          Returns the last finished build.
 java.lang.String getUrlName()
           
 boolean hasValidResults()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

URL_NAME

public static final java.lang.String URL_NAME
See Also:
Constant Field Values

CHART_WIDTH

public static final int CHART_WIDTH
See Also:
Constant Field Values

CHART_HEIGHT

public static final int CHART_HEIGHT
See Also:
Constant Field Values

project

public hudson.model.AbstractProject<?,?> project
Constructor Detail

CppcheckProjectAction

public CppcheckProjectAction(hudson.model.AbstractProject<?,?> project)
Method Detail

getIconFileName

public java.lang.String getIconFileName()
Specified by:
getIconFileName in interface hudson.model.Action

getDisplayName

public java.lang.String getDisplayName()
Specified by:
getDisplayName in interface hudson.model.Action
Specified by:
getDisplayName in interface hudson.model.ModelObject

getUrlName

public java.lang.String getUrlName()
Specified by:
getUrlName in interface hudson.model.Action

doIndex

public void doIndex(org.kohsuke.stapler.StaplerRequest request,
                    org.kohsuke.stapler.StaplerResponse response)
             throws java.io.IOException
Redirects the index page to the last result.

Parameters:
request - Stapler request
response - Stapler response
Throws:
java.io.IOException - in case of an error

getLastFinishedBuild

public hudson.model.AbstractBuild<?,?> getLastFinishedBuild()
Returns the last finished build.

Returns:
the last finished build or null if there is no such build

hasValidResults

public final boolean hasValidResults()

doTrendMap

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

Parameters:
request - Stapler request
response - Stapler response
Throws:
java.io.IOException - in case of an error

doTrend

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

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


Copyright © 2009. All Rights Reserved.