Class AsyncBugzillaBugRestClient

java.lang.Object
com.atlassian.jira.rest.client.internal.async.AbstractAsynchronousRestClient
b4j.core.session.bugzilla.async.AbstractAsyncRestClient
b4j.core.session.bugzilla.async.AsyncBugzillaBugRestClient
All Implemented Interfaces:
BugzillaBugRestClient

public class AsyncBugzillaBugRestClient
extends AbstractAsyncRestClient
implements BugzillaBugRestClient
The client responsible for getting metadata information.
Since:
2.0
Author:
ralph
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.atlassian.jira.rest.client.internal.async.AbstractAsynchronousRestClient

    com.atlassian.jira.rest.client.internal.async.AbstractAsynchronousRestClient.ResponseHandler<T extends java.lang.Object>
  • Constructor Summary

    Constructors 
    Constructor Description
    AsyncBugzillaBugRestClient​(AsyncBugzillaRestClient mainClient)
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    com.atlassian.util.concurrent.Promise<java.lang.Iterable<Issue>> findBugs​(java.util.Map<java.lang.String,​java.lang.Object> criteria)
    Retrieves information about bugs.
    com.atlassian.util.concurrent.Promise<java.lang.Iterable<Attachment>> getAttachments​(java.lang.String... issueIds)
    Retrieves information about attachments of issues.
    com.atlassian.util.concurrent.Promise<java.lang.Iterable<Attachment>> getAttachments​(java.util.Collection<java.lang.String> issueIds)
    Retrieves information about attachments of issues.
    com.atlassian.util.concurrent.Promise<java.lang.Iterable<Issue>> getBugs​(long... ids)
    Retrieves information about bugs.
    com.atlassian.util.concurrent.Promise<java.lang.Iterable<Issue>> getBugs​(java.util.Collection<java.lang.Long> ids)
    Retrieves information about bugs.
    com.atlassian.util.concurrent.Promise<java.lang.Iterable<Comment>> getComments​(java.lang.String... issueIds)
    Retrieves information about comments.
    com.atlassian.util.concurrent.Promise<java.lang.Iterable<Comment>> getComments​(java.util.Collection<java.lang.String> issueIds)
    Retrieves information about comments.
    protected java.util.Collection<java.lang.Long> getIds​(java.util.Collection<Issue> issues)  

    Methods inherited from class com.atlassian.jira.rest.client.internal.async.AbstractAsynchronousRestClient

    call, callAndParse, callAndParse, client, delete, getAndParse, post, post, post, post, postAndParse, postAndParse, putAndParse

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getBugs

      public com.atlassian.util.concurrent.Promise<java.lang.Iterable<Issue>> getBugs​(long... ids)
      Retrieves information about bugs.
      Specified by:
      getBugs in interface BugzillaBugRestClient
      Parameters:
      ids - IDs of bugs
      Returns:
      information about bugs
    • getBugs

      public com.atlassian.util.concurrent.Promise<java.lang.Iterable<Issue>> getBugs​(java.util.Collection<java.lang.Long> ids)
      Retrieves information about bugs.
      Specified by:
      getBugs in interface BugzillaBugRestClient
      Parameters:
      ids - IDs of bugs
      Returns:
      information about bugs
    • findBugs

      public com.atlassian.util.concurrent.Promise<java.lang.Iterable<Issue>> findBugs​(java.util.Map<java.lang.String,​java.lang.Object> criteria)
      Retrieves information about bugs.
      Specified by:
      findBugs in interface BugzillaBugRestClient
      Parameters:
      criteria - Map of field matching criteria according to Bugzilla Search API.
      Returns:
      information about bugs
    • getAttachments

      public com.atlassian.util.concurrent.Promise<java.lang.Iterable<Attachment>> getAttachments​(java.lang.String... issueIds)
      Retrieves information about attachments of issues.
      Specified by:
      getAttachments in interface BugzillaBugRestClient
      Parameters:
      issueIds - IDs of issues
      Returns:
      information about attachments
    • getAttachments

      public com.atlassian.util.concurrent.Promise<java.lang.Iterable<Attachment>> getAttachments​(java.util.Collection<java.lang.String> issueIds)
      Retrieves information about attachments of issues.
      Specified by:
      getAttachments in interface BugzillaBugRestClient
      Parameters:
      issueIds - IDs of issues
      Returns:
      information about attachments
    • getComments

      public com.atlassian.util.concurrent.Promise<java.lang.Iterable<Comment>> getComments​(java.lang.String... issueIds)
      Retrieves information about comments.
      Specified by:
      getComments in interface BugzillaBugRestClient
      Parameters:
      issueIds - IDs of issues the comments shall be retrieved for
      Returns:
      information about comments
    • getComments

      public com.atlassian.util.concurrent.Promise<java.lang.Iterable<Comment>> getComments​(java.util.Collection<java.lang.String> issueIds)
      Retrieves information about comments.
      Specified by:
      getComments in interface BugzillaBugRestClient
      Parameters:
      issueIds - IDs of issues the comments shall be retrieved for
      Returns:
      information about comments
    • getIds

      protected java.util.Collection<java.lang.Long> getIds​(java.util.Collection<Issue> issues)