com.thalesgroup.hudson.plugins.cccc
Class CcccProjectAction

java.lang.Object
  extended by com.thalesgroup.hudson.plugins.cccc.CcccProjectAction
All Implemented Interfaces:
hudson.model.Action, hudson.model.ModelObject, Serializable

public class CcccProjectAction
extends Object
implements hudson.model.Action, Serializable

See Also:
Serialized Form

Field Summary
static int CHART_HEIGHT
           
static int CHART_WIDTH
           
 hudson.model.AbstractProject<?,?> project
           
static String URL_NAME
           
 
Constructor Summary
CcccProjectAction(hudson.model.AbstractProject<?,?> project)
           
 
Method Summary
 void doGraph(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
          Display the graph
 void doIndex(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
          Redirects the index page to the last result.
 String getDisplayName()
           
 String getIconFileName()
           
 hudson.model.AbstractBuild<?,?> getLastFinishedBuild()
          Returns the last finished build.
 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 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

CcccProjectAction

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

getIconFileName

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

getDisplayName

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

getUrlName

public 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 IOException
Redirects the index page to the last result.

Parameters:
request - Stapler request
response - Stapler response
Throws:
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()

doGraph

public void doGraph(org.kohsuke.stapler.StaplerRequest request,
                    org.kohsuke.stapler.StaplerResponse response)
             throws IOException
Display the graph

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


Copyright © 2004-2011. All Rights Reserved.