|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.model.AbstractModelObject
hudson.model.Actionable
hudson.plugins.violations.hudson.AbstractViolationsBuildAction<T>
public abstract class AbstractViolationsBuildAction<T extends AbstractViolationsBuildAction>
Common base class for recording violations results.
| Field Summary | |
|---|---|
protected hudson.model.AbstractBuild<?,?> |
owner
|
| Constructor Summary | |
|---|---|
protected |
AbstractViolationsBuildAction(hudson.model.AbstractBuild<?,?> owner)
Constructor setting the owner build. |
| Method Summary | |
|---|---|
protected org.jfree.chart.JFreeChart |
createChart(org.jfree.data.category.CategoryDataset dataset)
|
void |
doGraph(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
This corresponds to the url . |
ViolationsReport |
findReport()
Gets the first valid violations report. |
hudson.model.AbstractBuild<?,?> |
getBuild()
Get the build that owns this action. |
hudson.model.HealthReport |
getBuildHealth()
Get the build report. |
java.lang.String |
getDisplayName()
The display name for the url to be displayed on the build page right hand side. |
java.lang.String |
getIconFileName()
Get the icon to display. |
T |
getPreviousResult()
Gets the test result of the previous build, if it's recorded, or null. |
abstract ViolationsReport |
getReport()
Get the report. |
java.lang.String |
getSearchUrl()
Get the search url. |
java.lang.Object |
getTarget()
The object to use then the URL is pressed This handles the url's from "${buildpage}/violations/" except for any overridded by do methods in this class (in this instance doGraph). |
java.lang.String |
getUrlName()
The url to get to the "target" object. |
| Methods inherited from class hudson.model.Actionable |
|---|
addAction, getAction, getAction, getActions, getActions, getDynamic |
| Methods inherited from class hudson.model.AbstractModelObject |
|---|
getSearch, getSearchIndex, getSearchName, makeSearchIndex, sendError, sendError |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final hudson.model.AbstractBuild<?,?> owner
| Constructor Detail |
|---|
protected AbstractViolationsBuildAction(hudson.model.AbstractBuild<?,?> owner)
| Method Detail |
|---|
public abstract ViolationsReport getReport()
public java.lang.Object getTarget()
getTarget in interface org.kohsuke.stapler.StaplerProxypublic hudson.model.AbstractBuild<?,?> getBuild()
public hudson.model.HealthReport getBuildHealth()
getBuildHealth in interface hudson.model.HealthReportingActionpublic java.lang.String getDisplayName()
getDisplayName in interface hudson.model.ActiongetDisplayName in interface hudson.model.ModelObjectpublic java.lang.String getUrlName()
getUrlName in interface hudson.model.Actionpublic java.lang.String getSearchUrl()
getSearchUrl in interface hudson.search.SearchItempublic java.lang.String getIconFileName()
getIconFileName in interface hudson.model.Actionpublic ViolationsReport findReport()
public T getPreviousResult()
public void doGraph(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws java.io.IOException
req - the request parameters.rsp - the response.
java.io.IOException - if there is an error writing the graphprotected org.jfree.chart.JFreeChart createChart(org.jfree.data.category.CategoryDataset dataset)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||