public class JiraRemoteIssueManagerImpl extends Object implements JiraRemoteIssueManager
Constructor and Description |
---|
JiraRemoteIssueManagerImpl(JiraApplinksService jiraApplinksService,
JiraIssueDetailsBuilderFactory jiraIssueDetailsBuilderFactory) |
Modifier and Type | Method and Description |
---|---|
protected String |
constructSearchUrl(String projectKey,
List<String> issueKeys)
Construct JIRA search URL
|
Result<com.atlassian.applinks.api.CredentialsRequiredException,List<JiraIssueDetails>> |
fetchIssueDetailsFromJira(com.atlassian.applinks.api.ApplicationLink applicationLink,
String jiraProjectKey,
Set<String> jiraIssueKeys)
Fetch issue details from JIRA via XML Search.
|
protected Result<com.atlassian.applinks.api.CredentialsRequiredException,Iterable<JiraIssueDetails>> |
fetchPartitionedIssueDetailsFromJira(com.atlassian.applinks.api.ApplicationLink applicationLink,
String jiraProjectKey,
List<String> jiraIssueKeysBatch)
Fetch details of JIRA issues using JQL and XML search
|
Iterable<com.atlassian.applinks.host.spi.EntityReference> |
fetchProjectInformationFromJira(com.atlassian.applinks.api.ApplicationLink applicationLink)
Fetch project list from JIRA using REST service provided by applinks.
|
com.atlassian.applinks.api.ApplicationLink |
getJiraApplicationLink(String jiraProjectKey,
Project project)
Retrieves the 'best' application link for a given JIRA project key.
|
public JiraRemoteIssueManagerImpl(JiraApplinksService jiraApplinksService, JiraIssueDetailsBuilderFactory jiraIssueDetailsBuilderFactory)
@NotNull public Result<com.atlassian.applinks.api.CredentialsRequiredException,List<JiraIssueDetails>> fetchIssueDetailsFromJira(@NotNull com.atlassian.applinks.api.ApplicationLink applicationLink, @NotNull String jiraProjectKey, @NotNull Set<String> jiraIssueKeys)
JiraRemoteIssueManager
fetchIssueDetailsFromJira
in interface JiraRemoteIssueManager
applicationLink
- identifies JIRA application to fetch issue details fromjiraProjectKey
- JIRA project key (all issue keys should be from this project)jiraIssueKeys
- keys of issues to be searched in JIRAJiraIssueDetails
objects representing JIRA issues or
CredentialsRequiredException when authentication is required in order to establish connection with JIRA@NotNull public Iterable<com.atlassian.applinks.host.spi.EntityReference> fetchProjectInformationFromJira(@NotNull com.atlassian.applinks.api.ApplicationLink applicationLink) throws CredentialsRequiredContextException, com.atlassian.sal.api.net.ResponseException
JiraRemoteIssueManager
fetchProjectInformationFromJira
in interface JiraRemoteIssueManager
applicationLink
- identifies JIRA application to fetch project list fromEntityReference
objects representing JIRA projectsCredentialsRequiredContextException
com.atlassian.sal.api.net.ResponseException
public com.atlassian.applinks.api.ApplicationLink getJiraApplicationLink(@NotNull String jiraProjectKey, @Nullable Project project) throws CredentialsRequiredContextException, com.atlassian.sal.api.net.ResponseException
JiraRemoteIssueManager
getJiraApplicationLink
in interface JiraRemoteIssueManager
jiraProjectKey
- the JIRA project key that has to be available in the returned application.project
- the project to check for entity links (optional)CredentialsRequiredContextException
com.atlassian.sal.api.net.ResponseException
protected Result<com.atlassian.applinks.api.CredentialsRequiredException,Iterable<JiraIssueDetails>> fetchPartitionedIssueDetailsFromJira(@NotNull com.atlassian.applinks.api.ApplicationLink applicationLink, @NotNull String jiraProjectKey, @NotNull List<String> jiraIssueKeysBatch)
applicationLink
- link to JIRA application which will handle search operationjiraProjectKey
- JIRA project keyjiraIssueKeysBatch
- JIRA issue keys (up to XML_SEARCH_MAX_QUERY_SIZE)Iterable
of JiraIssueDetails
fetched from JIRA
or CredentialsRequiredException when authentication is required@NotNull protected String constructSearchUrl(@NotNull String projectKey, @NotNull List<String> issueKeys)
projectKey
- JIRA project keyissueKeys
- JIRA issue keys to be searchedCopyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.