|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.findbugs.util.AbstractProjectAction<T>
T - result action typepublic abstract class AbstractProjectAction<T extends ResultAction<?>>
A project action displays a link on the side panel of a project.
| Constructor Summary | |
|---|---|
AbstractProjectAction(hudson.model.AbstractProject<?,?> project,
java.lang.Class<T> resultActionType,
PluginDescriptor plugin,
int height)
Creates a new instance of AbstractProjectAction. |
|
| Method Summary | |
|---|---|
void |
doFlipTrend(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Changes the trend graph display mode. |
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. |
abstract java.lang.String |
getCookieName()
Returns the flip trend cookie name. |
java.lang.String |
getIconFileName()
Returns the icon URL for the side-panel in the project screen. |
ResultAction<?> |
getLastAction()
Returns the last valid result action. |
hudson.model.AbstractBuild<?,?> |
getLastFinishedBuild()
Returns the last finished build. |
hudson.model.AbstractProject<?,?> |
getProject()
Returns the project. |
abstract java.lang.String |
getTrendName()
Returns the title of the trend graph. |
java.lang.String |
getUrlName()
|
boolean |
hasValidResults()
Returns whether we have enough valid results in order to draw a meaningful graph. |
boolean |
isHealthinessEnabled()
Returns whether we should display the toggle graph type links. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface hudson.model.Action |
|---|
getDisplayName |
| Constructor Detail |
|---|
public AbstractProjectAction(hudson.model.AbstractProject<?,?> project,
java.lang.Class<T> resultActionType,
PluginDescriptor plugin,
int height)
AbstractProjectAction.
project - the project that owns this actionresultActionType - the type of the result actionplugin - the plug-in that owns this actionheight - the height of the trend graph| Method Detail |
|---|
public final boolean isHealthinessEnabled()
true if we should display the toggle graph type
linkspublic final hudson.model.AbstractProject<?,?> getProject()
public final boolean hasValidResults()
true if the results are valid in order to draw a
graphpublic java.lang.String getIconFileName()
null is returned.
getIconFileName in interface hudson.model.Actionpublic final java.lang.String getUrlName()
getUrlName in interface hudson.model.Actionpublic ResultAction<?> getLastAction()
null if no such action is found
public void doTrend(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
throws java.io.IOException
ResultAction.
request - Stapler requestresponse - Stapler response
java.io.IOException - in case of an error in
ResultAction.doGraph(StaplerRequest, StaplerResponse, int)public abstract java.lang.String getTrendName()
public void doTrendMap(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
throws java.io.IOException
ResultAction.
request - Stapler requestresponse - Stapler response
java.io.IOException - in case of an error
public void doIndex(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
throws java.io.IOException
request - Stapler requestresponse - Stapler response
java.io.IOException - in case of an errorpublic hudson.model.AbstractBuild<?,?> getLastFinishedBuild()
null if there is no
such build
public void doFlipTrend(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
throws java.io.IOException
request - Stapler requestresponse - Stapler response
java.io.IOException - in case of an errorpublic abstract java.lang.String getCookieName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||