com.atlassian.bamboo.resultsummary
Class AbstractResultsSummary

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

public abstract class AbstractResultsSummary
extends BambooEntityObject
implements MutableBuildKeyResultsSummary


Field Summary
protected  BuildState buildState
           
protected  LifeCycleState lifeCycleState
           
 
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject
id
 
Constructor Summary
AbstractResultsSummary()
           
 
Method Summary
 int compareTo(ResultsSummary resultsSummary)
           
 boolean equals(java.lang.Object object)
           
 java.util.Collection<ArtifactLink> getArtifactLinks()
          Returns all artifacts associated with this build.
 java.util.Collection<ArtifactLink> getArtifactLinksThatExist()
          This returns live view of the getArtifactLinks()
 java.lang.Long getBuildAgentId()
           
 java.util.Date getBuildCancelledDate()
          When the build was cancelled
 java.util.Date getBuildCompletedDate()
          When the build finished
 java.util.Date getBuildDate()
          Date when build was passed to execution.
 java.lang.String getBuildKey()
          Full key of the plan.
 int getBuildNumber()
           
 java.lang.String getBuildResultKey()
          A full build result key e.g.
 BuildState getBuildState()
           
 java.lang.String getBuildTime()
          When did the build start?
 java.lang.String getChangesListSummary()
           
 java.util.List<Comment> getComments()
          Gets the associated user comments for the build
 java.util.List<Comment> getCommentsToDisplay()
           
 java.util.Set<Commit> getCommits()
          Any Commits related to this BuildResultsSummary Note that if you fetched this result from Lucene that accessing this property will cause a database hit
 java.util.Map<java.lang.String,java.lang.String> getCustomBuildData()
          Custom data map to store random metadata about the build
 DeltaState getDeltaState()
          Gets the DeltaState of the summary.
 java.lang.String getDiscriminator()
           
 long getDuration()
          Duration of the build in millisecods
 java.lang.String getDurationDescription()
          Returns the duration in a "pretty" format.
 double getDurationInSeconds()
           
 long getFailedTestCount()
          Deprecated. 
 java.util.Set<LinkedJiraIssue> getFixingJiraIssues()
          Return JIRA issues that this build result summary fixes
 java.util.Set<java.lang.String> getJiraIssueKeys()
          Returns all the JIRA issue keys linked to this build result
 java.util.Set<LinkedJiraIssue> getJiraIssues()
          Returns all the JIRA issues linked to this build result
 java.util.List<Labelling> getLabellings()
          Tags / labels assocaited with the build
 java.util.List<java.lang.String> getLabelNames()
          A shortcust method to get all of the label names from the labbellings
 LifeCycleState getLifeCycleState()
           
 java.lang.String getLongReasonSummary()
           
 java.util.List<VariableSubstitution> getManuallyOverriddenVariables()
          Returns list of variables manually overridden variables
 Plan getPlan()
          Gets the Plan that this result belongs directly belongs to
 java.util.Date getPlanCompletedDate()
           
 PlanResultKey getPlanResultKey()
          Gets the PlanResultKey for this BuildResultsSummary
 long getProcessingDuration()
          Duration of actual build processing in miliseconds
 java.util.Date getQueueTime()
          Date when build was queued.
 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 getRelativeBuildStartedDate()
          Returns the relative started time (duration) compared to current date
 java.lang.String getRelativeBuildStartedDate(java.util.Date comparedTo)
          Provides a relative build started date, such as 2 hours ago.
 java.lang.String getRelativeQueueDate()
           
 java.lang.String getRelativeQueueDate(java.util.Date comparedTo)
          Provides a relative queue date, such as 2 hours ago.
 int getRestartCount()
          Return the number of build restart attempts
 java.lang.String getShortReasonSummary()
           
 int getSkippedCommitsCount()
          The number of commits that were included in this summary, but their details were skipped (because there was too many commits to keep them all in this summary)
 java.util.Date getStatDate()
          When the build was executed.
 java.util.List<ConsumedSubscription> getSubscriptions()
          Returns list of consumed artifact dependencies ConsumedSubscription
 java.util.List<VariableSubstitution> getSubstitutedVariables()
          Returns list of variables substituted during build execution
 long getSuccessfulTestCount()
          Deprecated. 
 java.util.List<TestClassResult> getTestClassResults()
           
 TestResultsSummary getTestResultsSummary()
           
 java.lang.String getTestSummary()
           
 com.opensymphony.xwork.TextProvider getTextProvider()
           
 java.lang.Long getTimeToFix()
          A stored version of how long (milli seconds) it took for this build to fix a failure.
protected  TriggerManager getTriggerManager()
           
 TriggerReason getTriggerReason()
          Why the build was was triggered
 java.lang.String getTriggerReasonKey()
           
 java.util.Set getUniqueAuthors()
          A shortcut method to get the unique set of authors contributing to this build.
 java.util.List<VariableContextSnapshot> getVariableContextLogs()
           
 java.lang.String getVcsRevisionKey()
          The string representing the revision when the build was run.
 boolean hasChanges()
          Whether a build had changes or not
 boolean hasComments()
          Checks if the result has any user comments for the build
 boolean hasCommentsToDisplay()
           
 int hashCode()
           
 int incrementRestartCount()
          Increments number of build restarts and returns the new value
 boolean isActive()
          Shortcut method to see if ResultsSummary.getLifeCycleState() is LifeCycleState.PENDING or LifeCycleState.QUEUED or LifeCycleState.IN_PROGRESS
 boolean isFailed()
          Shortcut method to see if ResultStatisticsProvider.getBuildState() is BuildState.FAILED
 boolean isFinalized()
           
 boolean isFinished()
          Shortcut method to see if ResultsSummary.getLifeCycleState() is LifeCycleState.FINISHED
 boolean isInProgress()
          Shortcut method to see if ResultsSummary.getLifeCycleState() is LifeCycleState.IN_PROGRESS
 boolean isNotBuilt()
          Shortcut method to see if ResultsSummary.getLifeCycleState() is LifeCycleState.NOT_BUILT
 boolean isPending()
          Shortcut method to see if ResultsSummary.getLifeCycleState() is LifeCycleState.PENDING
 boolean isQueued()
          Shortcut method to see if ResultsSummary.getLifeCycleState() is LifeCycleState.QUEUED
 boolean isSuccessful()
          Shortcut method to see if ResultStatisticsProvider.getBuildState() is BuildState.SUCCESS
 boolean isWaiting()
          Shortcut method to see if ResultsSummary.getLifeCycleState() is LifeCycleState.PENDING or LifeCycleState.QUEUED
 void resetTestClassResults(java.util.List<TestClassResult> testClassResults)
          Overrides all current testClassResults with the new ones
 void setArtifactLinks(java.util.List<ArtifactLink> artifactLinks)
           
 void setBuildAgentId(java.lang.Long buildAgentId)
           
 void setBuildCancelledDate(java.util.Date buildCancelledDate)
           
 void setBuildCompletedDate(java.util.Date buildCompletedDate)
           
 void setBuildDate(java.util.Date buildDate)
           
 void setBuildKey(java.lang.String buildKey)
           
 void setBuildNumber(int buildNumber)
           
 void setBuildState(BuildState buildState)
           
 void setComments(java.util.List<Comment> comments)
           
 void setCommits(java.util.Set<Commit> commits)
           
 void setCustomBuildData(java.util.Map<java.lang.String,java.lang.String> customBuildData)
           
 void setDeltaState(DeltaState deltaState)
          Sets the DeltaState for the summary.
 void setDiscriminator(java.lang.String discriminator)
           
 void setDuration(long duration)
           
 void setJiraIssues(java.util.Set jiraIssues)
           
 void setLabellings(java.util.List<Labelling> labellings)
           
 void setLifeCycleState(LifeCycleState lifeCycleState)
           
 void setPlanCompletedDate(java.util.Date completionDate)
          Sets the time when build finished.
 void setProcessingDuration(long processingDuration)
           
 void setQueueTime(java.util.Date queueTime)
           
 void setRestartCount(int restartCount)
           
 void setSkippedCommitsCount(int skippedCommitsCount)
           
 void setSubscriptions(java.util.List<ConsumedSubscription> subscriptions)
           
 void setSubstitutedVariables(java.util.List<VariableSubstitution> substitutedVariables)
           
 void setTestResultsSummary(TestResultsSummary testResultsSummary)
          Set the test summary information from this build
 void setTimeToFix(java.lang.Long timeToFix)
          A stored version of how long (milli seconds) it took for this build to fix a failure.
 void setTriggerReason(TriggerReason triggerReason)
           
 void setTriggerReasonKey(java.lang.String triggerReasonKey)
           
 void setVariableContextLogs(java.util.List<VariableContextSnapshot> variableContextLogs)
           
 void setVcsRevisionKey(java.lang.String vcsRevisionKey)
           
 void updateLifeCycleState(LifeCycleState lifeCycleState, BuildState buildState)
          Update lifeCycleState and buildState in one go.
 
Methods inherited from class com.atlassian.bamboo.core.BambooEntityObject
getId, setId
 
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, getCreationDate, getCurrentDate, getLastModificationDate, 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.core.BambooObject
getId, setId
 

Field Detail

buildState

protected BuildState buildState

lifeCycleState

protected LifeCycleState lifeCycleState
Constructor Detail

AbstractResultsSummary

public AbstractResultsSummary()
Method Detail

getPlanResultKey

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

Specified by:
getPlanResultKey in interface ResultsSummary
Returns:
planResultKey

getPlan

@NotNull
public Plan getPlan()
Description copied from interface: ResultsSummary
Gets the Plan that this result belongs directly belongs to

Specified by:
getPlan in interface ResultsSummary
Returns:
the owning plan for the result

getBuildResultKey

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

Specified by:
getBuildResultKey in interface ResultsSummary
Returns:
String

getVcsRevisionKey

@Nullable
public java.lang.String getVcsRevisionKey()
Description copied from interface: ResultsSummary
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 ResultsSummary
Returns:

setVcsRevisionKey

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

getDurationDescription

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

Specified by:
getDurationDescription in interface ResultsSummary
Returns:

getRelativeBuildDate

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

getRelativeQueueDate

public java.lang.String getRelativeQueueDate()
Specified by:
getRelativeQueueDate in interface ResultsSummary

getRelativeBuildStartedDate

public java.lang.String getRelativeBuildStartedDate()
Description copied from interface: ResultsSummary
Returns the relative started time (duration) compared to current date

Specified by:
getRelativeBuildStartedDate in interface ResultsSummary
Returns:
relative duration

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 ResultsSummary
Returns:
The relative date

getRelativeQueueDate

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

Specified by:
getRelativeQueueDate in interface ResultsSummary
Returns:
The relative date

getRelativeBuildStartedDate

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

Specified by:
getRelativeBuildStartedDate in interface ResultsSummary
Returns:
The relative date

getShortReasonSummary

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

getReasonSummary

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

getLongReasonSummary

public java.lang.String getLongReasonSummary()

isFailed

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

Specified by:
isFailed in interface ResultsSummary
Returns:

isSuccessful

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

Specified by:
isSuccessful in interface ResultsSummary
Returns:

isPending

public boolean isPending()
Description copied from interface: ResultsSummary
Shortcut method to see if ResultsSummary.getLifeCycleState() is LifeCycleState.PENDING

Specified by:
isPending in interface ResultsSummary
Returns:

isQueued

public boolean isQueued()
Description copied from interface: ResultsSummary
Shortcut method to see if ResultsSummary.getLifeCycleState() is LifeCycleState.QUEUED

Specified by:
isQueued in interface ResultsSummary
Returns:

isInProgress

public boolean isInProgress()
Description copied from interface: ResultsSummary
Shortcut method to see if ResultsSummary.getLifeCycleState() is LifeCycleState.IN_PROGRESS

