com.atlassian.bamboo.build
Class LuceneBasedJiraIssueResultsManagerImpl

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

public class LuceneBasedJiraIssueResultsManagerImpl
extends Object
implements JiraIssueResultsManager


Constructor Summary
LuceneBasedJiraIssueResultsManagerImpl()
           
 
Method Summary
 PartialList<ResultsSummary> findBuildResultsByJiraIssueKey(List<String> issueKeys, int maxResults)
          Finds a list of completed Build Results given issue keys
 PartialList<? extends ResultsSummary> findBuildResultsByProjectKey(String projectKey, int maxResults)
          Finds completed Build Results given a project key
 PartialList<? extends ResultsSummary> findBuildResultsByProjectKeys(List<String> projectKeys, int maxResults)
          Finds build results given a project keys
 List<LinkedJiraIssue> findJiraIssuesForBuild(ImmutablePlan plan)
          Deprecated. replaced by #findJiraIssuesForPlanKey(String)}
 List<LinkedJiraIssue> findJiraIssuesForBuildResults(List<ResultsSummary> buildResults)
          Finds a list of jira issues linked to the given build results
 List<LinkedJiraIssue> findJiraIssuesForPlanKey(PlanKey planKey)
          Finds a list of jira issues linked to a particular build key
 Collection<String> findPlanKeysByIssueKeys(List<String> issueKeys)
           
 Collection<String> findPlanKeysByJiraProjectKey(String projectKey)
          Returns a list of plans that's associated with
 Collection<String> findPlanKeysByJiraProjectKeys(List<String> projectKeys)
          Returns a list of plans that's associated with
 int getNumberOfRelatedBuildsByIssueKey(List<String> issueKeys)
          Counts the number of completed Build Results 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<ResultsSummary> findBuildResultsByJiraIssueKey(@Nullable
                                                                          List<String> issueKeys,
                                                                          int maxResults)
Description copied from interface: JiraIssueResultsManager
Finds a list of completed Build Results given issue keys

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

getNumberOfRelatedBuildsByIssueKey

public int getNumberOfRelatedBuildsByIssueKey(@Nullable
                                              List<String> issueKeys)
Description copied from interface: JiraIssueResultsManager
Counts the number of completed Build Results related to these issues

Specified by:
getNumberOfRelatedBuildsByIssueKey in interface JiraIssueResultsManager
Returns:

findBuildResultsByProjectKey

@NotNull
public PartialList<? extends ResultsSummary> findBuildResultsByProjectKey(@NotNull
                                                                                  String projectKey,
                                                                                  int maxResults)
Description copied from interface: JiraIssueResultsManager
Finds completed Build Results given a project key

Specified by:
findBuildResultsByProjectKey in interface JiraIssueResultsManager
Returns:

findBuildResultsByProjectKeys

@NotNull
public PartialList<? extends ResultsSummary> findBuildResultsByProjectKeys(@NotNull
                                                                                   List<String> projectKeys,
                                                                                   int maxResults)
Description copied from interface: JiraIssueResultsManager
Finds build results given a project keys

Specified by:
findBuildResultsByProjectKeys in interface JiraIssueResultsManager
Returns:

findPlanKeysByJiraProjectKey

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

Specified by:
findPlanKeysByJiraProjectKey in interface JiraIssueResultsManager
Returns:

findPlanKeysByJiraProjectKeys

@NotNull
public Collection<String> findPlanKeysByJiraProjectKeys(@NotNull
                                                                List<String> projectKeys)
Description copied from interface: JiraIssueResultsManager
Returns a list of plans that's associated with

Specified by:
findPlanKeysByJiraProjectKeys in interface JiraIssueResultsManager
Returns:

findPlanKeysByIssueKeys

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

findJiraIssuesForBuildResults

@NotNull
public List<LinkedJiraIssue> findJiraIssuesForBuildResults(@NotNull
                                                                   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

@Deprecated
@NotNull
public List<LinkedJiraIssue> findJiraIssuesForBuild(@NotNull
                                                                       ImmutablePlan plan)
Deprecated. replaced by #findJiraIssuesForPlanKey(String)}

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

findJiraIssuesForPlanKey

@NotNull
public List<LinkedJiraIssue> findJiraIssuesForPlanKey(@NotNull
                                                              PlanKey planKey)
Description copied from interface: JiraIssueResultsManager
Finds a list of jira issues linked to a particular build key

Specified by:
findJiraIssuesForPlanKey in interface JiraIssueResultsManager
Parameters:
planKey - key to build Plan
Returns:
List of LinkedJiraIssue

setIndexedBuildResultsSearcher

public void setIndexedBuildResultsSearcher(IndexedBuildResultsSearcher indexedBuildResultsSearcher)

setBuildResultsSummaryManager

public void setBuildResultsSummaryManager(ResultsSummaryManager resultsSummaryManager)


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.