Class JiraIssueManagerImpl
- java.lang.Object
-
- com.atlassian.bamboo.jira.jiraissues.JiraIssueManagerImpl
-
- All Implemented Interfaces:
JiraIssueManager
public class JiraIssueManagerImpl extends Object implements JiraIssueManager
-
-
Constructor Summary
Constructors Constructor Description JiraIssueManagerImpl(JiraApplinksService jiraApplinksService, JiraIssueDetailsBuilderFactory jiraIssueDetailsBuilderFactory, JiraRemoteIssueManager jiraRemoteIssueManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected @NotNull Map<String,JiraIssueDetails>
createJiraIssueDetails(@Nullable Project bambooProject, @NotNull Set<String> issueKeys)
Create JiraIssueDetails for<T extends InternalLinkedJiraIssue>
@NotNull Iterable<T>getJiraIssueDetails(@Nullable Project bambooProject, @NotNull Iterable<T> linkedJiraIssues)
Get issue details from JIRA via XML Search.@NotNull JiraIssueDetails
getJiraIssueDetails(@Nullable Project bambooProject, @NotNull String issueKey)
Get issue details for a single issue.
-
-
-
Constructor Detail
-
JiraIssueManagerImpl
public JiraIssueManagerImpl(JiraApplinksService jiraApplinksService, JiraIssueDetailsBuilderFactory jiraIssueDetailsBuilderFactory, JiraRemoteIssueManager jiraRemoteIssueManager)
-
-
Method Detail
-
getJiraIssueDetails
@NotNull public <T extends InternalLinkedJiraIssue> @NotNull Iterable<T> getJiraIssueDetails(@Nullable @Nullable Project bambooProject, @NotNull @NotNull 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 interfaceJiraIssueManager
- Parameters:
bambooProject
- Bamboo project for which the search is executedlinkedJiraIssues
- JIRA issues to be completed with data fetched from JIRA- Returns:
Iterable
ofInternalLinkedJiraIssue
objects representing JIRA issues.- Throws:
CredentialsRequiredContextException
- In case applicationLink requires authentication in order to establish connection with JIRAcom.atlassian.sal.api.net.ResponseException
-
getJiraIssueDetails
@NotNull public @NotNull JiraIssueDetails getJiraIssueDetails(@Nullable @Nullable Project bambooProject, @NotNull @NotNull 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 interfaceJiraIssueManager
- Parameters:
bambooProject
- Bamboo project for which the search is executedissueKey
- 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 requiredcom.atlassian.sal.api.net.ResponseException
-
createJiraIssueDetails
@NotNull protected @NotNull Map<String,JiraIssueDetails> createJiraIssueDetails(@Nullable @Nullable Project bambooProject, @NotNull @NotNull Set<String> issueKeys) throws CredentialsRequiredContextException, com.atlassian.sal.api.net.ResponseException
Create JiraIssueDetails for- Parameters:
bambooProject
- Bamboo projectissueKeys
- 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 authenticationCredentialsRequiredContextException
com.atlassian.sal.api.net.ResponseException
-
-