com.atlassian.bamboo.build
Class LuceneBasedJiraIssueResultsManagerImpl

java.lang.Object
  extended by com.atlassian.bamboo.build.LuceneBasedJiraIssueResultsManagerImpl
All Implemented Interfaces:
JiraIssueResultsManager

public class LuceneBasedJiraIssueResultsManagerImpl
extends java.lang.Object
implements JiraIssueResultsManager


Constructor Summary
LuceneBasedJiraIssueResultsManagerImpl()
           
 
Method Summary
 PartialList<? extends ResultsSummary> findBuildResultsByJiraIssueKey(java.util.List<java.lang.String> issueKeys, int maxResults)
          Finds a list of Build Results given issue keys
 PartialList<? extends ResultsSummary> findBuildResultsByProjectKey(java.lang.String projectKey, int maxResults)
          Finds build results given a project key
 java.util.List<LinkedJiraIssue> findJiraIssuesForBuild(ImmutablePlan plan)
          Finds a list of jira issues linked to a particular build
 java.util.List<LinkedJiraIssue> findJiraIssuesForBuildResults(java.util.List<ResultsSummary> buildResults)
          Finds a list of jira issues linked to the given build results
 java.util.Collection<java.lang.String> findPlanKeysByIssueKeys(java.util.List<java.lang.String> issueKeys)
           
 java.util.Collection<java.lang.String> findPlanKeysByJiraProjectKey(java.lang.String projectKey)
          Returns a list of plans that's associated with
 int getNumberOfRelatedBuildsByIssueKey(java.util.List<java.lang.String> issueKeys)
          Counts the number of builds related to these issues
 void setBuildResultsSummaryManager(ResultsSummaryManager resultsSummaryManager)
           
 void setIndexedBuildResultsSearcher(IndexedBuildResultsSearcher indexedBuildResultsSearcher)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LuceneBasedJiraIssueResultsManagerImpl

public LuceneBasedJiraIssueResultsManagerImpl()
Method Detail

findBuildResultsByJiraIssueKey

@NotNull
public PartialList<? extends ResultsSummary> findBuildResultsByJiraIssueKey(@Nullable
                                                                                    java.util.List<java.lang.String> issueKeys,
                                                                                    int maxResults)
Description copied from interface: JiraIssueResultsManager
Finds a list of Build Results given issue keys

Specified by:
findBuildResultsByJiraIssueKey in interface JiraIssueResultsManager
Returns:
List of ResultsSummary. Empty if no matches

getNumberOfRelatedBuildsByIssueKey

public int getNumberOfRelatedBuildsByIssueKey(@Nullable
                                              java.util.List<java.lang.String> issueKeys)
Description copied from interface: JiraIssueResultsManager
Counts the number of builds related to these issues

Specified by:
getNumberOfRelatedBuildsByIssueKey in interface JiraIssueResultsManager
Returns:

findBuildResultsByProjectKey

@NotNull
public PartialList<? extends ResultsSummary> findBuildResultsByProjectKey(@NotNull
                                                                                  java.lang.String projectKey,
                                                                                  int maxResults)
Description copied from interface: JiraIssueResultsManager
Finds build results given a project key

Specified by:
findBuildResultsByProjectKey in interface JiraIssueResultsManager
Returns:

findPlanKeysByJiraProjectKey

@NotNull
public java.util.Collection<java.lang.String> findPlanKeysByJiraProjectKey(@NotNull
                                                                                   java.lang.String projectKey)
Description copied from interface: JiraIssueResultsManager
Returns a list of plans that's associated with

Specified by:
findPlanKeysByJiraProjectKey in interface JiraIssueResultsManager
Returns:

findPlanKeysByIssueKeys

@NotNull
public java.util.Collection<java.lang.String> findPlanKeysByIssueKeys(@NotNull
                                                                              java.util.List<java.lang.String> issueKeys)
Specified by:
findPlanKeysByIssueKeys in interface JiraIssueResultsManager
Returns:

findJiraIssuesForBuildResults

@NotNull
public java.util.List<LinkedJiraIssue> findJiraIssuesForBuildResults(@NotNull
                                                                             java.util.List<ResultsSummary> buildResults)
Description copied from interface: JiraIssueResultsManager
Finds a list of jira issues linked to the given build results

Specified by:
findJiraIssuesForBuildResults in interface JiraIssueResultsManager
Parameters:
buildResults - List of ResultsSummary
Returns:
List of LinkedJiraIssue

findJiraIssuesForBuild

@NotNull
public java.util.List<LinkedJiraIssue> findJiraIssuesForBuild(@NotNull
                                                                      ImmutablePlan plan)
Description copied from interface: JiraIssueResultsManager
Finds a list of jira issues linked to a particular build

Specified by:
findJiraIssuesForBuild in interface JiraIssueResultsManager
Parameters:
plan - Plan
Returns:
List of LinkedJiraIssue

setIndexedBuildResultsSearcher

public void setIndexedBuildResultsSearcher(IndexedBuildResultsSearcher indexedBuildResultsSearcher)

setBuildResultsSummaryManager

public void setBuildResultsSummaryManager(ResultsSummaryManager resultsSummaryManager)


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.