|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.analysis.core.AbstractResultAction<T>
T - type of the result of this actionpublic abstract class AbstractResultAction<T extends BuildResult>
Controls the live cycle of the results in a job. This action persists the results
of a build and displays them on the build page. The actual visualization of
the results is defined in the matching summary.jelly file.
Moreover, this class renders the results trend.
| Constructor Summary | |
|---|---|
AbstractResultAction(hudson.model.AbstractBuild<?,?> owner,
AbstractHealthDescriptor healthDescriptor)
Creates a new instance of AbstractResultAction. |
|
AbstractResultAction(hudson.model.AbstractBuild<?,?> owner,
AbstractHealthDescriptor healthDescriptor,
T result)
Creates a new instance of AbstractResultAction. |
|
| Method Summary | |
|---|---|
protected void |
addModule(ParserResult aggregatedResult,
List<hudson.maven.MavenBuild> builds)
Deprecated. replaced by MavenResultAction |
protected ParserResult |
createAggregatedResult(Map<hudson.maven.MavenModule,List<hudson.maven.MavenBuild>> moduleBuilds)
Deprecated. replaced by MavenResultAction |
protected ParserResult |
createResult()
Factory method to create the result of this action. |
hudson.model.AbstractBuild<?,?> |
getBuild()
Returns the associated build of this action. |
hudson.model.HealthReport |
getBuildHealth()
|
protected abstract PluginDescriptor |
getDescriptor()
Returns the descriptor of the associated plug-in. |
AbstractHealthDescriptor |
getHealthDescriptor()
Returns the healthDescriptor. |
String |
getIconFileName()
|
String |
getLargeImageName()
Returns the URL of the 48x48 image used in the build summary. |
protected String |
getMultipleItemsTooltip(int numberOfItems)
Returns the tooltip for several items. |
hudson.model.AbstractBuild<?,?> |
getOwner()
Returns the associated build of this action. |
T |
getResult()
Returns the current result of this action. |
protected String |
getSingleItemTooltip()
Returns the tooltip for exactly one item. |
protected String |
getSmallImage()
Returns the URL of the 24x24 image used in the build link. |
String |
getSmallImageName()
Returns the URL of the 24x24 image used in the build link. |
Object |
getTarget()
|
String |
getTooltip(int numberOfItems)
Returns the tooltip for the specified number of items. |
ToolTipProvider |
getToolTipProvider()
Returns the associated tool tip provider. |
String |
getUrlName()
|
boolean |
hasLargeImage()
Returns whether a large image is defined. |
boolean |
isSuccessful()
Returns whether this build is successful with respect to the HealthDescriptor of this action. |
void |
setResult(T result)
Sets the result for this build. |
protected void |
updateBuildHealth(hudson.maven.MavenBuild build,
BuildResult buildResult)
Deprecated. replaced by MavenResultAction |
| 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 AbstractResultAction(hudson.model.AbstractBuild<?,?> owner,
AbstractHealthDescriptor healthDescriptor,
T result)
AbstractResultAction.
owner - the associated build of this actionhealthDescriptor - health descriptorresult - the result of the action
public AbstractResultAction(hudson.model.AbstractBuild<?,?> owner,
AbstractHealthDescriptor healthDescriptor)
AbstractResultAction.
owner - the associated build of this actionhealthDescriptor - health descriptor| Method Detail |
|---|
public AbstractHealthDescriptor getHealthDescriptor()
getHealthDescriptor in interface ResultAction<T extends BuildResult>protected abstract PluginDescriptor getDescriptor()
public String getUrlName()
getUrlName in interface hudson.model.Actionpublic final hudson.model.HealthReport getBuildHealth()
getBuildHealth in interface hudson.model.HealthReportingActionpublic ToolTipProvider getToolTipProvider()
getToolTipProvider in interface ResultAction<T extends BuildResult>public final hudson.model.AbstractBuild<?,?> getOwner()
public final hudson.model.AbstractBuild<?,?> getBuild()
getBuild in interface ResultAction<T extends BuildResult>public final Object getTarget()
getTarget in interface org.kohsuke.stapler.StaplerProxypublic final T getResult()
getResult in interface ResultAction<T extends BuildResult>public final void setResult(T result)
setResult in interface ResultAction<T extends BuildResult>result - the result to setpublic String getIconFileName()
getIconFileName in interface hudson.model.Actionpublic boolean hasLargeImage()
true if a large image is defined, false
otherwise. If no large image is defined, then the attribute
icon must to be provided in jelly tag summary.public String getLargeImageName()
public String getSmallImageName()
protected String getSmallImage()
protected ParserResult createResult()
public String getTooltip(int numberOfItems)
getTooltip in interface ToolTipProvidernumberOfItems - the number of items to display the tooltip for
protected String getMultipleItemsTooltip(int numberOfItems)
numberOfItems - the number of items to display the tooltip for
protected String getSingleItemTooltip()
public boolean isSuccessful()
HealthDescriptor of this action.
isSuccessful in interface ResultAction<T extends BuildResult>true if the build is successful, false
if the build has been set to Result.UNSTABLE or
Result.FAILURE by this action.@Deprecated protected ParserResult createAggregatedResult(Map<hudson.maven.MavenModule,List<hudson.maven.MavenBuild>> moduleBuilds)
MavenResultAction
moduleBuilds - the module builds to aggregate
@Deprecated
protected void updateBuildHealth(hudson.maven.MavenBuild build,
BuildResult buildResult)
MavenResultAction
build - the build to change the status frombuildResult - the build result
@Deprecated
protected void addModule(ParserResult aggregatedResult,
List<hudson.maven.MavenBuild> builds)
MavenResultAction
aggregatedResult - the result to add the module tobuilds - the builds for a module
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||