|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.analysis.core.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. This action also is responsible to render the historical trend via its associated 'floatingBox.jelly' view.
| Constructor Summary | |
|---|---|
AbstractProjectAction(hudson.model.AbstractProject<?,?> project,
Class<? extends T> resultActionType,
org.jvnet.localizer.Localizable name,
org.jvnet.localizer.Localizable trendName,
String pluginUrl,
String iconUrl,
String resultUrl)
Creates a new instance of AbstractProjectAction. |
|
AbstractProjectAction(hudson.model.AbstractProject<?,?> project,
Class<? extends T> resultActionType,
PluginDescriptor plugin)
Deprecated. use AbstractProjectAction(AbstractProject, Class, Localizable, Localizable, String, String, String) |
|
| Method Summary | |
|---|---|
boolean |
canShowEnableTrendLink(org.kohsuke.stapler.StaplerRequest request)
Returns whether the enable trend graph link should be shown. |
protected BuildHistory |
createBuildHistory()
Creates the build history. |
protected GraphConfiguration |
createConfiguration(List<BuildResultGraph> availableGraphs)
Creates the graph configuration. |
protected GraphConfigurationView |
createDefaultConfiguration()
Creates a view to configure the trend graph defaults. |
protected GraphConfigurationView |
createUserConfiguration(org.kohsuke.stapler.StaplerRequest request)
Creates a view to configure the trend graph for the current user. |
void |
doIndex(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Redirects the index page to the last result. |
protected List<BuildResultGraph> |
getAvailableGraphs()
Returns the sorted list of available graphs. |
String |
getDisplayName()
|
Object |
getDynamic(String link,
org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Returns the graph configuration view for this project. |
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 this action belongs to. |
protected T |
getResultAction(hudson.model.AbstractBuild<?,?> lastBuild)
Returns the result action for the specified build. |
Object |
getTrendDetails()
Returns the trend graph details. |
Object |
getTrendDetails(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Returns the trend graph details. |
Object |
getTrendGraph()
Returns the trend graph. |
hudson.util.Graph |
getTrendGraph(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Returns the configured trend graph. |
String |
getTrendName()
Returns the title of the trend graph. |
String |
getUrlName()
|
boolean |
hasValidResults()
Returns whether this project has a valid result action attached. |
boolean |
isTrendDeactivated(org.kohsuke.stapler.StaplerRequest request)
Returns whether the trend graph is deactivated. |
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 |
| Constructor Detail |
|---|
public AbstractProjectAction(hudson.model.AbstractProject<?,?> project,
Class<? extends T> resultActionType,
org.jvnet.localizer.Localizable name,
org.jvnet.localizer.Localizable trendName,
String pluginUrl,
String iconUrl,
String resultUrl)
AbstractProjectAction.
project - the project that owns this actionresultActionType - the type of the result actionname - the human readable name of this actiontrendName - the human readable name of the trend graphpluginUrl - the URL of the associated plug-iniconUrl - the icon to showresultUrl - the URL of the associated build results
@Deprecated
public AbstractProjectAction(hudson.model.AbstractProject<?,?> project,
Class<? extends T> resultActionType,
PluginDescriptor plugin)
AbstractProjectAction(AbstractProject, Class, Localizable, Localizable, String, String, String)
AbstractProjectAction.
project - the project that owns this actionresultActionType - the type of the result actionplugin - the plug-in that owns this action| Method Detail |
|---|
public String getDisplayName()
getDisplayName in interface hudson.model.ActiongetDisplayName in interface hudson.model.ModelObjectpublic String getTrendName()
public final hudson.model.AbstractProject<?,?> getProject()
public Object getDynamic(String link,
org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
null is returned.
link - the requested linkrequest - Stapler requestresponse - Stapler response
public Object getTrendDetails()
public Object getTrendDetails(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
request - Stapler requestresponse - Stapler response
public Object getTrendGraph()
public hudson.util.Graph getTrendGraph(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
request - Stapler requestresponse - Stapler response
public boolean isTrendVisible(org.kohsuke.stapler.StaplerRequest request)
request - the request to get the cookie from
true if the trend is visiblepublic boolean isTrendDeactivated(org.kohsuke.stapler.StaplerRequest request)
request - the request to get the cookie from
true if the trend is deactivatedpublic boolean canShowEnableTrendLink(org.kohsuke.stapler.StaplerRequest request)
request - the request to get the cookie from
protected GraphConfigurationView createUserConfiguration(org.kohsuke.stapler.StaplerRequest request)
request - Stapler request
protected GraphConfigurationView createDefaultConfiguration()
protected BuildHistory createBuildHistory()
protected List<BuildResultGraph> getAvailableGraphs()
protected GraphConfiguration createConfiguration(List<BuildResultGraph> availableGraphs)
availableGraphs - the available graphs
public String getIconFileName()
null is returned.
getIconFileName in interface hudson.model.Actionpublic final String getUrlName()
getUrlName in interface hudson.model.Actionpublic final boolean hasValidResults()
true if the results are valid@CheckForNull public ResultAction<?> getLastAction()
null if no such
action is found@CheckForNull protected T getResultAction(hudson.model.AbstractBuild<?,?> lastBuild)
lastBuild - the build to get the action for
null if there is no such action@CheckForNull public hudson.model.AbstractBuild<?,?> getLastFinishedBuild()
null if there is no
such build
public void doIndex(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
throws IOException
request - Stapler requestresponse - Stapler response
IOException - in case of an error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||