Specified by:
isInProgress in interface ResultsSummary
Returns:

isNotBuilt

public boolean isNotBuilt()
Description copied from interface: ResultsSummary
Shortcut method to see if ResultsSummary.getLifeCycleState() is LifeCycleState.NOT_BUILT

Specified by:
isNotBuilt in interface ResultsSummary
Returns:

isFinalized

public boolean isFinalized()

isFinished

public boolean isFinished()
Description copied from interface: ResultsSummary
Shortcut method to see if ResultsSummary.getLifeCycleState() is LifeCycleState.FINISHED

Specified by:
isFinished in interface ResultsSummary
Returns:

isWaiting

public boolean isWaiting()
Description copied from interface: ResultsSummary
Shortcut method to see if ResultsSummary.getLifeCycleState() is LifeCycleState.PENDING or LifeCycleState.QUEUED

Specified by:
isWaiting in interface ResultsSummary
Returns:

isActive

public boolean isActive()
Description copied from interface: ResultsSummary
Shortcut method to see if ResultsSummary.getLifeCycleState() is LifeCycleState.PENDING or LifeCycleState.QUEUED or LifeCycleState.IN_PROGRESS

Specified by:
isActive in interface ResultsSummary
Returns:

getFixingJiraIssues

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

Specified by:
getFixingJiraIssues in interface ResultsSummary
Returns:

getRelatedJiraIssues

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

Specified by:
getRelatedJiraIssues in interface ResultsSummary
Returns:

hasChanges

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

Specified by:
hasChanges in interface ResultsSummary
Returns:

getBuildKey

@NotNull
public java.lang.String getBuildKey()
Description copied from interface: ResultsSummary
Full key of the plan. e.g BAM-MAIN

Specified by:
getBuildKey in interface ResultsSummary
Returns:

setBuildKey

public void setBuildKey(java.lang.String buildKey)
Specified by:
setBuildKey in interface MutableBuildKeyResultsSummary

getBuildNumber

public int getBuildNumber()
Specified by:
getBuildNumber in interface ResultStatisticsProvider

setBuildNumber

public void setBuildNumber(int buildNumber)

getBuildDate

public java.util.Date getBuildDate()
Date when build was passed to execution. For chain result this date is set when the first job is started.

Specified by:
getBuildDate in interface ResultStatisticsProvider
Returns:

setBuildDate

public void setBuildDate(java.util.Date buildDate)
Specified by:
setBuildDate in interface ResultsSummary

getStatDate

public java.util.Date getStatDate()
Description copied from interface: ResultStatisticsProvider
When the build was executed. If build was not completed, queued time is provided instead.

Specified by:
getStatDate in interface ResultStatisticsProvider
Returns:
date of build execution or queued time if build was not executed or state is unknown

getQueueTime

public java.util.Date getQueueTime()
Date when build was queued. For chain result this date is set when the whole chain is created - as chain is created in QUEUED state.

Specified by:
getQueueTime in interface ResultsSummary
Returns:

setQueueTime

public void setQueueTime(java.util.Date queueTime)
Specified by:
setQueueTime in interface ResultsSummary

getBuildCompletedDate

public java.util.Date getBuildCompletedDate()
Description copied from interface: ResultsSummary
When the build finished

Specified by:
getBuildCompletedDate in interface ResultsSummary
Returns:

setBuildCompletedDate

public void setBuildCompletedDate(java.util.Date buildCompletedDate)

getDeltaState

public DeltaState getDeltaState()
Description copied from interface: ResultsSummary
Gets the DeltaState of the summary. It can be a build that fixes, breaks, failing, successfull. Provides a status relative to the previous summary.

Specified by:
getDeltaState in interface ResultsSummary
Returns:

setDeltaState

public void setDeltaState(DeltaState deltaState)
Description copied from interface: ResultsSummary
Sets the DeltaState for the summary. Provides a status relative to the previous summary.

Specified by:
setDeltaState in interface ResultsSummary
Parameters:
deltaState - - the relative status for this summary

getJiraIssueKeys

