hudson.plugins.ccm
Class CCMProjectAction

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by hudson.model.Actionable
          extended by hudson.plugins.ccm.CCMProjectAction
All Implemented Interfaces:
hudson.model.Action, hudson.model.ModelObject, hudson.model.ProminentProjectAction, hudson.search.SearchableModelObject, hudson.search.SearchItem, java.io.Serializable

public class CCMProjectAction
extends hudson.model.Actionable
implements hudson.model.ProminentProjectAction, java.io.Serializable

Since:
16/08/2010
Author:
Bruno P. Kinoshita - http://www.kinoshita.eti.br
See Also:
Serialized Form

Field Summary
static int CHART_HEIGHT
           
static int CHART_WIDTH
           
static java.lang.String ICON_FILE_NAME
           
static java.lang.String URL_NAME
           
 
Constructor Summary
CCMProjectAction(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 getSearchUrl()
           
 java.lang.String getUrlName()
           
 boolean hasValidResults()
           
 
Methods inherited from class hudson.model.Actionable
addAction, getAction, getAction, getActions, getActions, getDynamic
 
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ICON_FILE_NAME

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

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
Constructor Detail

CCMProjectAction

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

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

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)

getSearchUrl

public java.lang.String getSearchUrl()
Specified by:
getSearchUrl in interface hudson.search.SearchItem


Copyright © 2010. All Rights Reserved.