Class FailureCauseDisplayData
- java.lang.Object
-
- com.sonyericsson.jenkins.plugins.bfa.model.FailureCauseDisplayData
-
@ExportedBean public class FailureCauseDisplayData extends Object
A class containing data to be displayed when presenting FailureCausesBuildAction summary.- Author:
- Jan-Olof Sivtoft
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FailureCauseDisplayData.Links
A class containing links to be displayed for the project and the build.
-
Constructor Summary
Constructors Constructor Description FailureCauseDisplayData()
Use this constructor when the build is unknown.FailureCauseDisplayData(Run build)
Deprecated.FailureCauseDisplayData(String parentUrl, String parentName, String buildUrl, String buildName)
Use this constructor when the build is known.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDownstreamFailureCause(FailureCauseDisplayData failureCauseDisplayData)
Add a downstream builds display data.List<FailureCauseDisplayData>
getDownstreamFailureCauses()
Getter for getting a list of downstream display data.List<FoundFailureCause>
getFoundFailureCauses()
Getter for FoundFailureCauses.FailureCauseDisplayData.Links
getLinks()
Getter for project and build links.boolean
isEmpty()
Indicates whether any failure causes where found (directly or downstream).void
setFoundFailureCauses(List<FoundFailureCause> foundFailureCauses)
Set the FoundFailureCauses for corresponding action.
-
-
-
Constructor Detail
-
FailureCauseDisplayData
public FailureCauseDisplayData()
Use this constructor when the build is unknown.
-
FailureCauseDisplayData
@Deprecated public FailureCauseDisplayData(Run build)
Deprecated.Use this constructor when the build is known.- Parameters:
build
- corresponding build.
-
FailureCauseDisplayData
public FailureCauseDisplayData(String parentUrl, String parentName, String buildUrl, String buildName)
Use this constructor when the build is known.- Parameters:
parentUrl
- url of the parent job.parentName
- name of the parent job.buildUrl
- url of the build.buildName
- name of the build.
-
-
Method Detail
-
setFoundFailureCauses
public final void setFoundFailureCauses(List<FoundFailureCause> foundFailureCauses)
Set the FoundFailureCauses for corresponding action.- Parameters:
foundFailureCauses
- a list of FoundFailureCauses
-
getFoundFailureCauses
public final List<FoundFailureCause> getFoundFailureCauses()
Getter for FoundFailureCauses.- Returns:
- a list of FoundFailureCauses
-
addDownstreamFailureCause
public final void addDownstreamFailureCause(FailureCauseDisplayData failureCauseDisplayData)
Add a downstream builds display data.- Parameters:
failureCauseDisplayData
- object containing a downstream display data
-
getDownstreamFailureCauses
public final List<FailureCauseDisplayData> getDownstreamFailureCauses()
Getter for getting a list of downstream display data.- Returns:
- a list of all downstream display data
-
getLinks
public final FailureCauseDisplayData.Links getLinks()
Getter for project and build links.- Returns:
- an object containing link info
-
isEmpty
public boolean isEmpty()
Indicates whether any failure causes where found (directly or downstream).- Returns:
- true iff found failures and downstream failures lists are both empty
-
-