Class AbstractAttributeResolutionLookupFunction<Type>
- java.lang.Object
-
- net.shibboleth.idp.attribute.resolver.context.navigate.AbstractAttributeResolutionLookupFunction<Type>
-
- Type Parameters:
Type- the type of data returned by the function
- All Implemented Interfaces:
Function<ProfileRequestContext,Type>,ContextDataLookupFunction<ProfileRequestContext,Type>
- Direct Known Subclasses:
AttributeIssuerIdLookupFunction,AttributePrincipalLookupFunction,AttributeRecipientIdLookupFunction,ResolutionLabelLookupFunction
public abstract class AbstractAttributeResolutionLookupFunction<Type> extends Object implements ContextDataLookupFunction<ProfileRequestContext,Type>
Base class for a function that takes aProfileRequestContextand requires access to anAttributeResolutionContext.
-
-
Field Summary
Fields Modifier and Type Field Description private Function<ProfileRequestContext,AttributeResolutionContext>attributeResolutionContextLookupStrategyStrategy used to locate theAttributeResolutionContextassociated with a givenProfileRequestContext.
-
Constructor Summary
Constructors Constructor Description AbstractAttributeResolutionLookupFunction()Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Typeapply(ProfileRequestContext input)protected abstract TypedoApply(AttributeResolutionContext input)Method that performs eventual lookup of target data.voidsetAttributeResolutionContextLookupStrategy(Function<ProfileRequestContext,AttributeResolutionContext> strategy)Sets the strategy used to locate theAttributeResolutionContextassociated with a givenProfileRequestContext.
-
-
-
Field Detail
-
attributeResolutionContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,AttributeResolutionContext> attributeResolutionContextLookupStrategy
Strategy used to locate theAttributeResolutionContextassociated with a givenProfileRequestContext.
-
-
Method Detail
-
setAttributeResolutionContextLookupStrategy
public void setAttributeResolutionContextLookupStrategy(@Nonnull Function<ProfileRequestContext,AttributeResolutionContext> strategy)Sets the strategy used to locate theAttributeResolutionContextassociated with a givenProfileRequestContext.- Parameters:
strategy- strategy used to locate theAttributeResolutionContextassociated with a givenProfileRequestContext
-
apply
@Nullable public Type apply(@Nullable ProfileRequestContext input)
- Specified by:
applyin interfaceFunction<ProfileRequestContext,Type>
-
doApply
@Nullable protected abstract Type doApply(@Nonnull AttributeResolutionContext input)
Method that performs eventual lookup of target data.- Parameters:
input- the context to examine- Returns:
- the data to return
-
-