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_ADDITIVE
currentContext, params
GLOBAL_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, getDefaultAccessTokens
clearThreadContext, deinstall, getConfiguration, install, outputConfigurationBody, outputConfigurationHeader, outputConfigurationHeader, pack, packFixedList, packList, packList, poll, processConfigurationPost, setThreadContext, unpack, unpackFixedList, unpackList, viewConfiguration
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearThreadContext, deinstall, getConfiguration, install, poll, processConfigurationPost, setThreadContext
protected 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 IConnector
disconnect
in class BaseConnector
ManifoldCFException
public void connect(ConfigParams configParams)
connect
in interface IConnector
connect
in class BaseConnector
public String check() throws ManifoldCFException
check
in interface IConnector
check
in class BaseConnector
ManifoldCFException
protected void initConfluenceClient() throws ManifoldCFException
Initialize Confluence client using the configured parameters
ManifoldCFException
public boolean isConnected()
isConnected
in interface IConnector
isConnected
in class BaseConnector
public void viewConfiguration(IThreadContext threadContext, IHTTPOutput out, Locale locale, ConfigParams parameters) throws ManifoldCFException, IOException
viewConfiguration
in interface IConnector
viewConfiguration
in class BaseConnector
ManifoldCFException
IOException
public void outputConfigurationHeader(IThreadContext threadContext, IHTTPOutput out, Locale locale, ConfigParams parameters, List<String> tabsArray) throws ManifoldCFException, IOException
outputConfigurationHeader
in interface IConnector
outputConfigurationHeader
in class BaseConnector
ManifoldCFException
IOException
public void outputConfigurationBody(IThreadContext threadContext, IHTTPOutput out, Locale locale, ConfigParams parameters, String tabName) throws ManifoldCFException, IOException
outputConfigurationBody
in interface IConnector
outputConfigurationBody
in class BaseConnector
ManifoldCFException
IOException
public String processConfigurationPost(IThreadContext threadContext, IPostParameters variableContext, ConfigParams parameters) throws ManifoldCFException
processConfigurationPost
in class BaseConnector
ManifoldCFException
public AuthorizationResponse getDefaultAuthorizationResponse(String userName)
getDefaultAuthorizationResponse
in interface IAuthorityConnector
getDefaultAuthorizationResponse
in class BaseAuthorityConnector
public AuthorizationResponse getAuthorizationResponse(String userName) throws ManifoldCFException
getAuthorizationResponse
in interface IAuthorityConnector
getAuthorizationResponse
in class BaseAuthorityConnector
ManifoldCFException