public class JiraAuthorityConnector
extends org.apache.manifoldcf.authorities.authorities.BaseAuthorityConnector
| Modifier and Type | Class and Description |
|---|---|
protected static class |
JiraAuthorityConnector.CheckConnectionThread |
protected static class |
JiraAuthorityConnector.CheckUserExistsThread |
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
clientid |
protected java.lang.String |
clientsecret |
protected java.lang.String |
jirahost |
protected java.lang.String |
jirapath |
protected java.lang.String |
jiraport |
protected java.lang.String |
jiraprotocol |
protected java.lang.String |
jiraproxydomain |
protected java.lang.String |
jiraproxyhost |
protected java.lang.String |
jiraproxypassword |
protected java.lang.String |
jiraproxyport |
protected java.lang.String |
jiraproxyusername |
protected long |
lastSessionFetch |
protected JiraSession |
session |
protected static long |
timeToRelease |
_rcsid, RESPONSE_UNREACHABLE, RESPONSE_UNREACHABLE_ADDITIVE, RESPONSE_USERNOTFOUND, RESPONSE_USERNOTFOUND_ADDITIVE, RESPONSE_USERUNAUTHORIZED, RESPONSE_USERUNAUTHORIZED_ADDITIVE| Constructor and Description |
|---|
JiraAuthorityConnector() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
check()
Test the connection.
|
protected void |
checkConnection() |
protected boolean |
checkUserExists(java.lang.String userName) |
void |
connect(org.apache.manifoldcf.core.interfaces.ConfigParams configParams)
This method create a new JIRA session for a JIRA
repository, if the repositoryId is not provided in the configuration, the
connector will retrieve all the repositories exposed for this endpoint
the it will start to use the first one.
|
void |
disconnect()
Close the connection.
|
org.apache.manifoldcf.authorities.interfaces.AuthorizationResponse |
getAuthorizationResponse(java.lang.String userName)
Obtain the access tokens for a given Active Directory user name.
|
org.apache.manifoldcf.authorities.interfaces.AuthorizationResponse |
getDefaultAuthorizationResponse(java.lang.String userName)
Obtain the default access tokens for a given user name.
|
protected JiraSession |
getSession()
Set up a session
|
boolean |
isConnected()
This method is called to assess whether to count this connector instance should
actually be counted as being connected.
|
void |
outputConfigurationBody(org.apache.manifoldcf.core.interfaces.IThreadContext threadContext,
org.apache.manifoldcf.core.interfaces.IHTTPOutput out,
java.util.Locale locale,
org.apache.manifoldcf.core.interfaces.ConfigParams parameters,
java.lang.String tabName) |
void |
outputConfigurationHeader(org.apache.manifoldcf.core.interfaces.IThreadContext threadContext,
org.apache.manifoldcf.core.interfaces.IHTTPOutput out,
java.util.Locale locale,
org.apache.manifoldcf.core.interfaces.ConfigParams parameters,
java.util.List<java.lang.String> tabsArray)
Output the configuration header section.
|
void |
poll() |
java.lang.String |
processConfigurationPost(org.apache.manifoldcf.core.interfaces.IThreadContext threadContext,
org.apache.manifoldcf.core.interfaces.IPostParameters variableContext,
org.apache.manifoldcf.core.interfaces.ConfigParams parameters)
Process a configuration post.
|
void |
viewConfiguration(org.apache.manifoldcf.core.interfaces.IThreadContext threadContext,
org.apache.manifoldcf.core.interfaces.IHTTPOutput out,
java.util.Locale locale,
org.apache.manifoldcf.core.interfaces.ConfigParams parameters)
View configuration.
|
getAccessTokens, getDefaultAccessTokensclearThreadContext, deinstall, getConfiguration, install, outputConfigurationBody, outputConfigurationHeader, outputConfigurationHeader, pack, packFixedList, packList, packList, processConfigurationPost, setThreadContext, unpack, unpackFixedList, unpackList, viewConfigurationprotected JiraSession session
protected long lastSessionFetch
protected static final long timeToRelease
protected java.lang.String jiraprotocol
protected java.lang.String jirahost
protected java.lang.String jiraport
protected java.lang.String jirapath
protected java.lang.String clientid
protected java.lang.String clientsecret
protected java.lang.String jiraproxyhost
protected java.lang.String jiraproxyport
protected java.lang.String jiraproxydomain
protected java.lang.String jiraproxyusername
protected java.lang.String jiraproxypassword
public void disconnect()
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
disconnect in interface org.apache.manifoldcf.core.interfaces.IConnectordisconnect in class org.apache.manifoldcf.core.connector.BaseConnectororg.apache.manifoldcf.core.interfaces.ManifoldCFExceptionpublic void connect(org.apache.manifoldcf.core.interfaces.ConfigParams configParams)
connect in interface org.apache.manifoldcf.core.interfaces.IConnectorconnect in class org.apache.manifoldcf.core.connector.BaseConnectorconfigParams - is the set of configuration parameters, which in
this case describe the target appliance, basic auth configuration, etc.
(This formerly came out of the ini file.)public java.lang.String check()
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
check in interface org.apache.manifoldcf.core.interfaces.IConnectorcheck in class org.apache.manifoldcf.core.connector.BaseConnectororg.apache.manifoldcf.core.interfaces.ManifoldCFExceptionprotected JiraSession getSession() throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionpublic boolean isConnected()
isConnected in interface org.apache.manifoldcf.core.interfaces.IConnectorisConnected in class org.apache.manifoldcf.core.connector.BaseConnectorpublic void poll()
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
poll in interface org.apache.manifoldcf.core.interfaces.IConnectorpoll in class org.apache.manifoldcf.core.connector.BaseConnectororg.apache.manifoldcf.core.interfaces.ManifoldCFExceptionpublic void viewConfiguration(org.apache.manifoldcf.core.interfaces.IThreadContext threadContext,
org.apache.manifoldcf.core.interfaces.IHTTPOutput out,
java.util.Locale locale,
org.apache.manifoldcf.core.interfaces.ConfigParams parameters)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
java.io.IOException
viewConfiguration in interface org.apache.manifoldcf.core.interfaces.IConnectorviewConfiguration in class org.apache.manifoldcf.core.connector.BaseConnectorthreadContext - is the local thread context.out - is the output to which any HTML should be sent.parameters - are the configuration parameters, as they currently
exist, for this connection being configured.org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionjava.io.IOExceptionpublic void outputConfigurationHeader(org.apache.manifoldcf.core.interfaces.IThreadContext threadContext,
org.apache.manifoldcf.core.interfaces.IHTTPOutput out,
java.util.Locale locale,
org.apache.manifoldcf.core.interfaces.ConfigParams parameters,
java.util.List<java.lang.String> tabsArray)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
java.io.IOException
outputConfigurationHeader in interface org.apache.manifoldcf.core.interfaces.IConnectoroutputConfigurationHeader in class org.apache.manifoldcf.core.connector.BaseConnectorthreadContext - is the local thread context.out - is the output to which any HTML should be sent.parameters - are the configuration parameters, as they currently
exist, for this connection being configured.tabsArray - is an array of tab names. Add to this array any tab
names that are specific to the connector.org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionjava.io.IOExceptionpublic void outputConfigurationBody(org.apache.manifoldcf.core.interfaces.IThreadContext threadContext,
org.apache.manifoldcf.core.interfaces.IHTTPOutput out,
java.util.Locale locale,
org.apache.manifoldcf.core.interfaces.ConfigParams parameters,
java.lang.String tabName)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
java.io.IOException
outputConfigurationBody in interface org.apache.manifoldcf.core.interfaces.IConnectoroutputConfigurationBody in class org.apache.manifoldcf.core.connector.BaseConnectororg.apache.manifoldcf.core.interfaces.ManifoldCFExceptionjava.io.IOExceptionpublic java.lang.String processConfigurationPost(org.apache.manifoldcf.core.interfaces.IThreadContext threadContext,
org.apache.manifoldcf.core.interfaces.IPostParameters variableContext,
org.apache.manifoldcf.core.interfaces.ConfigParams parameters)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
processConfigurationPost in class org.apache.manifoldcf.core.connector.BaseConnectorthreadContext - is the local thread context.variableContext - is the set of variables available from the post,
including binary file post information.parameters - are the configuration parameters, as they currently
exist, for this connection being configured.org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionpublic org.apache.manifoldcf.authorities.interfaces.AuthorizationResponse getAuthorizationResponse(java.lang.String userName)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
getAuthorizationResponse in interface org.apache.manifoldcf.authorities.interfaces.IAuthorityConnectorgetAuthorizationResponse in class org.apache.manifoldcf.authorities.authorities.BaseAuthorityConnectoruserName - is the user name or identifier.org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionpublic org.apache.manifoldcf.authorities.interfaces.AuthorizationResponse getDefaultAuthorizationResponse(java.lang.String userName)
getDefaultAuthorizationResponse in interface org.apache.manifoldcf.authorities.interfaces.IAuthorityConnectorgetDefaultAuthorizationResponse in class org.apache.manifoldcf.authorities.authorities.BaseAuthorityConnectoruserName - is the user name or identifier.protected boolean checkUserExists(java.lang.String userName)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionprotected void checkConnection()
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
org.apache.manifoldcf.core.interfaces.ManifoldCFException