public java.util.Set<java.lang.String> getJiraIssueKeys()
Description copied from interface: ResultsSummary
Returns all the JIRA issue keys linked to this build result

Specified by:
getJiraIssueKeys in interface ResultsSummary
Returns:

getJiraIssues

@NotNull
public java.util.Set<LinkedJiraIssue> getJiraIssues()
Description copied from interface: ResultsSummary
Returns all the JIRA issues linked to this build result

Specified by:
getJiraIssues in interface ResultsSummary
Returns:

setJiraIssues

public void setJiraIssues(java.util.Set jiraIssues)

getCustomBuildData

@NotNull
public java.util.Map<java.lang.String,java.lang.String> getCustomBuildData()
Description copied from interface: ResultsSummary
Custom data map to store random metadata about the build

Specified by:
getCustomBuildData in interface ResultsSummary
Returns:

setCustomBuildData

public void setCustomBuildData(java.util.Map<java.lang.String,java.lang.String> customBuildData)

getTimeToFix

public java.lang.Long getTimeToFix()
Description copied from interface: ResultsSummary
A stored version of how long (milli seconds) it took for this build to fix a failure.

Specified by:
getTimeToFix in interface ResultsSummary
Returns:
Null if not a fixing build

setTimeToFix

public void setTimeToFix(java.lang.Long timeToFix)
Description copied from interface: ResultsSummary
A stored version of how long (milli seconds) it took for this build to fix a failure.

Specified by:
setTimeToFix in interface ResultsSummary
Parameters:
timeToFix - how long (milli seconds) it took for this build to fix a failure.

getLabellings

public java.util.List<Labelling> getLabellings()
Description copied from interface: ResultsSummary
Tags / labels assocaited with the build

Specified by:
getLabellings in interface ResultsSummary
Returns:

setLabellings

public void setLabellings(java.util.List<Labelling> labellings)

getLabelNames

@NotNull
public java.util.List<java.lang.String> getLabelNames()
Description copied from interface: ResultsSummary
A shortcust method to get all of the label names from the labbellings

Specified by:
getLabelNames in interface ResultsSummary
Returns:

setComments

public void setComments(java.util.List<Comment> comments)

getArtifactLinks

@NotNull
public java.util.Collection<ArtifactLink> getArtifactLinks()
Description copied from interface: ResultsSummary
Returns all artifacts associated with this build. Even if the files don't exist

Specified by:
getArtifactLinks in interface ResultsSummary
Returns:

setArtifactLinks

public void setArtifactLinks(java.util.List<ArtifactLink> artifactLinks)

getSubscriptions

public java.util.List<ConsumedSubscription> getSubscriptions()
Description copied from interface: ResultsSummary
Returns list of consumed artifact dependencies ConsumedSubscription

Specified by:
getSubscriptions in interface ResultsSummary
Returns:

setSubscriptions

public void setSubscriptions(java.util.List<ConsumedSubscription> subscriptions)

getUniqueAuthors

public java.util.Set getUniqueAuthors()
Description copied from interface: ResultsSummary
A shortcut method to get the unique set of authors contributing to this build.

Specified by:
getUniqueAuthors in interface ResultsSummary
Returns:
Set of Authors

getTriggerReasonKey

public java.lang.String getTriggerReasonKey()

setTriggerReasonKey

public void setTriggerReasonKey(java.lang.String triggerReasonKey)

getTriggerReason

@NotNull
public TriggerReason getTriggerReason()
Description copied from interface: ResultsSummary
Why the build was was triggered

Specified by:
getTriggerReason in interface ResultsSummary
Returns:

setTriggerReason

public void setTriggerReason(TriggerReason triggerReason)
Specified by:
setTriggerReason in interface ResultsSummary

getBuildAgentId

public java.lang.Long getBuildAgentId()

setBuildAgentId

public void setBuildAgentId(java.lang.Long buildAgentId)

getDurationInSeconds

public double getDurationInSeconds()
Specified by:
getDurationInSeconds in interface ResultStatisticsProvider

