@ThreadSafe public final class ResolvedAttributeDefinition extends AbstractAttributeDefinition
ResolverPlugin.resolve(AttributeResolutionContext) are "free".
This proxy is immutable so all setter methods simply return.| Modifier and Type | Field and Description |
|---|---|
private IdPAttribute |
resolvedAttribute
The attribute produced by the resolved attribute definition.
|
private AttributeDefinition |
resolvedDefinition
The attribute definition that was resolved to produce the attribute.
|
| Constructor and Description |
|---|
ResolvedAttributeDefinition(AttributeDefinition definition,
IdPAttribute attribute)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected IdPAttribute |
doAttributeDefinitionResolve(AttributeResolutionContext resolutionContext,
AttributeResolverWorkContext workContext)
Creates and populates the values for the resolved attribute.
|
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<AttributeEncoder<?>> |
getAttributeEncoders()
Gets the unmodifiable encoders used to encode the values of this attribute in to protocol specific formats.
|
Set<ResolverPluginDependency> |
getDependencies()
Gets the unmodifiable list of dependencies for this plugin.
|
Map<Locale,String> |
getDisplayDescriptions()
Gets the localized human readable descriptions of attribute.
|
Map<Locale,String> |
getDisplayNames()
Gets the localized human readable names of the attribute.
|
String |
getId() |
IdPAttribute |
getResolvedAttribute()
Gets the resolved attribute.
|
AttributeDefinition |
getResolvedDefinition()
Gets the wrapped attribute definition that was resolved.
|
int |
hashCode() |
boolean |
isDependencyOnly()
Gets whether this attribute definition is only a dependency and thus its values should never be released outside
the resolver.
|
boolean |
isInitialized() |
boolean |
isPropagateResolutionExceptions()
Get whether a
ResolutionException that occurred resolving attributes will be re-thrown. |
void |
setDependencyOnly(boolean isDependencyOnly)
Sets whether this attribute definition is only a dependency and thus its values should never be released outside
the resolver.
|
void |
setDisplayDescriptions(Map<Locale,String> descriptions)
Sets the localized human readable descriptions of attribute.
|
void |
setDisplayNames(Map<Locale,String> names)
Sets the localized human readable names of the attribute.
|
void |
setPropagateResolutionExceptions(boolean propagate)
Set whether an
AttributeResolutionContext that occurred resolving attributes will be re-thrown. |
String |
toString() |
doInitialize, doResolve, getLogPrefix, getSourceAttributeId, setAttributeEncoders, setSourceAttributeIddoDestroy, getProfileContextStrategy, resolve, setActivationCondition, setDependencies, setProfileContextStrategysetIddestroy, initialize, isDestroyedclone, finalize, getClass, notify, notifyAll, wait, wait, waitresolveinitializedestroy, isDestroyed@Nonnull private final AttributeDefinition resolvedDefinition
@Nullable private final IdPAttribute resolvedAttribute
public ResolvedAttributeDefinition(@Nonnull AttributeDefinition definition, @Nullable IdPAttribute attribute)
definition - attribute definition that was resolved to produce the given attributeattribute - attribute produced by the given attribute definition@Nullable protected IdPAttribute doAttributeDefinitionResolve(@Nonnull AttributeResolutionContext resolutionContext, @Nonnull AttributeResolverWorkContext workContext) throws ResolutionException
doAttributeDefinitionResolve in class AbstractAttributeDefinitionresolutionContext - current attribute resolution contextworkContext - current resolver work contextResolutionException - thrown if there is a problem resolving and creating the attributepublic boolean equals(Object obj)
equals in class AbstractResolverPlugin<IdPAttribute>@Nonnull @NonnullElements public Set<AttributeEncoder<?>> getAttributeEncoders()
getAttributeEncoders in interface AttributeDefinitiongetAttributeEncoders in class AbstractAttributeDefinition@Nonnull @NonnullElements public Set<ResolverPluginDependency> getDependencies()
getDependencies in interface ResolverPlugin<IdPAttribute>getDependencies in class AbstractResolverPlugin<IdPAttribute>@Nonnull @NonnullElements public Map<Locale,String> getDisplayDescriptions()
getDisplayDescriptions in interface AttributeDefinitiongetDisplayDescriptions in class AbstractAttributeDefinition@Nonnull @NonnullElements public Map<Locale,String> getDisplayNames()
getDisplayNames in interface AttributeDefinitiongetDisplayNames in class AbstractAttributeDefinition@Nullable public com.google.common.base.Predicate<ProfileRequestContext> getActivationCondition()
getActivationCondition in interface ResolverPlugin<IdPAttribute>getActivationCondition in class AbstractResolverPlugin<IdPAttribute>@Nonnull public String getId()
getId in interface IdentifiedComponentgetId in class AbstractIdentifiedInitializableComponent@Nullable public IdPAttribute getResolvedAttribute()
public int hashCode()
hashCode in class AbstractResolverPlugin<IdPAttribute>public boolean isDependencyOnly()
isDependencyOnly in interface AttributeDefinitionisDependencyOnly in class AbstractAttributeDefinitionpublic 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<IdPAttribute>isPropagateResolutionExceptions in class AbstractResolverPlugin<IdPAttribute>ResolutionExceptions are propagated, false if notpublic void setDependencyOnly(boolean isDependencyOnly)
setDependencyOnly in class AbstractAttributeDefinitionisDependencyOnly - whether this attribute definition is only a dependencypublic void setDisplayDescriptions(Map<Locale,String> descriptions)
setDisplayDescriptions in class AbstractAttributeDefinitiondescriptions - localized human readable descriptions of attributepublic void setDisplayNames(Map<Locale,String> names)
setDisplayNames in class AbstractAttributeDefinitionnames - localized human readable names of the attributepublic 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<IdPAttribute>propagate - true if ResolutionExceptions are propagated, false if not@Nonnull public AttributeDefinition getResolvedDefinition()
public boolean isInitialized()
isInitialized in interface InitializableComponentisInitialized in class AbstractInitializableComponentCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.