public class AuthorityConnector
extends org.apache.manifoldcf.authorities.authorities.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 org.apache.manifoldcf.core.interfaces.ICacheManager |
cacheManager
Cache manager.
|
protected boolean |
caseInsensitive |
static java.lang.String |
CONFIG_PARAM_CACHELIFETIME |
static java.lang.String |
CONFIG_PARAM_CACHELRUSIZE |
static java.lang.String |
CONFIG_PARAM_CASEINSENSITIVE |
static java.lang.String |
CONFIG_PARAM_DOCBASE |
static java.lang.String |
CONFIG_PARAM_DOMAIN |
static java.lang.String |
CONFIG_PARAM_PASSWORD |
static java.lang.String |
CONFIG_PARAM_USERNAME |
static java.lang.String |
CONFIG_PARAM_USESYSTEMACLS |
protected java.lang.String |
docbaseName |
protected java.lang.String |
domain |
protected static org.apache.manifoldcf.core.interfaces.StringSet |
emptyStringSet |
protected boolean |
hasSessionParameters |
protected long |
lastSessionFetch |
protected java.lang.String |
password |
protected IDocumentum |
session |
protected static long |
timeToRelease |
protected java.lang.String |
userName |
protected boolean |
useSystemAcls |
_rcsid, RESPONSE_UNREACHABLE, RESPONSE_UNREACHABLE_ADDITIVE, RESPONSE_USERNOTFOUND, RESPONSE_USERNOTFOUND_ADDITIVE, RESPONSE_USERUNAUTHORIZED, RESPONSE_USERUNAUTHORIZED_ADDITIVE| Constructor and Description |
|---|
AuthorityConnector() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
check()
Test the connection.
|
protected void |
checkConnection()
Check connection, with appropriate retries
|
void |
clearThreadContext()
Clear thread context.
|
void |
connect(org.apache.manifoldcf.core.interfaces.ConfigParams configParams) |
void |
disconnect()
Disconnect from Documentum.
|
org.apache.manifoldcf.authorities.interfaces.AuthorizationResponse |
getAuthorizationResponse(java.lang.String strUserNamePassedIn)
Obtain the access tokens for a given user name.
|
protected org.apache.manifoldcf.authorities.interfaces.AuthorizationResponse |
getAuthorizationResponseUncached(java.lang.String strUserNamePassedIn)
Uncached get response method.
|
org.apache.manifoldcf.authorities.interfaces.AuthorizationResponse |
getDefaultAuthorizationResponse(java.lang.String userName)
Obtain the default access tokens for a given user name.
|
protected IDocumentumObject |
getObjectByQualification(java.lang.String qualification)
Perform getObjectByQualification, with appropriate reset
|
protected java.lang.String |
getServerVersion()
Get server version, with appropriate retries
|
protected void |
getSession()
Get a DFC session.
|
protected void |
getSessionParameters()
Get session parameters.
|
protected static java.lang.String |
insensitiveMatch(boolean insensitive,
java.lang.String field,
java.lang.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(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)
Output the configuration body section.
|
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)
Output the configuration header section.
|
protected IDocumentumResult |
performDQLQuery(java.lang.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.
|
java.lang.String |
processConfigurationPost(org.apache.manifoldcf.core.interfaces.IThreadContext threadContext,
org.apache.manifoldcf.core.interfaces.IPostParameters variableContext,
java.util.Locale locale,
org.apache.manifoldcf.core.interfaces.ConfigParams parameters)
Process a configuration post.
|
protected static java.lang.String |
quoteDQLString(java.lang.String value) |
protected void |
releaseCheck()
Release the session, if it's time.
|
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)
View configuration.
|
getAccessTokens, getDefaultAccessTokensdeinstall, getConfiguration, install, outputConfigurationBody, outputConfigurationHeader, outputConfigurationHeader, pack, packFixedList, packList, packList, processConfigurationPost, unpack, unpackFixedList, unpackList, viewConfigurationpublic static final java.lang.String CONFIG_PARAM_DOCBASE
public static final java.lang.String CONFIG_PARAM_USERNAME
public static final java.lang.String CONFIG_PARAM_PASSWORD
public static final java.lang.String CONFIG_PARAM_DOMAIN
public static final java.lang.String CONFIG_PARAM_CASEINSENSITIVE
public static final java.lang.String CONFIG_PARAM_USESYSTEMACLS
public static final java.lang.String CONFIG_PARAM_CACHELIFETIME
public static final java.lang.String CONFIG_PARAM_CACHELRUSIZE
protected java.lang.String docbaseName
protected java.lang.String userName
protected java.lang.String password
protected java.lang.String domain
protected boolean caseInsensitive
protected boolean useSystemAcls
protected org.apache.manifoldcf.core.interfaces.ICacheManager cacheManager
protected boolean hasSessionParameters
protected IDocumentum session
protected long lastSessionFetch
protected static final long timeToRelease
protected static org.apache.manifoldcf.core.interfaces.StringSet emptyStringSet
public 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.BaseConnectorprotected void getSessionParameters()
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionprotected void getSession()
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionprotected IDocumentumResult performDQLQuery(java.lang.String query) throws DocumentumException, org.apache.manifoldcf.core.interfaces.ManifoldCFException
DocumentumExceptionorg.apache.manifoldcf.core.interfaces.ManifoldCFExceptionprotected void checkConnection()
throws DocumentumException,
org.apache.manifoldcf.core.interfaces.ManifoldCFException
DocumentumExceptionorg.apache.manifoldcf.core.interfaces.ManifoldCFExceptionprotected IDocumentumObject getObjectByQualification(java.lang.String qualification) throws DocumentumException, org.apache.manifoldcf.core.interfaces.ManifoldCFException
DocumentumExceptionorg.apache.manifoldcf.core.interfaces.ManifoldCFExceptionprotected java.lang.String getServerVersion()
throws DocumentumException,
org.apache.manifoldcf.core.interfaces.ManifoldCFException
DocumentumExceptionorg.apache.manifoldcf.core.interfaces.ManifoldCFExceptionprotected void releaseCheck()
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionpublic org.apache.manifoldcf.authorities.interfaces.AuthorizationResponse getAuthorizationResponse(java.lang.String strUserNamePassedIn)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
getAuthorizationResponse in interface org.apache.manifoldcf.authorities.interfaces.IAuthorityConnectorgetAuthorizationResponse in class org.apache.manifoldcf.authorities.authorities.BaseAuthorityConnectorstrUserNamePassedIn - is the user name or identifier.org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionprotected org.apache.manifoldcf.authorities.interfaces.AuthorizationResponse getAuthorizationResponseUncached(java.lang.String strUserNamePassedIn)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
org.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.BaseAuthorityConnectoruserName - is the user name or identifier.protected static java.lang.String insensitiveMatch(boolean insensitive,
java.lang.String field,
java.lang.String value)
protected static java.lang.String quoteDQLString(java.lang.String value)
public 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.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 boolean isConnected()
isConnected in interface org.apache.manifoldcf.core.interfaces.IConnectorisConnected 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 poll()
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
poll in interface org.apache.manifoldcf.core.interfaces.IConnectorpoll in class org.apache.manifoldcf.core.connector.BaseConnectororg.apache.manifoldcf.core.interfaces.ManifoldCFExceptionpublic 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.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.org.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.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.org.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,
java.util.Locale locale,
org.apache.manifoldcf.core.interfaces.ConfigParams parameters)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
processConfigurationPost in interface org.apache.manifoldcf.core.interfaces.IConnectorprocessConfigurationPost in class org.apache.manifoldcf.core.connector.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.org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionpublic 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.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.org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionjava.io.IOException