public class ConfluenceAuthorityConnector
extends org.apache.manifoldcf.authorities.authorities.BaseAuthorityConnector
Confluence Authority Connector class
ManifoldCF Authority connector to deal with Confluence documents
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ConfluenceAuthorityConnector.AuthorizationResponseDescription
This is the cache object descriptor for cached access tokens from this connector.
|
| Modifier and Type | Field and Description |
|---|---|
protected ConfluenceClient |
confluenceClient |
protected java.lang.String |
connectionTimeout |
protected static org.apache.manifoldcf.core.interfaces.StringSet |
emptyStringSet |
protected java.lang.String |
host |
protected java.lang.String |
password |
protected java.lang.String |
path |
protected java.lang.String |
port |
protected java.lang.String |
protocol |
protected java.lang.String |
proxyHost |
protected java.lang.String |
proxyPassword |
protected java.lang.String |
proxyPort |
protected java.lang.String |
proxyProtocol |
protected java.lang.String |
proxyUsername |
protected java.lang.String |
socketTimeout |
protected java.lang.String |
username |
_rcsid, RESPONSE_UNREACHABLE, RESPONSE_UNREACHABLE_ADDITIVE, RESPONSE_USERNOTFOUND, RESPONSE_USERNOTFOUND_ADDITIVE, RESPONSE_USERUNAUTHORIZED, RESPONSE_USERUNAUTHORIZED_ADDITIVE| Constructor and Description |
|---|
ConfluenceAuthorityConnector()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
check()
Checks if connection is available
|
void |
clearThreadContext()
Clear thread context.
|
void |
connect(org.apache.manifoldcf.core.interfaces.ConfigParams configParams)
Makes connection to server
|
void |
disconnect()
Close the connection.
|
org.apache.manifoldcf.authorities.interfaces.AuthorizationResponse |
getAuthorizationResponse(java.lang.String userName) |
org.apache.manifoldcf.authorities.interfaces.AuthorizationResponse |
getDefaultAuthorizationResponse(java.lang.String userName) |
protected void |
initConfluenceClient()
Initialize Confluence client using the configured parameters
|
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) |
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) |
void |
setCacheManager(org.apache.manifoldcf.core.interfaces.ICacheManager cm)
Used Mainly for testing
|
void |
setConfluenceClient(ConfluenceClient client)
Used Mainly for testing
|
void |
setThreadContext(org.apache.manifoldcf.core.interfaces.IThreadContext tc)
Set thread context.
|
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) |
getAccessTokens, getDefaultAccessTokensdeinstall, getConfiguration, install, outputConfigurationBody, outputConfigurationHeader, outputConfigurationHeader, pack, packFixedList, packList, packList, poll, processConfigurationPost, unpack, unpackFixedList, unpackList, viewConfigurationprotected java.lang.String protocol
protected java.lang.String host
protected java.lang.String port
protected java.lang.String path
protected java.lang.String username
protected java.lang.String password
protected java.lang.String socketTimeout
protected java.lang.String connectionTimeout
protected java.lang.String proxyUsername
protected java.lang.String proxyPassword
protected java.lang.String proxyProtocol
protected java.lang.String proxyHost
protected java.lang.String proxyPort
protected ConfluenceClient confluenceClient
protected static org.apache.manifoldcf.core.interfaces.StringSet emptyStringSet
public ConfluenceAuthorityConnector()
Default constructor
public void setCacheManager(org.apache.manifoldcf.core.interfaces.ICacheManager cm)
cm - public void setConfluenceClient(ConfluenceClient client)
client - Injected Confluence Clientpublic void setThreadContext(org.apache.manifoldcf.core.interfaces.IThreadContext tc)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
setThreadContext in interface org.apache.manifoldcf.core.interfaces.IConnectorsetThreadContext in class org.apache.manifoldcf.core.connector.BaseConnectororg.apache.manifoldcf.core.interfaces.ManifoldCFExceptionpublic void clearThreadContext()
clearThreadContext in interface org.apache.manifoldcf.core.interfaces.IConnectorclearThreadContext in class org.apache.manifoldcf.core.connector.BaseConnectorpublic 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.BaseConnectorpublic 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 void initConfluenceClient()
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
Initialize Confluence client using the configured parameters
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 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.BaseConnectororg.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.BaseConnectororg.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.BaseConnectororg.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.BaseAuthorityConnectorpublic 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.BaseAuthorityConnectororg.apache.manifoldcf.core.interfaces.ManifoldCFException