com.atlassian.bamboo.resultsummary
Class AbstractBuildResultsSummary

java.lang.Object
  extended by com.atlassian.core.bean.EntityObject
      extended by com.atlassian.bamboo.core.BambooEntityObject
          extended by com.atlassian.bamboo.resultsummary.AbstractBuildResultsSummary
All Implemented Interfaces:
BambooObject, BuildResultsSummary, ResultStatisticsProvider, java.lang.Cloneable, java.lang.Comparable<BuildResultsSummary>
Direct Known Subclasses:
BuildResultsSummaryDocument, BuildResultsSummaryImpl

public abstract class AbstractBuildResultsSummary
extends BambooEntityObject
implements BuildResultsSummary


Field Summary
 
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject
id
 
Constructor Summary
AbstractBuildResultsSummary()
           
 
Method Summary
protected  java.lang.String createChangedByAuthors(java.util.Set updators)
           
 java.util.Collection<ArtifactLink> getAllArtifactLinks()
          Returns all artifacts.
 java.util.Collection<ArtifactLink> getArtifactLinks()
          Returns only artifacts that exists
 java.lang.String getBuildResultKey()
          A full build result key e.g.
 java.lang.String getBuildTime()
          When did the build start?
 java.lang.String getDurationDescription()
          Returns the duration in a "pretty" format.
 java.util.Set<LinkedJiraIssue> getFixingJiraIssues()
          Return JIRA issues that this build result summary fixes
 java.lang.String getLongReasonSummary()
           
 java.lang.String getReasonSummary()
           
 java.util.Set<LinkedJiraIssue> getRelatedJiraIssues()
          Returns JIRA issues that are related to this build result.
 java.lang.String getRelativeBuildDate()
           
 java.lang.String getRelativeBuildDate(java.util.Date comparedTo)
          Provides a relative build date, such as 2 hours ago.
 java.lang.String getTestSummary()
           
protected  TriggerReasonManager getTriggerReasonManager()
           
 java.lang.String getVcsRevisionKey()
          The string representing the revision when the build was run.
 boolean isBuiltToday()
           
 boolean isFailed()
          Shortcut method to see if ResultStatisticsProvider.getBuildState() is BuildState.FAILED
 boolean isSuccessful()
          Shortcut method to see if ResultStatisticsProvider.getBuildState() is BuildState.SUCCESS
 void setTriggerReasonManager(TriggerReasonManager triggerReasonManager)
           
 void setVcsRevisionKey(java.lang.String vcsRevisionKey)
           
 
Methods inherited from class com.atlassian.bamboo.core.BambooEntityObject
getId, setId
 
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, equals, getCreationDate, getCurrentDate, getLastModificationDate, hashCode, setClock, setCreationDate, setLastModificationDate
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.resultsummary.BuildResultsSummary
getBuildAgentId, getBuildCompletedDate, getBuildKey, getChangedByAuthors, getComments, getCustomBuildData, getDeltaState, getDuration, getFailedTestCount, getId, getJiraIssueKeys, getJiraIssues, getLabellings, getLabelNames, getQueueDuration, getQueueTime, getSuccessfulTestCount, getTimeToFix, getTriggerReason, getUniqueAuthors, getVcsUpdateDuration, getVcsUpdateTime
 
Methods inherited from interface com.atlassian.bamboo.resultsummary.ResultStatisticsProvider
getBuildDate, getBuildNumber, getBuildState, getDurationInSeconds
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

AbstractBuildResultsSummary

public AbstractBuildResultsSummary()
Method Detail

getBuildResultKey

@NotNull
public java.lang.String getBuildResultKey()
Description copied from interface: BuildResultsSummary
A full build result key e.g. BAM-MAIN-100

Specified by:
getBuildResultKey in interface BuildResultsSummary
Returns:
String

getVcsRevisionKey

@Nullable
public java.lang.String getVcsRevisionKey()
Description copied from interface: BuildResultsSummary
The string representing the revision when the build was run. This is Repository specific, so may not correspond and thus be parseable by the current repository configuration. May return null since this data is not always available

Specified by:
getVcsRevisionKey in interface BuildResultsSummary
Returns:

setVcsRevisionKey

public void setVcsRevisionKey(java.lang.String vcsRevisionKey)
Specified by:
setVcsRevisionKey in interface BuildResultsSummary

getDurationDescription

@NotNull
public java.lang.String getDurationDescription()
Description copied from interface: BuildResultsSummary
Returns the duration in a "pretty" format. Handles when duration is not known

Specified by:
getDurationDescription in interface BuildResultsSummary
Returns:

getRelativeBuildDate

public java.lang.String getRelativeBuildDate()
Specified by:
getRelativeBuildDate in interface BuildResultsSummary

isBuiltToday

public boolean isBuiltToday()

getRelativeBuildDate

public java.lang.String getRelativeBuildDate(java.util.Date comparedTo)
Provides a relative build date, such as 2 hours ago.

Specified by:
getRelativeBuildDate in interface BuildResultsSummary
Returns:
The relative date

createChangedByAuthors

protected java.lang.String createChangedByAuthors(java.util.Set updators)

getReasonSummary

public java.lang.String getReasonSummary()
Specified by:
getReasonSummary in interface BuildResultsSummary

getLongReasonSummary

public java.lang.String getLongReasonSummary()

getTestSummary

public java.lang.String getTestSummary()
Specified by:
getTestSummary in interface BuildResultsSummary

isFailed

public boolean isFailed()
Description copied from interface: BuildResultsSummary
Shortcut method to see if ResultStatisticsProvider.getBuildState() is BuildState.FAILED

Specified by:
isFailed in interface BuildResultsSummary
Returns:

isSuccessful

public boolean isSuccessful()
Description copied from interface: BuildResultsSummary
Shortcut method to see if ResultStatisticsProvider.getBuildState() is BuildState.SUCCESS

Specified by:
isSuccessful in interface BuildResultsSummary
Returns:

getFixingJiraIssues

@NotNull
public java.util.Set<LinkedJiraIssue> getFixingJiraIssues()
Description copied from interface: BuildResultsSummary
Return JIRA issues that this build result summary fixes

Specified by:
getFixingJiraIssues in interface BuildResultsSummary
Returns:

getRelatedJiraIssues

@NotNull
public java.util.Set<LinkedJiraIssue> getRelatedJiraIssues()
Description copied from interface: BuildResultsSummary
Returns JIRA issues that are related to this build result. Does not include fixing issues

Specified by:
getRelatedJiraIssues in interface BuildResultsSummary
Returns:

getAllArtifactLinks

@NotNull
public java.util.Collection<ArtifactLink> getAllArtifactLinks()
Description copied from interface: BuildResultsSummary
Returns all artifacts. Even if the files don't exist

Specified by:
getAllArtifactLinks in interface BuildResultsSummary
Returns:

getArtifactLinks

public java.util.Collection<ArtifactLink> getArtifactLinks()
Description copied from interface: BuildResultsSummary
Returns only artifacts that exists

Specified by:
getArtifactLinks in interface BuildResultsSummary
Returns:

getBuildTime

public java.lang.String getBuildTime()
When did the build start?

Specified by:
getBuildTime in interface BuildResultsSummary
Returns:
The date and time of the build.

getTriggerReasonManager

protected TriggerReasonManager getTriggerReasonManager()

setTriggerReasonManager

public void setTriggerReasonManager(TriggerReasonManager triggerReasonManager)


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.