public class JiraAuthorityConnector extends BaseAuthorityConnector
| Modifier and Type | Class and Description |
|---|---|
protected static class |
JiraAuthorityConnector.CheckConnectionThread |
protected static class |
JiraAuthorityConnector.CheckUserExistsThread |
| Modifier and Type | Field and Description |
|---|---|
protected String |
clientid |
protected String |
clientsecret |
protected String |
jirahost |
protected String |
jirapath |
protected String |
jiraport |
protected String |
jiraprotocol |
protected String |
jiraproxydomain |
protected String |
jiraproxyhost |
protected String |
jiraproxypassword |
protected String |
jiraproxyport |
protected 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_ADDITIVEcurrentContext, paramsGLOBAL_DENY_TOKEN| Constructor and Description |
|---|
JiraAuthorityConnector() |
| Modifier and Type | Method and Description |
|---|---|
String |
check()
Test the connection.
|
protected void |
checkConnection() |
protected boolean |
checkUserExists(String userName) |
void |
connect(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.
|
AuthorizationResponse |
getAuthorizationResponse(String userName)
Obtain the access tokens for a given Active Directory user name.
|
AuthorizationResponse |
getDefaultAuthorizationResponse(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(IThreadContext threadContext,
IHTTPOutput out,
Locale locale,
ConfigParams parameters,
String tabName) |
void |
outputConfigurationHeader(IThreadContext threadContext,
IHTTPOutput out,
Locale locale,
ConfigParams parameters,
List<String> tabsArray)
Output the configuration header section.
|
void |
poll() |
String |
processConfigurationPost(IThreadContext threadContext,
IPostParameters variableContext,
ConfigParams parameters)
Process a configuration post.
|
void |
viewConfiguration(IThreadContext threadContext,
IHTTPOutput out,
Locale locale,
ConfigParams parameters)
View configuration.
|
getAccessTokens, getDefaultAccessTokensclearThreadContext, deinstall, getConfiguration, install, outputConfigurationBody, outputConfigurationHeader, outputConfigurationHeader, pack, packFixedList, packList, packList, processConfigurationPost, setThreadContext, unpack, unpackFixedList, unpackList, viewConfigurationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearThreadContext, deinstall, getConfiguration, install, processConfigurationPost, setThreadContextprotected JiraSession session
protected long lastSessionFetch
protected static final long timeToRelease
protected String jiraprotocol
protected String jirahost
protected String jiraport
protected String jirapath
protected String clientid
protected String clientsecret
protected String jiraproxyhost
protected String jiraproxyport
protected String jiraproxydomain
protected String jiraproxyusername
protected String jiraproxypassword
public void disconnect()
throws ManifoldCFException
disconnect in interface IConnectordisconnect in class BaseConnectorManifoldCFExceptionpublic void connect(ConfigParams configParams)
connect in interface IConnectorconnect in class BaseConnectorconfigParameters - 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 String check() throws ManifoldCFException
check in interface IConnectorcheck in class BaseConnectorManifoldCFExceptionprotected JiraSession getSession() throws ManifoldCFException
ManifoldCFExceptionpublic boolean isConnected()
isConnected in interface IConnectorisConnected in class BaseConnectorpublic void poll()
throws ManifoldCFException
poll in interface IConnectorpoll in class BaseConnectorManifoldCFExceptionpublic void viewConfiguration(IThreadContext threadContext, IHTTPOutput out, Locale locale, ConfigParams parameters) throws ManifoldCFException, IOException
viewConfiguration in interface IConnectorviewConfiguration in class 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.ManifoldCFExceptionIOExceptionpublic void outputConfigurationHeader(IThreadContext threadContext, IHTTPOutput out, Locale locale, ConfigParams parameters, List<String> tabsArray) throws ManifoldCFException, IOException
outputConfigurationHeader in interface IConnectoroutputConfigurationHeader in class 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.ManifoldCFExceptionIOExceptionpublic void outputConfigurationBody(IThreadContext threadContext, IHTTPOutput out, Locale locale, ConfigParams parameters, String tabName) throws ManifoldCFException, IOException
outputConfigurationBody in interface IConnectoroutputConfigurationBody in class BaseConnectorManifoldCFExceptionIOExceptionpublic String processConfigurationPost(IThreadContext threadContext, IPostParameters variableContext, ConfigParams parameters) throws ManifoldCFException
processConfigurationPost in class 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.ManifoldCFExceptionpublic AuthorizationResponse getAuthorizationResponse(String userName) throws ManifoldCFException
getAuthorizationResponse in interface IAuthorityConnectorgetAuthorizationResponse in class BaseAuthorityConnectoruserName - is the user name or identifier.ManifoldCFExceptionpublic AuthorizationResponse getDefaultAuthorizationResponse(String userName)
getDefaultAuthorizationResponse in interface IAuthorityConnectorgetDefaultAuthorizationResponse in class BaseAuthorityConnectoruserName - is the user name or identifier.protected boolean checkUserExists(String userName) throws ManifoldCFException
ManifoldCFExceptionprotected void checkConnection()
throws ManifoldCFException
ManifoldCFException