Class JiraSession
- java.lang.Object
-
- org.apache.manifoldcf.crawler.connectors.jira.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 voidclose()Close session.java.lang.StringgetBaseUrl()Get baseUrl via serverInfo API callJiraIssuegetIssue(java.lang.String issueKey)Get an individual issue.java.util.Map<java.lang.String,java.lang.String>getRepositoryInfo()Obtain repository information.voidgetSeeds(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.
-
-
-
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.ManifoldCFExceptionConstructor. 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, ResponseExceptionObtain repository information.- Throws:
java.io.IOExceptionResponseException
-
getBaseUrl
public java.lang.String getBaseUrl() throws java.io.IOException, ResponseExceptionGet baseUrl via serverInfo API call- Returns:
- Throws:
java.io.IOExceptionResponseException
-
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.ManifoldCFExceptionGet the list of matching root documents, e.g. seeds.- Throws:
java.io.IOExceptionResponseExceptionjava.lang.InterruptedExceptionorg.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.ManifoldCFExceptionGet the list of users that can see the specified issue.- Throws:
java.io.IOExceptionResponseExceptionorg.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.IOExceptionResponseExceptionorg.apache.manifoldcf.core.interfaces.ManifoldCFException
-
-