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

java.lang.Object
  extended by com.sonyericsson.jenkins.plugins.bfa.model.FailureCauseBuildAction
All Implemented Interfaces:
hudson.model.Action, hudson.model.BuildBadgeAction, hudson.model.ModelObject

@ExportedBean
public class FailureCauseBuildAction
extends Object
implements hudson.model.BuildBadgeAction

The action to show the FailureCause to the user..

Author:
Tomas Westling <thomas.westling@sonyericsson.com>

Field Summary
static String URL_NAME
          The url of this action.
 
Constructor Summary
FailureCauseBuildAction(List<FoundFailureCause> foundFailureCauses)
          Standard constructor.
 
Method Summary
 void doIndex(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse resp)
          Used for the link to the failure cause management page.
 String getBadgeImageUrl()
          Gets the image url for the badge page.
 hudson.model.AbstractBuild getBuild()
          Getter for the build.
 String getDisplayName()
           
 FoundFailureCause getDynamic(String token, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse resp)
          Used when we are directed to a FoundFailureCause beneath the build action.
 FailureCauseDisplayData getFailureCauseDisplayData()
          Getter for the FailureCauseDisplayData.
 List<FoundFailureCause> getFoundFailureCauses()
          Getter for the FoundFailureCauses.
 String getIconFileName()
           
 String getImageUrl()
          Gets the image url for the summary page.
 PluginImpl getPluginImpl()
          Convenience method for jelly access to PluginImpl.
 String getUrlName()
           
 Object readResolve()
          Called after deserialization.
 void setBuild(hudson.model.AbstractBuild build)
          Setter for the build triggering this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

URL_NAME

public static final String URL_NAME
The url of this action.

See Also:
Constant Field Values
Constructor Detail

FailureCauseBuildAction

public FailureCauseBuildAction(List<FoundFailureCause> foundFailureCauses)
Standard constructor.

Parameters:
foundFailureCauses - the FoundFailureCauses.
Method Detail

getIconFileName

public String getIconFileName()
Specified by:
getIconFileName in interface hudson.model.Action

getDisplayName

public String getDisplayName()
Specified by:
getDisplayName in interface hudson.model.Action
Specified by:
getDisplayName in interface hudson.model.ModelObject

getUrlName

public String getUrlName()
Specified by:
getUrlName in interface hudson.model.Action

getFoundFailureCauses

@Exported
public List<FoundFailureCause> getFoundFailureCauses()
Getter for the FoundFailureCauses.

Returns:
the FoundFailureCauses.

getImageUrl

public String getImageUrl()
Gets the image url for the summary page.

Returns:
the image url.

getBadgeImageUrl

public String getBadgeImageUrl()
Gets the image url for the badge page.

Returns:
the image url.

getPluginImpl

public PluginImpl getPluginImpl()
Convenience method for jelly access to PluginImpl.

Returns:
the PluginImpl instance.

readResolve

public Object readResolve()
Called after deserialization. Converts failureCauses if existing.

Returns:
this.

getDynamic

public FoundFailureCause getDynamic(String token,
                                    org.kohsuke.stapler.StaplerRequest req,
                                    org.kohsuke.stapler.StaplerResponse resp)
Used when we are directed to a FoundFailureCause beneath the build action.

Parameters:
token - the FoundFailureCause number of this build action we are trying to navigate to.
req - the stapler request.
resp - the stapler response.
Returns:
the correct FoundFailureCause.

doIndex

public void doIndex(org.kohsuke.stapler.StaplerRequest req,
                    org.kohsuke.stapler.StaplerResponse resp)
             throws IOException
Used for the link to the failure cause management page.

Parameters:
req - the stapler request.
resp - the stapler response
Throws:
IOException - if so.

setBuild

public void setBuild(hudson.model.AbstractBuild build)
Setter for the build triggering this object.

Parameters:
build - - the build corresponding to this action

getBuild

public hudson.model.AbstractBuild getBuild()
Getter for the build.

Returns:
the build corresponding to this action

getFailureCauseDisplayData

@Exported
public FailureCauseDisplayData getFailureCauseDisplayData()
Getter for the FailureCauseDisplayData.

Returns:
the FailureCauseDisplayData.


Copyright © 2004-2014. All Rights Reserved.