public abstract class AbstractAttributePredicate extends Object implements com.google.common.base.Predicate<ProfileRequestContext>
AttributeContext.| Modifier and Type | Field and Description |
|---|---|
private com.google.common.base.Function<ProfileRequestContext,AttributeContext> |
attributeContextLookupStrategy
Strategy function to lookup
AttributeContext. |
private 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) |
com.google.common.base.Function<ProfileRequestContext,AttributeContext> |
getAttributeContextLookupStrategy()
Get the lookup strategy to use to locate the
AttributeContext. |
protected abstract boolean |
hasMatch(Map<String,IdPAttribute> attributeMap)
Abstract implementation of the condition to evaluate.
|
boolean |
isUseUnfilteredAttributes()
Get whether to source the input attributes from the unfiltered set.
|
void |
setAttributeContextLookupStrategy(com.google.common.base.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 com.google.common.base.Function<ProfileRequestContext,AttributeContext> attributeContextLookupStrategy
AttributeContext.private boolean useUnfilteredAttributes
@Nonnull public com.google.common.base.Function<ProfileRequestContext,AttributeContext> getAttributeContextLookupStrategy()
AttributeContext.public void setAttributeContextLookupStrategy(@Nonnull com.google.common.base.Function<ProfileRequestContext,AttributeContext> strategy)
AttributeContext.strategy - lookup function to usepublic boolean isUseUnfilteredAttributes()
public void setUseUnfilteredAttributes(boolean flag)
Defaults to true.
flag - flag to setpublic boolean apply(@Nullable ProfileRequestContext input)
apply in interface com.google.common.base.Predicate<ProfileRequestContext>protected boolean allowNullAttributeContext()
protected abstract boolean hasMatch(@Nonnull@NonnullElements Map<String,IdPAttribute> attributeMap)
attributeMap - the attributes to evaluateCopyright © 1999–2020 Shibboleth Consortium. All rights reserved.