public class ConfluenceAuthorityConnector extends BaseAuthorityConnector
Confluence Authority Connector class
ManifoldCF Authority connector to deal with Confluence documents
| Modifier and Type | Field and Description |
|---|---|
protected ConfluenceClient |
confluenceClient |
protected String |
host |
protected String |
password |
protected String |
path |
protected String |
port |
protected String |
protocol |
protected String |
username |
_rcsid, RESPONSE_UNREACHABLE, RESPONSE_UNREACHABLE_ADDITIVE, RESPONSE_USERNOTFOUND, RESPONSE_USERNOTFOUND_ADDITIVE, RESPONSE_USERUNAUTHORIZED, RESPONSE_USERUNAUTHORIZED_ADDITIVEcurrentContext, paramsGLOBAL_DENY_TOKEN| Constructor and Description |
|---|
ConfluenceAuthorityConnector()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
check()
Checks if connection is available
|
void |
connect(ConfigParams configParams)
Makes connection to server
|
void |
disconnect()
Close the connection.
|
AuthorizationResponse |
getAuthorizationResponse(String userName) |
AuthorizationResponse |
getDefaultAuthorizationResponse(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(IThreadContext threadContext,
IHTTPOutput out,
Locale locale,
ConfigParams parameters,
String tabName) |
void |
outputConfigurationHeader(IThreadContext threadContext,
IHTTPOutput out,
Locale locale,
ConfigParams parameters,
List<String> tabsArray) |
String |
processConfigurationPost(IThreadContext threadContext,
IPostParameters variableContext,
ConfigParams parameters) |
void |
setConfluenceClient(ConfluenceClient client)
Used Mainly for testing
|
void |
viewConfiguration(IThreadContext threadContext,
IHTTPOutput out,
Locale locale,
ConfigParams parameters) |
getAccessTokens, getDefaultAccessTokensclearThreadContext, deinstall, getConfiguration, install, outputConfigurationBody, outputConfigurationHeader, outputConfigurationHeader, pack, packFixedList, packList, packList, poll, processConfigurationPost, setThreadContext, unpack, unpackFixedList, unpackList, viewConfigurationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearThreadContext, deinstall, getConfiguration, install, poll, processConfigurationPost, setThreadContextprotected String protocol
protected String host
protected String port
protected String path
protected String username
protected String password
protected ConfluenceClient confluenceClient
public ConfluenceAuthorityConnector()
Default constructor
public void setConfluenceClient(ConfluenceClient client)
client - Injected Confluence Clientpublic void disconnect()
throws ManifoldCFException
disconnect in interface IConnectordisconnect in class BaseConnectorManifoldCFExceptionpublic void connect(ConfigParams configParams)
connect in interface IConnectorconnect in class BaseConnectorpublic String check() throws ManifoldCFException
check in interface IConnectorcheck in class BaseConnectorManifoldCFExceptionprotected void initConfluenceClient()
throws ManifoldCFException
Initialize Confluence client using the configured parameters
ManifoldCFExceptionpublic boolean isConnected()
isConnected in interface IConnectorisConnected in class BaseConnectorpublic void viewConfiguration(IThreadContext threadContext, IHTTPOutput out, Locale locale, ConfigParams parameters) throws ManifoldCFException, IOException
viewConfiguration in interface IConnectorviewConfiguration in class BaseConnectorManifoldCFExceptionIOExceptionpublic void outputConfigurationHeader(IThreadContext threadContext, IHTTPOutput out, Locale locale, ConfigParams parameters, List<String> tabsArray) throws ManifoldCFException, IOException
outputConfigurationHeader in interface IConnectoroutputConfigurationHeader in class BaseConnectorManifoldCFExceptionIOExceptionpublic 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 BaseConnectorManifoldCFExceptionpublic AuthorizationResponse getDefaultAuthorizationResponse(String userName)
getDefaultAuthorizationResponse in interface IAuthorityConnectorgetDefaultAuthorizationResponse in class BaseAuthorityConnectorpublic AuthorizationResponse getAuthorizationResponse(String userName) throws ManifoldCFException
getAuthorizationResponse in interface IAuthorityConnectorgetAuthorizationResponse in class BaseAuthorityConnectorManifoldCFException