@ThreadSafe public final class ResolvedDataConnector extends AbstractDataConnector
ResolverPlugin.resolve(AttributeResolutionContext) are "free".
This proxy is immutable so all setter methods simply return.| Modifier and Type | Field and Description |
|---|---|
private Map<String,IdPAttribute> |
resolvedAttributes
The attributes produced by the resolved data connector.
|
private DataConnector |
resolvedConnector
The data connector that was resolved to produce the attributes.
|
| Constructor and Description |
|---|
ResolvedDataConnector(DataConnector connector,
Map<String,IdPAttribute> attributes)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,IdPAttribute> |
doDataConnectorResolve(AttributeResolutionContext resolutionContext,
AttributeResolverWorkContext workContext)
Retrieves a collection of attributes from some data source.
|
boolean |
equals(Object obj) |
com.google.common.base.Predicate<ProfileRequestContext> |
getActivationCondition()
Get the predicate which defines whether this plugin is active for a given request.
|
Set<ResolverPluginDependency> |
getDependencies()
Gets the unmodifiable list of dependencies for this plugin.
|
String |
getFailoverDataConnectorId()
Gets the ID of the
AbstractDataConnector whose values will be used in the event that this data connector
experiences an error. |
String |
getId() |
Map<String,IdPAttribute> |
getResolvedAttributes()
Gets the resolved attributes.
|
DataConnector |
getResolvedConnector()
Gets the wrapped data connector that was resolved.
|
int |
hashCode() |
boolean |
isInitialized() |
boolean |
isPropagateResolutionExceptions()
Get whether a
ResolutionException that occurred resolving attributes will be re-thrown. |
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. |
void |
setPropagateResolutionExceptions(boolean propagate)
Set whether an
AttributeResolutionContext that occurred resolving attributes will be re-thrown. |
String |
toString() |
doInitialize, doResolve, getLastFail, getLogPrefix, getNoRetryDelay, setLastFail, setNoRetryDelaydoDestroy, getProfileContextStrategy, resolve, setActivationCondition, setDependencies, setProfileContextStrategysetIddestroy, initialize, isDestroyedclone, finalize, getClass, notify, notifyAll, wait, wait, waitresolveinitializedestroy, isDestroyed@Nonnull private final DataConnector resolvedConnector
@Nullable private final Map<String,IdPAttribute> resolvedAttributes
public ResolvedDataConnector(@Nonnull DataConnector connector, @Nullable Map<String,IdPAttribute> attributes)
connector - data connector that was resolved to produce the attributesattributes - attributes produced by the resolved data connector@Nullable protected Map<String,IdPAttribute> doDataConnectorResolve(@Nonnull AttributeResolutionContext resolutionContext, @Nonnull AttributeResolverWorkContext workContext) throws ResolutionException
doDataConnectorResolve in class AbstractDataConnectorresolutionContext - current resolution contextworkContext - current resolver work contextResolutionException - thrown if there is a problem resolving the attributespublic boolean equals(Object obj)
equals in class AbstractResolverPlugin<Map<String,IdPAttribute>>@Nonnull @NonnullElements public Set<ResolverPluginDependency> getDependencies()
getDependencies in interface ResolverPlugin<Map<String,IdPAttribute>>getDependencies in class AbstractResolverPlugin<Map<String,IdPAttribute>>@Nullable public com.google.common.base.Predicate<ProfileRequestContext> getActivationCondition()
getActivationCondition in interface ResolverPlugin<Map<String,IdPAttribute>>getActivationCondition in class AbstractResolverPlugin<Map<String,IdPAttribute>>@Nullable public String getFailoverDataConnectorId()
AbstractDataConnector whose values will be used in the event that this data connector
experiences an error.getFailoverDataConnectorId in interface DataConnectorgetFailoverDataConnectorId in class AbstractDataConnectorAbstractDataConnector whose values will be used in the event that this data connector
experiences an error@Nonnull public String getId()
getId in interface IdentifiedComponentgetId in class AbstractIdentifiedInitializableComponentpublic int hashCode()
hashCode in class AbstractResolverPlugin<Map<String,IdPAttribute>>public boolean isPropagateResolutionExceptions()
ResolutionException that occurred resolving attributes will be re-thrown. Doing so
will cause the entire attribute resolution request to fail.isPropagateResolutionExceptions in interface ResolverPlugin<Map<String,IdPAttribute>>isPropagateResolutionExceptions in class AbstractResolverPlugin<Map<String,IdPAttribute>>ResolutionExceptions are propagated, false if notpublic void setFailoverDataConnectorId(String id)
AbstractDataConnector whose values will be used in the event that this data connector
experiences an error.setFailoverDataConnectorId in class AbstractDataConnectorid - ID of the AbstractDataConnector whose values will be used in the event that this data connector
experiences an errorpublic void setPropagateResolutionExceptions(boolean propagate)
AttributeResolutionContext that occurred resolving attributes will be re-thrown. Doing so
will cause the entire attribute resolution request to fail.setPropagateResolutionExceptions in class AbstractResolverPlugin<Map<String,IdPAttribute>>propagate - true if ResolutionExceptions are propagated, false if not@Nullable public Map<String,IdPAttribute> getResolvedAttributes()
@Nonnull public DataConnector getResolvedConnector()
public boolean isInitialized()
isInitialized in interface InitializableComponentisInitialized in class AbstractInitializableComponentCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.