com.atlassian.bamboo.resultsummary
Interface BuildResultsSummaryDao

All Superinterfaces:
BambooObjectDao, bucket.core.persistence.ObjectDao
All Known Implementing Classes:
BuildResultsSummaryHibernateDao

public interface BuildResultsSummaryDao
extends BambooObjectDao


Method Summary
 int countBuildResultsSummaries(long agentId, BuildState buildState)
          Count how many build results match the agent & optional build state
 int countBuildResultsSummaries(java.lang.String planKey)
           
 java.util.List<ExtendedBuildResultsSummary> findBuildResultsSummaries(BuildResultsSummaryCriteria criteria)
          Searches for BuildResultsSummary objects given a BuildResultsSummaryCriteria
 java.util.List<ExtendedBuildResultsSummary> findBuildResultsSummariesByJiraIssues(java.util.List<java.lang.String> issueKeys)
           
 java.util.List<ExtendedBuildResultsSummary> findBuildResultsSummariesByProjectKey(java.lang.String projectKey)
          This seems to be the Jira project key not the Bamboo Project key
 java.util.List<ExtendedBuildResultsSummary> findBuildsForImageConfiguration(java.lang.String planKey, ElasticImageConfiguration elasticImageConfiguration, BuildState buildState, int maxResults)
          Searcher for builds of an image
 BuildResultsSummary getBreakingBuild(BuildResultsSummary summary)
           
 ExtendedBuildResultsSummary getBuildResultsSummaryByBuildKeyAndBuildNumber(java.lang.String buildKey, int buildNumber)
           
 BuildResultsSummary getFirstBuildSummary(Build build)
           
 java.util.List<LinkedJiraIssue> getJiraIssuesForBuild(Build build)
          Retrieves a list of LinkedJiraIssue that are linked to the given build.
 java.util.List<LinkedJiraIssue> getJiraIssuesForBuildResults(java.util.List<BuildResultsSummary> buildResults)
          Retrieves a list of LinkedJiraIssue linked to the given build result summaries
 ExtendedBuildResultsSummary getLastBuildSummary(java.lang.String planKey)
           
 java.util.List<ExtendedBuildResultsSummary> getNeighbouringSummaries(Build build, int currentBuildNumber)
           
 long getNumberOfResults(Build build)
           
 void removeBuildResultsSummary(BuildResultsSummary buildResultsSummary)
          Removes the passed build result summary
 
Methods inherited from interface com.atlassian.bamboo.persistence.BambooObjectDao
findById
 
Methods inherited from interface bucket.core.persistence.ObjectDao
findAll, findAllSorted, getPersistentClass, refresh, remove, replicate, save, saveRaw
 

Method Detail

getBuildResultsSummaryByBuildKeyAndBuildNumber

ExtendedBuildResultsSummary getBuildResultsSummaryByBuildKeyAndBuildNumber(java.lang.String buildKey,
                                                                           int buildNumber)

getFirstBuildSummary

BuildResultsSummary getFirstBuildSummary(Build build)

getLastBuildSummary

ExtendedBuildResultsSummary getLastBuildSummary(java.lang.String planKey)

getNumberOfResults

long getNumberOfResults(Build build)

getNeighbouringSummaries

java.util.List<ExtendedBuildResultsSummary> getNeighbouringSummaries(Build build,
                                                                     int currentBuildNumber)

getBreakingBuild

BuildResultsSummary getBreakingBuild(BuildResultsSummary summary)

findBuildResultsSummaries

@NotNull
java.util.List<ExtendedBuildResultsSummary> findBuildResultsSummaries(@NotNull
                                                                              BuildResultsSummaryCriteria criteria)
Searches for BuildResultsSummary objects given a BuildResultsSummaryCriteria

Parameters:
criteria - @NotNull
Returns:
List of ExtendedBuildResultsSummary

countBuildResultsSummaries

int countBuildResultsSummaries(long agentId,
                               @Nullable
                               BuildState buildState)
Count how many build results match the agent & optional build state

Parameters:
agentId -
buildState - - can be null.
Returns:

countBuildResultsSummaries

int countBuildResultsSummaries(@Nullable
                               java.lang.String planKey)

findBuildResultsSummariesByJiraIssues

@NotNull
java.util.List<ExtendedBuildResultsSummary> findBuildResultsSummariesByJiraIssues(@Nullable
                                                                                          java.util.List<java.lang.String> issueKeys)

removeBuildResultsSummary

void removeBuildResultsSummary(BuildResultsSummary buildResultsSummary)
Removes the passed build result summary

Parameters:
buildResultsSummary - - @NotNull

findBuildResultsSummariesByProjectKey

@NotNull
java.util.List<ExtendedBuildResultsSummary> findBuildResultsSummariesByProjectKey(@Nullable
                                                                                          java.lang.String projectKey)
This seems to be the Jira project key not the Bamboo Project key

Parameters:
projectKey -
Returns:

getJiraIssuesForBuildResults

@NotNull
java.util.List<LinkedJiraIssue> getJiraIssuesForBuildResults(@NotNull
                                                                     java.util.List<BuildResultsSummary> buildResults)
Retrieves a list of LinkedJiraIssue linked to the given build result summaries

Parameters:
buildResults -
Returns:

getJiraIssuesForBuild

@NotNull
java.util.List<LinkedJiraIssue> getJiraIssuesForBuild(@NotNull
                                                              Build build)
Retrieves a list of LinkedJiraIssue that are linked to the given build.

Parameters:
build -
Returns:

findBuildsForImageConfiguration

@NotNull
java.util.List<ExtendedBuildResultsSummary> findBuildsForImageConfiguration(java.lang.String planKey,
                                                                                    ElasticImageConfiguration elasticImageConfiguration,
                                                                                    @Nullable
                                                                                    BuildState buildState,
                                                                                    int maxResults)
Searcher for builds of an image

Parameters:
planKey -
elasticImageConfiguration -
buildState - @Nullable
maxResults -
Returns:


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.