|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.tasks.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)
Creates a new instance of AbstractProjectAction. |
|
| Method Summary | |
|---|---|
GraphConfiguration |
createGraphConfiguration(org.kohsuke.stapler.StaplerRequest request,
ResultAction<?> action)
Creates the graph configuration from the cookie. |
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.Object |
getDynamic(java.lang.String link,
org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Returns the graph configuration for this project. |
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 |
isTrendVisible(org.kohsuke.stapler.StaplerRequest request)
Returns whether the trend graph is visible. |
| 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)
AbstractProjectAction.
project - the project that owns this actionresultActionType - the type of the result actionplugin - the plug-in that owns this action| Method Detail |
|---|
public abstract java.lang.String getTrendName()
public final hudson.model.AbstractProject<?,?> getProject()
public java.lang.Object getDynamic(java.lang.String link,
org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
link - not usedrequest - Stapler requestresponse - Stapler response
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 foundpublic hudson.model.AbstractBuild<?,?> getLastFinishedBuild()
null if there is no
such build
public void doTrend(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 error
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 errorpublic boolean isTrendVisible(org.kohsuke.stapler.StaplerRequest request)
request - the request to get the cookie from
public GraphConfiguration createGraphConfiguration(org.kohsuke.stapler.StaplerRequest request,
ResultAction<?> action)
request - the request to get the cookie fromaction - the last result action
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 error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||