Class JiraSession


  • public class JiraSession
    extends java.lang.Object
    Author:
    andrew
    • Constructor Summary

      Constructors 
      Constructor Description
      JiraSession​(java.lang.String clientId, java.lang.String clientSecret, java.lang.String protocol, java.lang.String host, int port, java.lang.String path, java.lang.String proxyHost, int proxyPort, java.lang.String proxyDomain, java.lang.String proxyUsername, java.lang.String proxyPassword)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Close session.
      java.lang.String getBaseUrl()
      Get baseUrl via serverInfo API call
      JiraIssue getIssue​(java.lang.String issueKey)
      Get an individual issue.
      java.util.Map<java.lang.String,​java.lang.String> getRepositoryInfo()
      Obtain repository information.
      void getSeeds​(org.apache.manifoldcf.connectorcommon.common.XThreadStringBuffer idBuffer, java.lang.String jiraDriveQuery)
      Get the list of matching root documents, e.g.
      java.util.List<java.lang.String> getUsers​(java.lang.String issueKey)
      Get the list of users that can see the specified issue.
      • Methods inherited from class java.lang.Object

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

      • JiraSession

        public JiraSession​(java.lang.String clientId,
                           java.lang.String clientSecret,
                           java.lang.String protocol,
                           java.lang.String host,
                           int port,
                           java.lang.String path,
                           java.lang.String proxyHost,
                           int proxyPort,
                           java.lang.String proxyDomain,
                           java.lang.String proxyUsername,
                           java.lang.String proxyPassword)
                    throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
        Constructor. Create a session.
        Throws:
        org.apache.manifoldcf.core.interfaces.ManifoldCFException
    • Method Detail

      • close

        public void close()
        Close session.
      • getRepositoryInfo

        public java.util.Map<java.lang.String,​java.lang.String> getRepositoryInfo()
                                                                                 throws java.io.IOException,
                                                                                        ResponseException
        Obtain repository information.
        Throws:
        java.io.IOException
        ResponseException
      • getBaseUrl

        public java.lang.String getBaseUrl()
                                    throws java.io.IOException,
                                           ResponseException
        Get baseUrl via serverInfo API call
        Returns:
        Throws:
        java.io.IOException
        ResponseException
      • getSeeds

        public void getSeeds​(org.apache.manifoldcf.connectorcommon.common.XThreadStringBuffer idBuffer,
                             java.lang.String jiraDriveQuery)
                      throws java.io.IOException,
                             ResponseException,
                             java.lang.InterruptedException,
                             org.apache.manifoldcf.core.interfaces.ManifoldCFException
        Get the list of matching root documents, e.g. seeds.
        Throws:
        java.io.IOException
        ResponseException
        java.lang.InterruptedException
        org.apache.manifoldcf.core.interfaces.ManifoldCFException
      • getUsers

        public java.util.List<java.lang.String> getUsers​(java.lang.String issueKey)
                                                  throws java.io.IOException,
                                                         ResponseException,
                                                         org.apache.manifoldcf.core.interfaces.ManifoldCFException
        Get the list of users that can see the specified issue.
        Throws:
        java.io.IOException
        ResponseException
        org.apache.manifoldcf.core.interfaces.ManifoldCFException
      • getIssue

        public JiraIssue getIssue​(java.lang.String issueKey)
                           throws java.io.IOException,
                                  ResponseException,
                                  org.apache.manifoldcf.core.interfaces.ManifoldCFException
        Get an individual issue.
        Throws:
        java.io.IOException
        ResponseException
        org.apache.manifoldcf.core.interfaces.ManifoldCFException