public final class ResolverSupport extends Object
| Modifier | Constructor and Description |
|---|---|
private |
ResolverSupport()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Iterable<T> |
getFilteredIterable(Iterable<T> candidates,
Set<com.google.common.base.Predicate<T>> predicates,
boolean satisfyAny,
boolean onEmptyPredicatesReturnEmpty)
Return a filtered
Iterable of the specified candidates based on the supplied set of Predicate
and the satisfyAny flag. |
static <T,E extends com.google.common.base.Predicate<T>> |
getPredicates(CriteriaSet criteriaSet,
Class<E> predicateCriterionType,
CriterionPredicateRegistry<T> registry)
Obtain a set of
Predicate based on a CriteriaSet. |
@Nonnull public static <T,E extends com.google.common.base.Predicate<T>> Set<com.google.common.base.Predicate<T>> getPredicates(@Nullable CriteriaSet criteriaSet, @Nullable Class<E> predicateCriterionType, @Nullable CriterionPredicateRegistry<T> registry) throws ResolverException
Predicate based on a CriteriaSet.T - the type of target which the returned predicates can evaluateE - the type of criterion predicates to extract directly from the criteria setcriteriaSet - the criteria set to evaluatepredicateCriterionType - the optional type to evaluate and extract directly from the criteria setregistry - the optional registry of mappings from Criterion to PredicateResolverException - if there is a fatal error evaluating the criteria set@Nonnull public static <T> Iterable<T> getFilteredIterable(@Nullable Iterable<T> candidates, @Nullable Set<com.google.common.base.Predicate<T>> predicates, boolean satisfyAny, boolean onEmptyPredicatesReturnEmpty)
Iterable of the specified candidates based on the supplied set of Predicate
and the satisfyAny flag.T - the type of target candidatescandidates - the candidates to filterpredicates - the predicates with which to filtersatisfyAny - if true the predicates will be logically OR-ed, otherwise they are logically AND-edonEmptyPredicatesReturnEmpty - if true and no predicates are supplied, then return an empty iterable;
otherwise return the original input candidatesCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.