|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.jira.jiraissues.JiraRemoteIssueManagerImpl
public class JiraRemoteIssueManagerImpl
Constructor Summary | |
---|---|
JiraRemoteIssueManagerImpl(JiraApplinksService jiraApplinksService,
JiraIssueDetailsBuilderFactory jiraIssueDetailsBuilderFactory)
|
Method Summary | |
---|---|
protected java.lang.String |
constructSearchUrl(java.lang.String projectKey,
java.util.List<java.lang.String> issueKeys)
Construct JIRA search URL |
Result<com.atlassian.applinks.api.CredentialsRequiredException,java.util.List<JiraIssueDetails>> |
fetchIssueDetailsFromJira(com.atlassian.applinks.api.ApplicationLink applicationLink,
java.lang.String jiraProjectKey,
java.util.Set<java.lang.String> jiraIssueKeys)
Fetch issue details from JIRA via XML Search. |
protected Result<com.atlassian.applinks.api.CredentialsRequiredException,java.lang.Iterable<JiraIssueDetails>> |
fetchPartitionedIssueDetailsFromJira(com.atlassian.applinks.api.ApplicationLink applicationLink,
java.lang.String jiraProjectKey,
java.util.List<java.lang.String> jiraIssueKeysBatch)
Fetch details of JIRA issues using JQL and XML search |
java.lang.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(java.lang.String jiraProjectKey,
Project project)
Retrieves the 'best' application link for a given JIRA project key. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JiraRemoteIssueManagerImpl(JiraApplinksService jiraApplinksService, JiraIssueDetailsBuilderFactory jiraIssueDetailsBuilderFactory)
Method Detail |
---|
@NotNull public Result<com.atlassian.applinks.api.CredentialsRequiredException,java.util.List<JiraIssueDetails>> fetchIssueDetailsFromJira(@NotNull com.atlassian.applinks.api.ApplicationLink applicationLink, @NotNull java.lang.String jiraProjectKey, @NotNull java.util.Set<java.lang.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 JIRA
JiraIssueDetails
objects representing JIRA issues or
CredentialsRequiredException when authentication is required in order to establish connection with JIRA@NotNull public java.lang.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 from
EntityReference
objects representing JIRA projects
CredentialsRequiredContextException
com.atlassian.sal.api.net.ResponseException
public com.atlassian.applinks.api.ApplicationLink getJiraApplicationLink(@NotNull java.lang.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,java.lang.Iterable<JiraIssueDetails>> fetchPartitionedIssueDetailsFromJira(@NotNull com.atlassian.applinks.api.ApplicationLink applicationLink, @NotNull java.lang.String jiraProjectKey, @NotNull java.util.List<java.lang.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 java.lang.String constructSearchUrl(@NotNull java.lang.String projectKey, @NotNull java.util.List<java.lang.String> issueKeys)
projectKey
- JIRA project keyissueKeys
- JIRA issue keys to be searched
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |