Class AttributeResolverServiceStrategy
java.lang.Object
net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
net.shibboleth.idp.attribute.resolver.spring.impl.AttributeResolverServiceStrategy
- All Implemented Interfaces:
Function<ApplicationContext,
,ServiceableComponent<AttributeResolver>> Component
,DestructableComponent
,IdentifiableComponent
,IdentifiedComponent
,InitializableComponent
public class AttributeResolverServiceStrategy
extends AbstractIdentifiableInitializableComponent
implements Function<ApplicationContext,ServiceableComponent<AttributeResolver>>
Strategy for summoning up an
AttributeResolverImpl
from a populated ApplicationContext
. We do this by
finding all the configured AttributeDefinition
and DataConnector
beans and bunging them into the
Attribute Resolver which we then initialize.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.slf4j.Logger
Class logger.private boolean
Whether to strip null attribute values.private boolean
Whether to attach DisplayInfo to attributes. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply
(ApplicationContext appContext) boolean
Do we strip nulls from attribute values.boolean
Do we allow addition of Display Information?void
setStripNulls
(boolean doStripNulls) Sets whether to strip nulls from attribute values.void
setSuppressDisplayInformation
(boolean what) Deprecated, for removal: This API element is subject to removal in a future version.Display Information should be consulted at point of useMethods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
setId
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
doInitialize, getId
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, initialize, isDestroyed, isInitialized
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.shibboleth.utilities.java.support.component.IdentifiedComponent
getId
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
stripNulls
private boolean stripNullsWhether to strip null attribute values. -
suppressDisplayInformation
private boolean suppressDisplayInformationWhether to attach DisplayInfo to attributes.
-
-
Constructor Details
-
AttributeResolverServiceStrategy
public AttributeResolverServiceStrategy()
-
-
Method Details
-
isStripNulls
public boolean isStripNulls()Do we strip nulls from attribute values.- Returns:
- Returns whether to strip nulls from attribute values
-
setStripNulls
public void setStripNulls(boolean doStripNulls) Sets whether to strip nulls from attribute values.- Parameters:
doStripNulls
- what to set
-
isSuppressDisplayInformation
public boolean isSuppressDisplayInformation()Do we allow addition of Display Information?- Returns:
- whether we are suppressing
-
setSuppressDisplayInformation
Deprecated, for removal: This API element is subject to removal in a future version.Display Information should be consulted at point of useSet whether we suppress addition of Display Information.- Parameters:
what
- true if we suppress the addition.
-
apply
@Nullable public ServiceableComponent<AttributeResolver> apply(@Nullable ApplicationContext appContext) - Specified by:
apply
in interfaceFunction<ApplicationContext,
ServiceableComponent<AttributeResolver>>
-