public abstract class AbstractAttributePredicate extends Object implements Predicate<ProfileRequestContext>
AttributeContext.| Modifier and Type | Field and Description |
|---|---|
private Function<ProfileRequestContext,AttributeContext> |
attributeContextLookupStrategy
Strategy function to lookup
AttributeContext. |
private org.slf4j.Logger |
log
Class logger.
|
private boolean |
useUnfilteredAttributes
Whether to look at filtered or unfiltered attributes.
|
| Constructor and Description |
|---|
AbstractAttributePredicate()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
allowNullAttributeContext()
Get the result of the predicate in the case the attribute context is null.
|
boolean |
apply(ProfileRequestContext input) |
protected abstract boolean |
hasMatch(Map<String,IdPAttribute> attributeMap)
Abstract implementation of the condition to evaluate.
|
void |
setAttributeContextLookupStrategy(Function<ProfileRequestContext,AttributeContext> strategy)
Set the lookup strategy to use to locate the
AttributeContext. |
void |
setUseUnfilteredAttributes(boolean flag)
Set whether to source the input attributes from the unfiltered set.
|
@Nonnull private final org.slf4j.Logger log
@Nonnull private Function<ProfileRequestContext,AttributeContext> attributeContextLookupStrategy
AttributeContext.private boolean useUnfilteredAttributes
public void setAttributeContextLookupStrategy(@Nonnull Function<ProfileRequestContext,AttributeContext> strategy)
AttributeContext.strategy - lookup function to usepublic void setUseUnfilteredAttributes(boolean flag)
Defaults to true.
flag - flag to setpublic boolean apply(@Nullable ProfileRequestContext input)
apply in interface Predicate<ProfileRequestContext>protected boolean allowNullAttributeContext()
protected abstract boolean hasMatch(@Nonnull@NonnullElements Map<String,IdPAttribute> attributeMap)
attributeMap - the attributes to evaluateCopyright © 1999–2017 Shibboleth Consortium. All rights reserved.