|
||||||||||
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 |
Fields inherited from interface com.atlassian.bamboo.resultsummary.ImmutableResultsSummary |
---|
CUSTOM_DATA_BUILD_KEY |
Constructor Summary | |
---|---|
BaseResultSummary()
|
Method Summary | |
---|---|
int |
compareTo(ImmutableResultsSummary resultsSummary)
|
protected java.lang.String |
createChangeListSummary()
|
boolean |
equals(java.lang.Object object)
This method needs to be here in order to use proper id |
java.util.Collection<ArtifactLink> |
getArtifactLinksThatExist()
Deprecated. |
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 shortcut method to get all of the label names from the labellings |
java.util.List<VariableSubstitution> |
getManuallyOverriddenVariables()
Returns list of variables manually overridden variables |
PlanResultKey |
getPlanResultKey()
Gets the PlanResultKey for this ImmutableResultsSummary |
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()
Deprecated. |
int |
hashCode()
This method needs to be here in order to use proper id |
boolean |
isActive()
Shortcut method to see if ImmutableResultsSummary.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 ImmutableResultsSummary.getLifeCycleState() is LifeCycleState.FINISHED |
boolean |
isInProgress()
Shortcut method to see if ImmutableResultsSummary.getLifeCycleState() is LifeCycleState.IN_PROGRESS |
boolean |
isNotBuilt()
Shortcut method to see if ImmutableResultsSummary.getLifeCycleState() is LifeCycleState.NOT_BUILT |
boolean |
isPending()
Shortcut method to see if ImmutableResultsSummary.getLifeCycleState() is LifeCycleState.PENDING |
boolean |
isQueued()
Shortcut method to see if ImmutableResultsSummary.getLifeCycleState() is LifeCycleState.QUEUED |
boolean |
isSuccessful()
Shortcut method to see if ResultStatisticsProvider.getBuildState() is BuildState#SUCCESS |
boolean |
isWaiting()
Shortcut method to see if ImmutableResultsSummary.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.resultsummary.ImmutableResultsSummary |
---|
getArtifactLinks, getBuildAgentId, getBuildCancelledDate, getBuildCompletedDate, getChangesListSummary, getComments, getCommentsToDisplay, getCustomBuildData, getDeltaState, getDuration, getImmutablePlan, getJiraIssues, getLabellings, getLifeCycleState, getPlan, getPlanKey, getProcessingDuration, getQueueTime, getReasonSummary, getRepositoryChangesets, getRestartCount, getSubscriptions, getSubstitutedVariables, getTestResultsSummary, getTimeToFix, getTriggerReason, getVariableContext, getVariableContextLogs, isCustomBuild, isNotRunYet, isOnceOff, isRebuild |
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider |
---|
getId |
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()
ImmutableResultsSummary
ResultStatisticsProvider.getBuildState()
is BuildState#FAILED
isFailed
in interface ImmutableResultsSummary
public boolean isSuccessful()
ImmutableResultsSummary
ResultStatisticsProvider.getBuildState()
is BuildState#SUCCESS
isSuccessful
in interface ImmutableResultsSummary
public boolean isPending()
ImmutableResultsSummary
ImmutableResultsSummary.getLifeCycleState()
is LifeCycleState.PENDING
isPending
in interface ImmutableResultsSummary
public boolean isQueued()
ImmutableResultsSummary
ImmutableResultsSummary.getLifeCycleState()
is LifeCycleState.QUEUED
isQueued
in interface ImmutableResultsSummary
public boolean isInProgress()
ImmutableResultsSummary
ImmutableResultsSummary.getLifeCycleState()
is LifeCycleState.IN_PROGRESS
isInProgress
in interface ImmutableResultsSummary
public boolean isNotBuilt()
ImmutableResultsSummary
ImmutableResultsSummary.getLifeCycleState()
is LifeCycleState.NOT_BUILT
isNotBuilt
in interface ImmutableResultsSummary
public boolean isFinalized()
public boolean isFinished()
ImmutableResultsSummary
ImmutableResultsSummary.getLifeCycleState()
is LifeCycleState.FINISHED
isFinished
in interface ImmutableResultsSummary
public boolean isWaiting()
ImmutableResultsSummary
ImmutableResultsSummary.getLifeCycleState()
is LifeCycleState.PENDING
or LifeCycleState.QUEUED
isWaiting
in interface ImmutableResultsSummary
public boolean isActive()
ImmutableResultsSummary
ImmutableResultsSummary.getLifeCycleState()
is LifeCycleState.PENDING
or LifeCycleState.QUEUED
or LifeCycleState.IN_PROGRESS
isActive
in interface ImmutableResultsSummary
@NotNull public PlanResultKey getPlanResultKey()
ImmutableResultsSummary
PlanResultKey
for this ImmutableResultsSummary
getPlanResultKey
in interface ImmutableResultsSummary
@NotNull public java.lang.String getDurationDescription()
ImmutableResultsSummary
getDurationDescription
in interface ImmutableResultsSummary
public java.lang.String getRelativeBuildDate()
getRelativeBuildDate
in interface ImmutableResultsSummary
public java.lang.String getRelativeQueueDate()
getRelativeQueueDate
in interface ImmutableResultsSummary
public java.lang.String getRelativeBuildStartedDate()
ImmutableResultsSummary
getRelativeBuildStartedDate
in interface ImmutableResultsSummary
public java.lang.String getRelativeBuildDate(java.util.Date comparedTo)
getRelativeBuildDate
in interface ImmutableResultsSummary
public java.lang.String getRelativeQueueDate(java.util.Date comparedTo)
getRelativeQueueDate
in interface ImmutableResultsSummary
public java.lang.String getRelativeBuildStartedDate(java.util.Date comparedTo)
getRelativeBuildStartedDate
in interface ImmutableResultsSummary
public java.lang.String getShortReasonSummary()
getShortReasonSummary
in interface ImmutableResultsSummary
protected abstract TriggerManager getTriggerManager()
@NotNull public java.util.Set<LinkedJiraIssue> getFixingJiraIssues()
ImmutableResultsSummary
getFixingJiraIssues
in interface ImmutableResultsSummary
@NotNull public java.util.Set<LinkedJiraIssue> getRelatedJiraIssues()
ImmutableResultsSummary
getRelatedJiraIssues
in interface ImmutableResultsSummary
public boolean hasChanges()
ImmutableResultsSummary
hasChanges
in interface ImmutableResultsSummary
public java.util.Date getStatDate()
ResultStatisticsProvider
getStatDate
in interface ResultStatisticsProvider
public java.util.Set<java.lang.String> getJiraIssueKeys()
ImmutableResultsSummary
getJiraIssueKeys
in interface ImmutableResultsSummary
@NotNull public java.util.List<java.lang.String> getLabelNames()
ImmutableResultsSummary
getLabelNames
in interface ImmutableResultsSummary
public java.util.Set<Author> getUniqueAuthors()
ImmutableResultsSummary
getUniqueAuthors
in interface ImmutableResultsSummary
Set
of Author
spublic double getDurationInSeconds()
ResultStatisticsProvider
getDurationInSeconds
in interface ResultStatisticsProvider
@Deprecated public java.util.Collection<ArtifactLink> getArtifactLinksThatExist()
getArtifactLinksThatExist
in interface ImmutableResultsSummary
public java.lang.String getProcessingDurationDescription()
ImmutableResultsSummary
getProcessingDurationDescription
in interface ImmutableResultsSummary
public java.lang.String getBuildTime()
getBuildTime
in interface ImmutableResultsSummary
protected java.lang.String createChangeListSummary()
public com.google.common.collect.ImmutableList<Commit> getCommits()
ImmutableResultsSummary
getCommits
in interface ImmutableResultsSummary
@NotNull public java.lang.String getTestSummary()
getTestSummary
in interface ImmutableResultsSummary
public int compareTo(ImmutableResultsSummary resultsSummary)
compareTo
in interface java.lang.Comparable<ImmutableResultsSummary>
public boolean equals(java.lang.Object object)
BambooEntityObject
equals
in class BambooEntityObject
public int hashCode()
BambooEntityObject
hashCode
in class BambooEntityObject
public java.util.List<VariableSubstitution> getManuallyOverriddenVariables()
ImmutableResultsSummary
getManuallyOverriddenVariables
in interface ImmutableResultsSummary
public boolean hasComments()
ImmutableResultsSummary
hasComments
in interface ImmutableResultsSummary
@Deprecated public boolean hasCommentsToDisplay()
ImmutableResultsSummary
hasCommentsToDisplay
in interface ImmutableResultsSummary
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |