com.atlassian.bamboo.jira.jiraissues
Class JiraIssueManagerImpl

java.lang.Object
  extended by com.atlassian.bamboo.jira.jiraissues.JiraIssueManagerImpl
All Implemented Interfaces:
JiraIssueManager

public class JiraIssueManagerImpl
extends java.lang.Object
implements JiraIssueManager


Constructor Summary
JiraIssueManagerImpl(JiraApplinksService jiraApplinksService, JiraIssueDetailsBuilderFactory jiraIssueDetailsBuilderFactory, JiraRemoteIssueManager jiraRemoteIssueManager)
           
 
Method Summary
protected  java.util.Map<java.lang.String,JiraIssueDetails> createJiraIssueDetails(Project bambooProject, java.util.Set<java.lang.String> issueKeys)
          Create JiraIssueDetails for
<T extends InternalLinkedJiraIssue>
java.lang.Iterable<T>
getJiraIssueDetails(Project bambooProject, java.lang.Iterable<T> linkedJiraIssues)
          Get issue details from JIRA via XML Search.
 JiraIssueDetails getJiraIssueDetails(Project bambooProject, java.lang.String issueKey)
          Get issue details for a single issue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiraIssueManagerImpl

public JiraIssueManagerImpl(JiraApplinksService jiraApplinksService,
                            JiraIssueDetailsBuilderFactory jiraIssueDetailsBuilderFactory,
                            JiraRemoteIssueManager jiraRemoteIssueManager)
Method Detail

getJiraIssueDetails

@NotNull
public <T extends InternalLinkedJiraIssue> java.lang.Iterable<T> getJiraIssueDetails(@Nullable
                                                                                             Project bambooProject,
                                                                                             @NotNull
                                                                                             java.lang.Iterable<T> linkedJiraIssues)
                                                                          throws CredentialsRequiredContextException,
                                                                                 com.atlassian.sal.api.net.ResponseException
Description copied from interface: JiraIssueManager
Get issue details from JIRA via XML Search.

Specified by:
getJiraIssueDetails in interface JiraIssueManager
Parameters:
bambooProject - Bamboo project for which the search is executed
linkedJiraIssues - JIRA issues to be completed with data fetched from JIRA
Returns:
Iterable of InternalLinkedJiraIssue objects representing JIRA issues.
Throws:
CredentialsRequiredContextException - In case applicationLink requires authentication in order to establish connection with JIRA
com.atlassian.sal.api.net.ResponseException

getJiraIssueDetails

@NotNull
public JiraIssueDetails getJiraIssueDetails(@Nullable
                                                    Project bambooProject,
                                                    @NotNull
                                                    java.lang.String issueKey)
                                     throws CredentialsRequiredContextException,
                                            com.atlassian.sal.api.net.ResponseException
Description copied from interface: JiraIssueManager
Get issue details for a single issue.

Specified by:
getJiraIssueDetails in interface JiraIssueManager
Parameters:
bambooProject - Bamboo project for which the search is executed
issueKey - of the Issue to retrieve
Returns:
Jira Issue Details retrieved from JIRA, if issue was found, and user has permission to see it
Throws:
CredentialsRequiredContextException - if oauth handshake required
com.atlassian.sal.api.net.ResponseException

createJiraIssueDetails

@NotNull
protected java.util.Map<java.lang.String,JiraIssueDetails> createJiraIssueDetails(@Nullable
                                                                                          Project bambooProject,
                                                                                          @NotNull
                                                                                          java.util.Set<java.lang.String> issueKeys)
                                                                           throws CredentialsRequiredContextException,
                                                                                  com.atlassian.sal.api.net.ResponseException
Create JiraIssueDetails for

Parameters:
bambooProject - Bamboo project
issueKeys - Set of JIRA issue keys (it is not an Iterable since we perform a non-direct transformation)
Returns:
Mapping of JIRA issue key to JiraIssueDetails object
Throws:
com.atlassian.applinks.api.CredentialsRequiredException - when remote JIRA operation requires authentication
CredentialsRequiredContextException
com.atlassian.sal.api.net.ResponseException


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