hudson.plugins.ccm
Class CCMProjectAction

java.lang.Object
  extended by hudson.plugins.ccm.AbstractCCMAction
      extended by hudson.plugins.ccm.CCMProjectAction
All Implemented Interfaces:
hudson.model.Action, hudson.model.ModelObject

public class CCMProjectAction
extends AbstractCCMAction

Since:
1.0
Author:
Bruno P. Kinoshita - http://www.kinoshita.eti.br

Field Summary
 
Fields inherited from class hudson.plugins.ccm.AbstractCCMAction
ICON_FILE_NAME, URL_NAME
 
Constructor Summary
CCMProjectAction(hudson.model.AbstractProject<?,?> project)
          Creates new CCM project action.
 
Method Summary
 void doGraph(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
          Sets CCM trend graph in the response.
 void doIndex(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
          Show CCM html report f the latest build.
 CCMBuildAction getLastBuildAction()
          Returns the last build action.
 boolean isDisplayGraph()
          Checks if it should display graph.
 
Methods inherited from class hudson.plugins.ccm.AbstractCCMAction
getDisplayName, getIconFileName, getSearchUrl, getUrlName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CCMProjectAction

public CCMProjectAction(hudson.model.AbstractProject<?,?> project)
Creates new CCM project action.

Parameters:
project - Project which this action will be applied to.
Method Detail

isDisplayGraph

public final boolean isDisplayGraph()
Checks if it should display graph.

Returns:
true if it should display graph and false otherwise.

getLastBuildAction

public CCMBuildAction getLastBuildAction()
Returns the last build action.

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

doIndex

public void doIndex(org.kohsuke.stapler.StaplerRequest request,
                    org.kohsuke.stapler.StaplerResponse response)
             throws java.io.IOException
Show CCM html report f the latest build. If no builds are associated with CCM , returns info page.

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

doGraph

public void doGraph(org.kohsuke.stapler.StaplerRequest request,
                    org.kohsuke.stapler.StaplerResponse response)
             throws java.io.IOException
Sets CCM trend graph in the response.

Parameters:
request - Request
response - Response
Throws:
java.io.IOException


Copyright © 2010-2011 the CCM plug-in team-2011. All Rights Reserved.