public class RDBMSDataConnector extends AbstractSearchDataConnector<ExecutableStatement>
DataConnector that queries a relation database in order to retrieve
attribute data.| Modifier and Type | Field and Description |
|---|---|
private DataSource |
dataSource
JDBC data source for retrieving
Connections. |
private boolean |
defaultMappingStrategy
Whether the default mapping strategy is being used.
|
private boolean |
defaultValidator
Whether the default validator is being used.
|
private org.slf4j.Logger |
log
Class logger.
|
private boolean |
readOnlyConnection
Whether the JDBC connection is read-only.
|
| Constructor and Description |
|---|
RDBMSDataConnector()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInitialize() |
DataSource |
getDataSource()
Gets the JDBC data source for retrieving
Connections. |
boolean |
isConnectionReadOnly()
Gets whether this data connector uses read-only connections.
|
protected Map<String,IdPAttribute> |
retrieveAttributes(ExecutableStatement statement)
Attempts to retrieve the attribute from the database.
|
void |
setConnectionReadOnly(boolean isReadOnly)
Sets whether this data connector uses read-only connections.
|
void |
setDataSource(DataSource source)
Sets the JDBC data source for retrieving
Connections. |
void |
setMappingStrategy(MappingStrategy strategy)
Sets the strategy for mapping from search results to a collection of
IdPAttributes. |
void |
setValidator(Validator validator)
Sets the validator used to validate this connector.
|
doDataConnectorResolve, getExecutableSearchBuilder, getMappingStrategy, getResultsCache, getValidator, setExecutableSearchBuilder, setResultsCachedoResolve, getFailoverDataConnectorId, getLastFail, getLogPrefix, getNoRetryDelay, setFailoverDataConnectorId, setLastFail, setNoRetryDelaydoDestroy, equals, getActivationCondition, getDependencies, getProfileContextStrategy, hashCode, isPropagateResolutionExceptions, resolve, setActivationCondition, setDependencies, setProfileContextStrategy, setPropagateResolutionExceptionssetIdgetIddestroy, initialize, isDestroyed, isInitializedclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetActivationCondition, getDependencies, isPropagateResolutionExceptions, resolveinitialize, isInitializeddestroy, isDestroyedgetIdprivate final org.slf4j.Logger log
private DataSource dataSource
Connections.private boolean readOnlyConnection
private boolean defaultValidator
private boolean defaultMappingStrategy
public DataSource getDataSource()
Connections.Connectionspublic void setDataSource(@Nonnull DataSource source)
Connections.source - JDBC data source for retrieving Connectionspublic boolean isConnectionReadOnly()
public void setConnectionReadOnly(boolean isReadOnly)
isReadOnly - whether this data connector uses read-only connectionspublic void setValidator(@Nonnull Validator validator)
setValidator in class AbstractSearchDataConnector<ExecutableStatement>validator - used to validate this connectorpublic void setMappingStrategy(@Nonnull MappingStrategy strategy)
IdPAttributes.setMappingStrategy in class AbstractSearchDataConnector<ExecutableStatement>strategy - strategy for mapping from search results to a collection of IdPAttributesprotected void doInitialize()
throws ComponentInitializationException
doInitialize in class AbstractSearchDataConnector<ExecutableStatement>ComponentInitializationException@Nullable protected Map<String,IdPAttribute> retrieveAttributes(ExecutableStatement statement) throws ResolutionException
retrieveAttributes in class AbstractSearchDataConnector<ExecutableStatement>statement - statement used to retrieve data from the databaseResolutionException - thrown if there is a problem retrieving data from the database or transforming that
data into IdPAttributesCopyright © 1999–2017 Shibboleth Consortium. All rights reserved.