hudson.plugins.testabilityexplorer.helpers
Class AbstractProjectAction<T extends hudson.model.AbstractProject<?,?>>
java.lang.Object
hudson.model.AbstractModelObject
hudson.model.Actionable
hudson.plugins.testabilityexplorer.helpers.AbstractProjectAction<T>
- All Implemented Interfaces:
- hudson.model.ModelObject, hudson.search.SearchableModelObject, hudson.search.SearchItem
- Direct Known Subclasses:
- AbstractProjectReport
public abstract class AbstractProjectAction<T extends hudson.model.AbstractProject<?,?>>
- extends hudson.model.Actionable
A abstract Actionable that will contain a reference to the current project. Subclasses
need to overwrite methods like isFloatingBoxActive() to customize
displaying of the trend graphs.
- Author:
- reik.schatz
|
Method Summary |
void |
doTrend(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Will use the specified StaplerResponse to render a trend graph. |
java.lang.String |
getGraphName()
Title that will be displayed above the graph. |
T |
getProject()
|
boolean |
isFloatingBoxActive()
Enable's the floating box on the build summary page. |
boolean |
isGraphActive()
Activate the graph inside the floating box. |
| 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface hudson.model.ModelObject |
getDisplayName |
| Methods inherited from interface hudson.search.SearchItem |
getSearchUrl |
AbstractProjectAction
protected AbstractProjectAction(T project)
getProject
public T getProject()
isFloatingBoxActive
public boolean isFloatingBoxActive()
- Enable's the floating box on the build summary page.
- Returns:
- Boolean
isGraphActive
public boolean isGraphActive()
- Activate the graph inside the floating box.
- Returns:
- Boolean
getGraphName
public java.lang.String getGraphName()
- Title that will be displayed above the graph.
- Returns:
- String
doTrend
public void doTrend(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
throws java.io.IOException
- Will use the specified
StaplerResponse to render a trend graph. If no lost finished build
is found or that last finished build does not contain a AbstractBuildReport action, the
status on the StaplerResponse will be set to HttpServletResponse.SC_NOT_FOUND
- Parameters:
request - a StaplerRequestresponse - a StaplerResponse
- Throws:
java.io.IOException - if a problem with the StaplerResponse occurs
Copyright © 2008. All Rights Reserved.