com.sonyericsson.jenkins.plugins.bfa.model
Class FailureCauseColumn

java.lang.Object
  extended by hudson.views.ListViewColumn
      extended by com.sonyericsson.jenkins.plugins.bfa.model.FailureCauseColumn
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.views.ListViewColumn>

public class FailureCauseColumn
extends hudson.views.ListViewColumn

A column that user can add to a view to display the failure cause of the last build.

Author:
vlatombe

Nested Class Summary
static class FailureCauseColumn.DescriptorImpl
          The descriptor for FailureCauseColumn.
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.views.ListViewColumn
LIST
 
Constructor Summary
FailureCauseColumn(boolean showText)
          The standard data-bound constructor.
 
Method Summary
 String getBadgeImageUrl(hudson.model.Job job)
           
 List<FoundFailureCause> getFoundFailureCauses(hudson.model.Job job)
           
 boolean isShowText()
           
 
Methods inherited from class hudson.views.ListViewColumn
all, createDefaultInitialColumnList, getColumnCaption, getDescriptor, shownByDefault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FailureCauseColumn

@DataBoundConstructor
public FailureCauseColumn(boolean showText)
The standard data-bound constructor.

Parameters:
showText - if true, will display the text of the failure cause next to the icon
Method Detail

getBadgeImageUrl

public String getBadgeImageUrl(hudson.model.Job job)
Parameters:
job - The given job we want the badge image url for
Returns:
the image url
See Also:
FailureCauseBuildAction.getBadgeImageUrl()

getFoundFailureCauses

public List<FoundFailureCause> getFoundFailureCauses(hudson.model.Job job)
Parameters:
job - the job we want to retrieve actions for
Returns:
the list of found failure causes
See Also:
FailureCauseBuildAction.getFoundFailureCauses()

isShowText

public boolean isShowText()
Returns:
true if text should be displayed next to the failure cause icon


Copyright © 2004-2014. All Rights Reserved.