|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.core.bean.EntityObject com.atlassian.bamboo.core.BambooEntityObject com.atlassian.bamboo.resultsummary.BaseResultSummary
public abstract class BaseResultSummary
Base class for mutable and immutable result summaries.
Field Summary | |
---|---|
protected static org.apache.commons.lang.time.FastDateFormat |
DATE_FORMAT
|
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject |
---|
id |
Constructor Summary | |
---|---|
BaseResultSummary()
|
Method Summary | |
---|---|
int |
compareTo(ResultsSummary resultsSummary)
|
protected java.lang.String |
createChangeListSummary()
|
boolean |
equals(java.lang.Object object)
|
java.util.Collection<ArtifactLink> |
getArtifactLinksThatExist()
This returns live view of the getArtifactLinks() |
java.lang.String |
getBuildKey()
Full key of the plan. |
java.lang.String |
getBuildResultKey()
A full build result key e.g. |
java.lang.String |
getBuildTime()
When did the build start? |
com.google.common.collect.ImmutableList<Commit> |
getCommits()
List of commits associated with the build represented by this summary |
java.lang.String |
getDurationDescription()
Returns the duration in a "pretty" format. |
double |
getDurationInSeconds()
Build duration in seconds. |
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.List<java.lang.String> |
getLabelNames()
A shortcust method to get all of the label names from the labbellings |
java.lang.String |
getLongReasonSummary()
|
java.util.List<VariableSubstitution> |
getManuallyOverriddenVariables()
Returns list of variables manually overridden variables |
PlanResultKey |
getPlanResultKey()
Gets the PlanResultKey for this BuildResultsSummary |
java.lang.String |
getProcessingDurationDescription()
Returns the processing duration in a "pretty" format. |
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. |
java.lang.String |
getShortReasonSummary()
|
java.util.Date |
getStatDate()
When the build was executed. |
java.lang.String |
getTestSummary()
|
protected abstract TriggerManager |
getTriggerManager()
|
java.util.Set<Author> |
getUniqueAuthors()
A shortcut method to get the unique set of authors contributing to this build. |
boolean |
hasChanges()
Whether a build had changes or not |
boolean |
hasComments()
Checks if the result has any user comments for the build |
boolean |
hasCommentsToDisplay()
Whether there are any comments aggregated from the Jobs |
int |
hashCode()
|
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 |
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.deletion.Deletable |
---|
setMarkedForDeletion |
Methods inherited from interface com.atlassian.bamboo.core.BambooObject |
---|
setId |
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider |
---|
getId |
Methods inherited from interface com.atlassian.bamboo.plan.cache.ImmutableDeletable |
---|
isMarkedForDeletion |
Methods inherited from interface com.atlassian.bamboo.resultsummary.ResultStatisticsProvider |
---|
getBuildDate, getBuildNumber, getBuildState |
Field Detail |
---|
protected static final org.apache.commons.lang.time.FastDateFormat DATE_FORMAT
Constructor Detail |
---|
public BaseResultSummary()
Method Detail |
---|
public boolean isFailed()
ResultsSummary
ResultStatisticsProvider.getBuildState()
is BuildState.FAILED
isFailed
in interface ResultsSummary
public boolean isSuccessful()
ResultsSummary
ResultStatisticsProvider.getBuildState()
is BuildState.SUCCESS
isSuccessful
in interface ResultsSummary
public boolean isPending()
ResultsSummary
ResultsSummary.getLifeCycleState()
is LifeCycleState.PENDING
isPending
in interface ResultsSummary
public boolean isQueued()
ResultsSummary
ResultsSummary.getLifeCycleState()
is LifeCycleState.QUEUED
isQueued
in interface ResultsSummary
public boolean isInProgress()
ResultsSummary
ResultsSummary.getLifeCycleState()
is LifeCycleState.IN_PROGRESS
isInProgress
in interface ResultsSummary
public boolean isNotBuilt()
ResultsSummary
ResultsSummary.getLifeCycleState()
is LifeCycleState.NOT_BUILT
isNotBuilt
in interface ResultsSummary
public boolean isFinalized()
public boolean isFinished()
ResultsSummary
ResultsSummary.getLifeCycleState()
is LifeCycleState.FINISHED
isFinished
in interface ResultsSummary
public boolean isWaiting()
ResultsSummary
ResultsSummary.getLifeCycleState()
is LifeCycleState.PENDING
or LifeCycleState.QUEUED
isWaiting
in interface ResultsSummary
public boolean isActive()
ResultsSummary
ResultsSummary.getLifeCycleState()
is LifeCycleState.PENDING
or LifeCycleState.QUEUED
or LifeCycleState.IN_PROGRESS
isActive
in interface ResultsSummary
@NotNull public PlanResultKey getPlanResultKey()
ResultsSummary
PlanResultKey
for this BuildResultsSummary
getPlanResultKey
in interface ResultsSummary
@NotNull public java.lang.String getBuildResultKey()
ResultsSummary
getBuildResultKey
in interface ResultsSummary
@NotNull public java.lang.String getDurationDescription()
ResultsSummary
getDurationDescription
in interface ResultsSummary
public java.lang.String getRelativeBuildDate()
getRelativeBuildDate
in interface ResultsSummary
public java.lang.String getRelativeQueueDate()
getRelativeQueueDate
in interface ResultsSummary
public java.lang.String getRelativeBuildStartedDate()
ResultsSummary
getRelativeBuildStartedDate
in interface ResultsSummary
public java.lang.String getRelativeBuildDate(java.util.Date comparedTo)
getRelativeBuildDate
in interface ResultsSummary
public java.lang.String getRelativeQueueDate(java.util.Date comparedTo)
getRelativeQueueDate
in interface ResultsSummary
public java.lang.String getRelativeBuildStartedDate(java.util.Date comparedTo)
getRelativeBuildStartedDate
in interface ResultsSummary
public java.lang.String getShortReasonSummary()
getShortReasonSummary
in interface ResultsSummary
public java.lang.String getLongReasonSummary()
protected abstract TriggerManager getTriggerManager()
@NotNull public java.util.Set<LinkedJiraIssue> getFixingJiraIssues()
ResultsSummary
getFixingJiraIssues
in interface ResultsSummary
@NotNull public java.util.Set<LinkedJiraIssue> getRelatedJiraIssues()
ResultsSummary
getRelatedJiraIssues
in interface ResultsSummary
public boolean hasChanges()
ResultsSummary
hasChanges
in interface ResultsSummary
@NotNull public java.lang.String getBuildKey()
ResultsSummary
getBuildKey
in interface ResultsSummary
public java.util.Date getStatDate()
ResultStatisticsProvider
getStatDate
in interface ResultStatisticsProvider
public java.util.Set<java.lang.String> getJiraIssueKeys()
ResultsSummary
getJiraIssueKeys
in interface ResultsSummary
@NotNull public java.util.List<java.lang.String> getLabelNames()
ResultsSummary
getLabelNames
in interface ResultsSummary
public java.util.Set<Author> getUniqueAuthors()
ResultsSummary
getUniqueAuthors
in interface ResultsSummary
Set
of Author
spublic double getDurationInSeconds()
ResultStatisticsProvider
getDurationInSeconds
in interface ResultStatisticsProvider
public java.util.Collection<ArtifactLink> getArtifactLinksThatExist()
getArtifactLinksThatExist
in interface ResultsSummary
public java.lang.String getProcessingDurationDescription()
ResultsSummary
getProcessingDurationDescription
in interface ResultsSummary
public java.lang.String getBuildTime()
getBuildTime
in interface ResultsSummary
protected java.lang.String createChangeListSummary()
public com.google.common.collect.ImmutableList<Commit> getCommits()
ResultsSummary
getCommits
in interface ResultsSummary
@NotNull public java.lang.String getTestSummary()
getTestSummary
in interface ResultsSummary
public int compareTo(ResultsSummary resultsSummary)
compareTo
in interface java.lang.Comparable<ResultsSummary>
public boolean equals(java.lang.Object object)
equals
in class com.atlassian.core.bean.EntityObject
public int hashCode()
hashCode
in class com.atlassian.core.bean.EntityObject
public java.util.List<VariableSubstitution> getManuallyOverriddenVariables()
ResultsSummary
getManuallyOverriddenVariables
in interface ResultsSummary
public boolean hasComments()
ResultsSummary
hasComments
in interface ResultsSummary
public boolean hasCommentsToDisplay()
ResultsSummary
hasCommentsToDisplay
in interface ResultsSummary
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |