public class AuthorityConnector extends BaseAuthorityConnector
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AuthorityConnector.AuthorizationResponseDescription
This is the cache object descriptor for cached access tokens from
this connector.
|
protected class |
AuthorityConnector.CheckConnectionThread |
protected class |
AuthorityConnector.DestroySessionThread |
protected class |
AuthorityConnector.GetAccessTokensThread |
protected class |
AuthorityConnector.GetSessionThread |
protected class |
AuthorityConnector.GetUserAccessIDThread |
| Modifier and Type | Field and Description |
|---|---|
protected ICacheManager |
cacheManager
Cache manager.
|
protected boolean |
caseInsensitive |
static String |
CONFIG_PARAM_CACHELIFETIME |
static String |
CONFIG_PARAM_CACHELRUSIZE |
static String |
CONFIG_PARAM_CASEINSENSITIVE |
static String |
CONFIG_PARAM_DOCBASE |
static String |
CONFIG_PARAM_DOMAIN |
static String |
CONFIG_PARAM_PASSWORD |
static String |
CONFIG_PARAM_USERNAME |
static String |
CONFIG_PARAM_USESYSTEMACLS |
protected String |
docbaseName |
protected String |
domain |
protected static StringSet |
emptyStringSet |
protected boolean |
hasSessionParameters |
protected long |
lastSessionFetch |
protected String |
password |
protected IDocumentum |
session |
protected static long |
timeToRelease |
protected String |
userName |
protected boolean |
useSystemAcls |
_rcsid, RESPONSE_UNREACHABLE, RESPONSE_UNREACHABLE_ADDITIVE, RESPONSE_USERNOTFOUND, RESPONSE_USERNOTFOUND_ADDITIVE, RESPONSE_USERUNAUTHORIZED, RESPONSE_USERUNAUTHORIZED_ADDITIVEcurrentContext, paramsGLOBAL_DENY_TOKEN| Constructor and Description |
|---|
AuthorityConnector() |
| Modifier and Type | Method and Description |
|---|---|
String |
check()
Test the connection.
|
protected void |
checkConnection()
Check connection, with appropriate retries
|
void |
clearThreadContext()
Clear thread context.
|
void |
connect(ConfigParams configParams) |
void |
disconnect()
Disconnect from Documentum.
|
AuthorizationResponse |
getAuthorizationResponse(String strUserNamePassedIn)
Obtain the access tokens for a given user name.
|
protected AuthorizationResponse |
getAuthorizationResponseUncached(String strUserNamePassedIn)
Uncached get response method.
|
AuthorizationResponse |
getDefaultAuthorizationResponse(String userName)
Obtain the default access tokens for a given user name.
|
protected IDocumentumObject |
getObjectByQualification(String qualification)
Perform getObjectByQualification, with appropriate reset
|
protected String |
getServerVersion()
Get server version, with appropriate retries
|
protected void |
getSession()
Get a DFC session.
|
protected void |
getSessionParameters()
Get session parameters.
|
protected static String |
insensitiveMatch(boolean insensitive,
String field,
String value) |
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)
Output the configuration body section.
|
void |
outputConfigurationHeader(IThreadContext threadContext,
IHTTPOutput out,
Locale locale,
ConfigParams parameters,
List<String> tabsArray)
Output the configuration header section.
|
protected IDocumentumResult |
performDQLQuery(String query)
Perform a DQL query, with appropriate reset on a remote exception
|
void |
poll()
This method is periodically called for all connectors that are connected but not
in active use.
|
String |
processConfigurationPost(IThreadContext threadContext,
IPostParameters variableContext,
Locale locale,
ConfigParams parameters)
Process a configuration post.
|
protected static String |
quoteDQLString(String value) |
protected void |
releaseCheck()
Release the session, if it's time.
|
void |
setThreadContext(IThreadContext tc)
Set thread context.
|
void |
viewConfiguration(IThreadContext threadContext,
IHTTPOutput out,
Locale locale,
ConfigParams parameters)
View configuration.
|
getAccessTokens, getDefaultAccessTokensdeinstall, getConfiguration, install, outputConfigurationBody, outputConfigurationHeader, outputConfigurationHeader, pack, packFixedList, packList, packList, processConfigurationPost, unpack, unpackFixedList, unpackList, viewConfigurationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeinstall, getConfiguration, installpublic static final String CONFIG_PARAM_DOCBASE
public static final String CONFIG_PARAM_USERNAME
public static final String CONFIG_PARAM_PASSWORD
public static final String CONFIG_PARAM_DOMAIN
public static final String CONFIG_PARAM_CASEINSENSITIVE
public static final String CONFIG_PARAM_USESYSTEMACLS
public static final String CONFIG_PARAM_CACHELIFETIME
public static final String CONFIG_PARAM_CACHELRUSIZE
protected String docbaseName
protected String userName
protected String password
protected String domain
protected boolean caseInsensitive
protected boolean useSystemAcls
protected ICacheManager cacheManager
protected boolean hasSessionParameters
protected IDocumentum session
protected long lastSessionFetch
protected static final long timeToRelease
protected static StringSet emptyStringSet
public void setThreadContext(IThreadContext tc) throws ManifoldCFException
setThreadContext in interface IConnectorsetThreadContext in class BaseConnectorManifoldCFExceptionpublic void clearThreadContext()
clearThreadContext in interface IConnectorclearThreadContext in class BaseConnectorprotected void getSessionParameters()
throws ManifoldCFException
ManifoldCFExceptionprotected void getSession()
throws ManifoldCFException
ManifoldCFExceptionprotected IDocumentumResult performDQLQuery(String query) throws DocumentumException, ManifoldCFException
protected void checkConnection()
throws DocumentumException,
ManifoldCFException
protected IDocumentumObject getObjectByQualification(String qualification) throws DocumentumException, ManifoldCFException
protected String getServerVersion() throws DocumentumException, ManifoldCFException
protected void releaseCheck()
throws ManifoldCFException
ManifoldCFExceptionpublic AuthorizationResponse getAuthorizationResponse(String strUserNamePassedIn) throws ManifoldCFException
getAuthorizationResponse in interface IAuthorityConnectorgetAuthorizationResponse in class BaseAuthorityConnectorstrUserNamePassedIn - is the user name or identifier.ManifoldCFExceptionprotected AuthorizationResponse getAuthorizationResponseUncached(String strUserNamePassedIn) throws ManifoldCFException
ManifoldCFExceptionpublic AuthorizationResponse getDefaultAuthorizationResponse(String userName)
getDefaultAuthorizationResponse in interface IAuthorityConnectorgetDefaultAuthorizationResponse in class BaseAuthorityConnectoruserName - is the user name or identifier.protected static String insensitiveMatch(boolean insensitive, String field, String value)
public String check() throws ManifoldCFException
check in interface IConnectorcheck in class BaseConnectorManifoldCFExceptionpublic void connect(ConfigParams configParams)
connect in interface IConnectorconnect in class BaseConnectorpublic boolean isConnected()
isConnected in interface IConnectorisConnected in class BaseConnectorpublic void disconnect()
throws ManifoldCFException
disconnect in interface IConnectordisconnect in class BaseConnectorManifoldCFExceptionpublic void poll()
throws ManifoldCFException
poll in interface IConnectorpoll in class BaseConnectorManifoldCFExceptionpublic 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 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.tabName - is the current tab name.ManifoldCFExceptionIOExceptionpublic String processConfigurationPost(IThreadContext threadContext, IPostParameters variableContext, Locale locale, ConfigParams parameters) throws ManifoldCFException
processConfigurationPost in interface IConnectorprocessConfigurationPost 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 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.ManifoldCFExceptionIOException