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
 java.util.Collection<ArtifactLink> getArtifactLinksThatExist()
          This returns live view of the getArtifactLinks()
 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()
           
 PlanResultKey getPlanResultKey()
          Gets the PlanResultKey for this BuildResultsSummary
 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 getShortReasonSummary()
           
 com.opensymphony.xwork.TextProvider getTextProvider()
           
protected  TriggerReasonManager getTriggerReasonManager()
           
 java.lang.String getVcsRevisionKey()
          The string representing the revision when the build was run.
 boolean hasChanges()
          Whether a build had changes or not
 boolean isBuiltToday()
           
 boolean isFailed()
          Shortcut method to see if ResultStatisticsProvider.getBuildState() is BuildState.FAILED
 boolean isNotBuilt()
          Shortcut method to see if ResultStatisticsProvider.getBuildState() is BuildState.NOT_BUILT
 boolean isPending()
          Shortcut method to see if ResultStatisticsProvider.getBuildState() is BuildState.PENDING
 boolean isSuccessful()
          Shortcut method to see if ResultStatisticsProvider.getBuildState() is BuildState.SUCCESS
 void setTextProvider(com.opensymphony.xwork.TextProvider textProvider)
           
 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
getArtifactLinks, getBuildAgentId, getBuildCompletedDate, getBuildKey, getComments, getCustomBuildData, getDeltaState, getDuration, getFailedTestCount, getFilteredTestResults, getId, getJiraIssueKeys, getJiraIssues, getLabellings, getLabelNames, getQueueDuration, getQueueTime, getSuccessfulTestCount, getTestResultsSummary, getTestSummary, getTimeToFix, getTriggerReason, getUniqueAuthors, getVcsUpdateDuration, getVcsUpdateTime, hasComments, resetTestClassResults, setTestResultsSummary
 
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

getPlanResultKey

@NotNull
public PlanResultKey getPlanResultKey()
Description copied from interface: BuildResultsSummary
Gets the PlanResultKey for this BuildResultsSummary

Specified by:
getPlanResultKey in interface BuildResultsSummary
Returns:
planResultKey

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

getShortReasonSummary

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

getReasonSummary

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

getLongReasonSummary

public java.lang.String getLongReasonSummary()

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:

isPending

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

Specified by:
isPending in interface BuildResultsSummary
Returns:

isNotBuilt

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

Specified by:
isNotBuilt 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:

hasChanges

public boolean hasChanges()
Description copied from interface: BuildResultsSummary
Whether a build had changes or not

Specified by:
hasChanges in interface BuildResultsSummary
Returns:

getArtifactLinksThatExist

public java.util.Collection<ArtifactLink> getArtifactLinksThatExist()
This returns live view of the getArtifactLinks()

Specified by:
getArtifactLinksThatExist 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)

getTextProvider

public com.opensymphony.xwork.TextProvider getTextProvider()

setTextProvider

public void setTextProvider(com.opensymphony.xwork.TextProvider textProvider)


Copyright © 2010 Atlassian. All Rights Reserved.