public class CmisAuthorityConnector
extends org.apache.manifoldcf.authorities.authorities.BaseAuthorityConnector
| Modifier and Type | Class and Description |
|---|---|
protected static class |
CmisAuthorityConnector.AuthorizationResponseDescription
This is the cache object descriptor for cached access tokens from
this connector.
|
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.manifoldcf.core.interfaces.ICacheManager |
cacheManager
The cache manager.
|
static java.lang.String |
CONFIG_PARAM_ENDPOINT |
static java.lang.String |
CONFIG_PARAM_PASSWORD |
static java.lang.String |
CONFIG_PARAM_REPOSITORY_ID |
protected static java.lang.String |
CONFIG_PARAM_USER_TRANSLATION |
static java.lang.String |
CONFIG_PARAM_USERNAME |
protected static java.lang.String |
CONFIG_PARAM_USERNAME_REGEXP |
protected static org.apache.manifoldcf.core.interfaces.StringSet |
emptyStringSet |
protected java.lang.String |
endpoint |
static java.lang.String |
GLOBAL_DENY_TOKEN
This is the active directory global deny token.
|
protected static int |
LRUsize |
protected java.util.Map<java.lang.String,java.lang.String> |
parameters |
protected java.lang.String |
repositoryId |
protected static long |
responseLifetime |
| Constructor and Description |
|---|
CmisAuthorityConnector() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearThreadContext()
Clear thread context.
|
org.apache.manifoldcf.authorities.interfaces.AuthorizationResponse |
getAuthorizationResponse(java.lang.String userName)
Obtain the access tokens for a given user name.
|
protected org.apache.manifoldcf.authorities.interfaces.AuthorizationResponse |
getAuthorizationResponseUncached(java.lang.String userName)
Uncached version of the getAuthorizationResponse method.
|
org.apache.manifoldcf.authorities.interfaces.AuthorizationResponse |
getDefaultAuthorizationResponse(java.lang.String userName)
Obtain the default access tokens for a given user name.
|
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.
|
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.
|
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, getDefaultAccessTokenscheck, connect, deinstall, disconnect, getConfiguration, install, isConnected, outputConfigurationBody, outputConfigurationHeader, outputConfigurationHeader, pack, packFixedList, packList, packList, poll, processConfigurationPost, unpack, unpackFixedList, unpackList, viewConfigurationpublic 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_ENDPOINT
public static final java.lang.String CONFIG_PARAM_REPOSITORY_ID
protected static final java.lang.String CONFIG_PARAM_USERNAME_REGEXP
protected static final java.lang.String CONFIG_PARAM_USER_TRANSLATION
protected java.lang.String endpoint
protected java.lang.String repositoryId
protected java.util.Map<java.lang.String,java.lang.String> parameters
protected org.apache.manifoldcf.core.interfaces.ICacheManager cacheManager
protected static long responseLifetime
protected static int LRUsize
protected static org.apache.manifoldcf.core.interfaces.StringSet emptyStringSet
public static final java.lang.String GLOBAL_DENY_TOKEN
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.BaseConnectorpublic 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 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 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.IOExceptionpublic 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 org.apache.manifoldcf.authorities.interfaces.AuthorizationResponse getAuthorizationResponseUncached(java.lang.String userName)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
userName - is the user name or identifier.org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionpublic 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.BaseAuthorityConnectoruserName - is the user name or identifier.org.apache.manifoldcf.core.interfaces.ManifoldCFException