@ThreadSafe public abstract class AbstractDataConnector extends AbstractResolverPlugin<Map<String,IdPAttribute>> implements DataConnector
| Modifier and Type | Field and Description |
|---|---|
private String |
failoverDataConnectorId
ID of the data connector to use if this one fails.
|
private Logger |
log
Class logger.
|
private String |
logPrefix
cache for the log prefix - to save multiple recalculations.
|
| Constructor and Description |
|---|
AbstractDataConnector() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Map<String,IdPAttribute> |
doDataConnectorResolve(AttributeResolutionContext resolutionContext,
AttributeResolverWorkContext workContext)
Retrieves a collection of attributes from some data source.
|
protected void |
doInitialize() |
Map<String,IdPAttribute> |
doResolve(AttributeResolutionContext resolutionContext,
AttributeResolverWorkContext workContext)
Perform the actual resolution.
|
String |
getFailoverDataConnectorId()
Gets the ID of the
AbstractDataConnector whose values will be used in the event that this data connector
experiences an error. |
protected String |
getLogPrefix()
Return a string which is to be prepended to all log messages.
|
void |
setFailoverDataConnectorId(String id)
Set the ID of the
AbstractDataConnector whose values will be used in the event that this data connector
experiences an error. |
doDestroy, 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, isDestroyedgetIddestroy@Nullable private String failoverDataConnectorId
@Nullable public String getFailoverDataConnectorId()
AbstractDataConnector whose values will be used in the event that this data connector
experiences an error.getFailoverDataConnectorId in interface DataConnectorAbstractDataConnector whose values will be used in the event that this data connector
experiences an errorpublic void setFailoverDataConnectorId(@Nullable String id)
AbstractDataConnector whose values will be used in the event that this data connector
experiences an error.id - ID of the AbstractDataConnector whose values will be used in the event that this data connector
experiences an error@Nullable public final Map<String,IdPAttribute> doResolve(@Nonnull AttributeResolutionContext resolutionContext, @Nonnull AttributeResolverWorkContext workContext) throws ResolutionException
#doDataConnectorResolve(AttributeResolutionContext). It serves as a future
extension point for introducing new common behavior.doResolve in class AbstractResolverPlugin<Map<String,IdPAttribute>>resolutionContext - current resolution contextworkContext - child context where intermediate results are trackedResolutionException - thrown if there is a problem resolving the attributesAbstractResolverPlugin.resolve(AttributeResolutionContext)protected void doInitialize()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
doInitialize in class AbstractResolverPlugin<Map<String,IdPAttribute>>net.shibboleth.utilities.java.support.component.ComponentInitializationException@Nullable protected abstract Map<String,IdPAttribute> doDataConnectorResolve(@Nonnull AttributeResolutionContext resolutionContext, @Nonnull AttributeResolverWorkContext workContext) throws ResolutionException
resolutionContext - current resolution contextworkContext - current resolver work contextResolutionException - thrown if there is a problem resolving the attributesCopyright © 1999–2014. All rights reserved.