public class CmisAuthorityConnector extends 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 ICacheManager |
cacheManager
The cache manager.
|
static String |
CONFIG_PARAM_ENDPOINT |
static String |
CONFIG_PARAM_PASSWORD |
static String |
CONFIG_PARAM_REPOSITORY_ID |
protected static String |
CONFIG_PARAM_USER_TRANSLATION |
protected static String |
CONFIG_PARAM_USERMAPPING
User name mapping parameter
|
static String |
CONFIG_PARAM_USERNAME |
protected static String |
CONFIG_PARAM_USERNAME_REGEXP |
protected static StringSet |
emptyStringSet |
protected String |
endpoint |
static String |
GLOBAL_DENY_TOKEN
This is the active directory global deny token.
|
protected static int |
LRUsize |
protected MatchMap |
matchMap
Match map for username mapping
|
protected Map<String,String> |
parameters |
protected String |
repositoryId |
protected static long |
responseLifetime |
_rcsid, RESPONSE_UNREACHABLE, RESPONSE_UNREACHABLE_ADDITIVE, RESPONSE_USERNOTFOUND, RESPONSE_USERNOTFOUND_ADDITIVE, RESPONSE_USERUNAUTHORIZED, RESPONSE_USERUNAUTHORIZED_ADDITIVE
currentContext, params
Constructor and Description |
---|
CmisAuthorityConnector() |
Modifier and Type | Method and Description |
---|---|
void |
clearThreadContext()
Clear thread context.
|
AuthorizationResponse |
getAuthorizationResponse(String userName)
Obtain the access tokens for a given user name.
|
protected AuthorizationResponse |
getAuthorizationResponseUncached(String userName)
Uncached version of the getAuthorizationResponse method.
|
AuthorizationResponse |
getDefaultAuthorizationResponse(String userName)
Obtain the default access tokens for a given user name.
|
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.
|
String |
processConfigurationPost(IThreadContext threadContext,
IPostParameters variableContext,
Locale locale,
ConfigParams parameters)
Process a configuration post.
|
void |
setThreadContext(IThreadContext tc)
Set thread context.
|
void |
viewConfiguration(IThreadContext threadContext,
IHTTPOutput out,
Locale locale,
ConfigParams parameters)
View configuration.
|
getAccessTokens, getDefaultAccessTokens
check, connect, deinstall, disconnect, getConfiguration, install, isConnected, outputConfigurationBody, outputConfigurationHeader, outputConfigurationHeader, pack, packFixedList, packList, packList, poll, processConfigurationPost, unpack, unpackFixedList, unpackList, viewConfiguration
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
check, connect, deinstall, disconnect, getConfiguration, install, isConnected, poll
public static final String CONFIG_PARAM_USERNAME
public static final String CONFIG_PARAM_PASSWORD
public static final String CONFIG_PARAM_ENDPOINT
public static final String CONFIG_PARAM_REPOSITORY_ID
protected static final String CONFIG_PARAM_USERMAPPING
protected static final String CONFIG_PARAM_USERNAME_REGEXP
protected static final String CONFIG_PARAM_USER_TRANSLATION
protected String endpoint
protected String repositoryId
protected ICacheManager cacheManager
protected MatchMap matchMap
protected static long responseLifetime
protected static int LRUsize
protected static StringSet emptyStringSet
public static final String GLOBAL_DENY_TOKEN
public void setThreadContext(IThreadContext tc) throws ManifoldCFException
setThreadContext
in interface IConnector
setThreadContext
in class BaseConnector
ManifoldCFException
public void clearThreadContext()
clearThreadContext
in interface IConnector
clearThreadContext
in class BaseConnector
public void outputConfigurationBody(IThreadContext threadContext, IHTTPOutput out, Locale locale, ConfigParams parameters, String tabName) throws ManifoldCFException, IOException
outputConfigurationBody
in interface IConnector
outputConfigurationBody
in class BaseConnector
threadContext
- 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.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
threadContext
- 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.ManifoldCFException
IOException
public String processConfigurationPost(IThreadContext threadContext, IPostParameters variableContext, Locale locale, ConfigParams parameters) throws ManifoldCFException
processConfigurationPost
in interface IConnector
processConfigurationPost
in class BaseConnector
threadContext
- 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.ManifoldCFException
public void viewConfiguration(IThreadContext threadContext, IHTTPOutput out, Locale locale, ConfigParams parameters) throws ManifoldCFException, IOException
viewConfiguration
in interface IConnector
viewConfiguration
in class BaseConnector
threadContext
- 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.ManifoldCFException
IOException
public AuthorizationResponse getDefaultAuthorizationResponse(String userName)
getDefaultAuthorizationResponse
in interface IAuthorityConnector
getDefaultAuthorizationResponse
in class BaseAuthorityConnector
userName
- is the user name or identifier.protected AuthorizationResponse getAuthorizationResponseUncached(String userName) throws ManifoldCFException
userName
- is the user name or identifier.ManifoldCFException
public AuthorizationResponse getAuthorizationResponse(String userName) throws ManifoldCFException
getAuthorizationResponse
in interface IAuthorityConnector
getAuthorizationResponse
in class BaseAuthorityConnector
userName
- is the user name or identifier.ManifoldCFException