getArtifactLinksThatExist

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

Specified by:
getArtifactLinksThatExist in interface ResultsSummary
Returns:

getDuration

public long getDuration()
Description copied from interface: ResultsSummary
Duration of the build in millisecods

Specified by:
getDuration in interface ResultsSummary
Returns:

setDuration

public void setDuration(long duration)
Specified by:
setDuration in interface ResultsSummary
Parameters:
duration - duration of the build in milliseconds

getProcessingDuration

public long getProcessingDuration()
Description copied from interface: ResultsSummary
Duration of actual build processing in miliseconds

Specified by:
getProcessingDuration in interface ResultsSummary
Returns:

setProcessingDuration

public void setProcessingDuration(long processingDuration)
Specified by:
setProcessingDuration in interface ResultsSummary

getPlanCompletedDate

@Nullable
public java.util.Date getPlanCompletedDate()
Specified by:
getPlanCompletedDate in interface ResultsSummary
Returns:
time when build finished

setPlanCompletedDate

public void setPlanCompletedDate(@NotNull
                                 java.util.Date completionDate)
Description copied from interface: ResultsSummary
Sets the time when build finished.

Specified by:
setPlanCompletedDate in interface ResultsSummary

getBuildCancelledDate

@Nullable
public java.util.Date getBuildCancelledDate()
Description copied from interface: ResultsSummary
When the build was cancelled

Specified by:
getBuildCancelledDate in interface ResultsSummary
Returns:
date of build cancellation or null if build was not cancelled

setBuildCancelledDate

public void setBuildCancelledDate(java.util.Date buildCancelledDate)
Specified by:
setBuildCancelledDate in interface ResultsSummary

getBuildTime

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

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

getCommits

@NotNull
public java.util.Set<Commit> getCommits()
Description copied from interface: ResultsSummary
Any Commits related to this BuildResultsSummary Note that if you fetched this result from Lucene that accessing this property will cause a database hit

Specified by:
getCommits in interface ResultsSummary
Returns:
commits

setCommits

public void setCommits(java.util.Set<Commit> commits)

getSkippedCommitsCount

public int getSkippedCommitsCount()
Description copied from interface: ResultsSummary
The number of commits that were included in this summary, but their details were skipped (because there was too many commits to keep them all in this summary)

Specified by:
getSkippedCommitsCount in interface ResultsSummary
Returns:
number of skipped commits

setSkippedCommitsCount

public void setSkippedCommitsCount(int skippedCommitsCount)

getChangesListSummary

@NotNull
public java.lang.String getChangesListSummary()
Specified by:
getChangesListSummary in interface ResultsSummary

getTriggerManager

protected TriggerManager getTriggerManager()

getTextProvider

public com.opensymphony.xwork.TextProvider getTextProvider()

getBuildState

public BuildState getBuildState()
Specified by:
getBuildState in interface ResultStatisticsProvider

setBuildState

public void setBuildState(BuildState buildState)

getLifeCycleState

public LifeCycleState getLifeCycleState()
Specified by:
getLifeCycleState in interface ResultsSummary

setLifeCycleState

public void setLifeCycleState(LifeCycleState lifeCycleState)

updateLifeCycleState

public void updateLifeCycleState(@NotNull
                                 LifeCycleState lifeCycleState,
                                 @NotNull
                                 BuildState buildState)
Description copied from interface: ResultsSummary
Update lifeCycleState and buildState in one go. Can throw IllegalArgumentException when values passed make no sense: - lifeCycleState == LifeCycleState.NOT_BUILT && buildState != BuildState.UNKNOWN

Specified by:
updateLifeCycleState in interface ResultsSummary
Parameters:
lifeCycleState - lifeCycleState to be set
buildState - buildState to be set

getDiscriminator

public java.lang.String getDiscriminator()

setDiscriminator

public void setDiscriminator(java.lang.String discriminator)

getComments

@NotNull
public java.util.List<Comment> getComments()
Description copied from interface: ResultsSummary
Gets the associated user comments for the build

