T - type of executable searchpublic abstract class AbstractSearchDataConnector<T extends ExecutableSearch> extends AbstractDataConnector
DataConnector containing functionality common to data connectors that
retrieve attribute data by searching a data source.| Modifier and Type | Field and Description |
|---|---|
private Validator |
connectorValidator
Validator for validating this data connector.
|
private org.slf4j.Logger |
log
Class logger.
|
private MappingStrategy |
mappingStrategy
Strategy for mapping search results to a collection of
IdPAttributes. |
private Cache<String,Map<String,IdPAttribute>> |
resultsCache
Query result cache.
|
private ExecutableSearchBuilder<T> |
searchBuilder
Builder used to create executable searches.
|
| Constructor and Description |
|---|
AbstractSearchDataConnector() |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,IdPAttribute> |
doDataConnectorResolve(AttributeResolutionContext resolutionContext,
AttributeResolverWorkContext workContext) |
protected void |
doInitialize() |
ExecutableSearchBuilder<T> |
getExecutableSearchBuilder()
Gets the builder used to create executable searches.
|
MappingStrategy |
getMappingStrategy()
Gets the strategy for mapping from search results to a collection of
IdPAttributes. |
Cache<String,Map<String,IdPAttribute>> |
getResultsCache()
Gets the cache used to cache search results.
|
Validator |
getValidator()
Gets the validator used to validate this connector.
|
protected abstract Map<String,IdPAttribute> |
retrieveAttributes(T executable)
Attempts to retrieve attributes from the data source.
|
void |
setExecutableSearchBuilder(ExecutableSearchBuilder<T> builder)
Sets the builder used to create the executable searches.
|
void |
setMappingStrategy(MappingStrategy strategy)
Sets the strategy for mapping from search results to a collection of
IdPAttributes. |
void |
setResultsCache(Cache<String,Map<String,IdPAttribute>> cache)
Sets the cache used to cache search results.
|
void |
setValidator(Validator validator)
Sets the validator used to validate this connector.
|
doResolve, 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, isDestroyedgetId@Nonnull private final org.slf4j.Logger log
private ExecutableSearchBuilder<T extends ExecutableSearch> searchBuilder
private Validator connectorValidator
private MappingStrategy mappingStrategy
IdPAttributes.private Cache<String,Map<String,IdPAttribute>> resultsCache
public ExecutableSearchBuilder<T> getExecutableSearchBuilder()
public void setExecutableSearchBuilder(@Nonnull ExecutableSearchBuilder<T> builder)
builder - builder used to create the executable searchespublic Validator getValidator()
public void setValidator(@Nonnull Validator validator)
validator - used to validate this connectorpublic MappingStrategy getMappingStrategy()
IdPAttributes.IdPAttributespublic void setMappingStrategy(@Nonnull MappingStrategy strategy)
IdPAttributes.strategy - strategy for mapping from search results to a collection of IdPAttributes@Nonnull public Cache<String,Map<String,IdPAttribute>> getResultsCache()
public void setResultsCache(@Nullable Cache<String,Map<String,IdPAttribute>> cache)
cache - cache used to cache search results@Nullable protected abstract Map<String,IdPAttribute> retrieveAttributes(@Nonnull T executable) throws ResolutionException
executable - used to retrieve data from the data sourceResolutionException - thrown if there is a problem retrieving data from the data source@Nullable protected Map<String,IdPAttribute> doDataConnectorResolve(@Nonnull AttributeResolutionContext resolutionContext, @Nonnull AttributeResolverWorkContext workContext) throws ResolutionException
doDataConnectorResolve in class AbstractDataConnectorResolutionExceptionprotected void doInitialize()
throws ComponentInitializationException
doInitialize in class AbstractDataConnectorComponentInitializationExceptionCopyright © 1999–2017 Shibboleth Consortium. All rights reserved.