Specified by:
getComments in interface ResultsSummary
Returns:

getSubstitutedVariables

@NotNull
public java.util.List<VariableSubstitution> getSubstitutedVariables()
Description copied from interface: ResultsSummary
Returns list of variables substituted during build execution

Specified by:
getSubstitutedVariables in interface ResultsSummary
Returns:

setSubstitutedVariables

public void setSubstitutedVariables(java.util.List<VariableSubstitution> substitutedVariables)

getManuallyOverriddenVariables

public java.util.List<VariableSubstitution> getManuallyOverriddenVariables()
Description copied from interface: ResultsSummary
Returns list of variables manually overridden variables

Specified by:
getManuallyOverriddenVariables in interface ResultsSummary
Returns:

getVariableContextLogs

@NotNull
public java.util.List<VariableContextSnapshot> getVariableContextLogs()
Specified by:
getVariableContextLogs in interface ResultsSummary

setVariableContextLogs

public void setVariableContextLogs(java.util.List<VariableContextSnapshot> variableContextLogs)

hasComments

public boolean hasComments()
Description copied from interface: ResultsSummary
Checks if the result has any user comments for the build

Specified by:
hasComments in interface ResultsSummary
Returns:

hasCommentsToDisplay

public boolean hasCommentsToDisplay()

getCommentsToDisplay

public java.util.List<Comment> getCommentsToDisplay()

getTestResultsSummary

@NotNull
public TestResultsSummary getTestResultsSummary()
Specified by:
getTestResultsSummary in interface ResultsSummary
Returns:
a summary of all the tests that ran in this build.

getFailedTestCount

@Deprecated
public long getFailedTestCount()
Deprecated. 

Description copied from interface: ResultsSummary
Deprecated since 2.6: Please use methods TestResultsSummary (getTestResultsSummary().getFailedTestCaseCount()) instead Number of failing tests

Specified by:
getFailedTestCount in interface ResultsSummary
Returns:
count of how many tests failed in this build

getSuccessfulTestCount

@Deprecated
public long getSuccessfulTestCount()
Deprecated. 

Description copied from interface: ResultsSummary
Deprecated since 2.6: Please use methods TestResultsSummary (getTestResultsSummary().getSuccessfulTestCaseCount())instead Number of successful tests

Specified by:
getSuccessfulTestCount in interface ResultsSummary
Returns:
count of how many tests were successful in this build

setTestResultsSummary

public void setTestResultsSummary(@NotNull
                                  TestResultsSummary testResultsSummary)
Description copied from interface: ResultsSummary
Set the test summary information from this build

Specified by:
setTestResultsSummary in interface ResultsSummary
Parameters:
testResultsSummary - the test summary information

getTestSummary

@NotNull
public java.lang.String getTestSummary()
Specified by:
getTestSummary in interface ResultsSummary

getTestClassResults

@NotNull
public java.util.List<TestClassResult> getTestClassResults()

resetTestClassResults

public void resetTestClassResults(@NotNull
                                  java.util.List<TestClassResult> testClassResults)
Description copied from interface: ResultsSummary
Overrides all current testClassResults with the new ones

Specified by:
resetTestClassResults in interface ResultsSummary
Parameters:
testClassResults - to set

getRestartCount

public int getRestartCount()
Description copied from interface: ResultsSummary
Return the number of build restart attempts

Specified by:
getRestartCount in interface ResultsSummary
Returns:

incrementRestartCount

public int incrementRestartCount()
Description copied from interface: ResultsSummary
Increments number of build restarts and returns the new value

Specified by:
incrementRestartCount in interface ResultsSummary
Returns:

setRestartCount

public void setRestartCount(int restartCount)

compareTo

public int compareTo(ResultsSummary resultsSummary)
Specified by:
compareTo in interface java.lang.Comparable<ResultsSummary>

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class com.atlassian.core.bean.EntityObject

hashCode

public int hashCode()
Overrides:
hashCode in class com.atlassian.core.bean.EntityObject


Copyright © 2011 Atlassian. All Rights Reserved.