Package net.shibboleth.shared.resolver
Class ResolverSupport
java.lang.Object
net.shibboleth.shared.resolver.ResolverSupport
Support class for resolver implementations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Iterable<T>getFilteredIterable(Iterable<T> candidates, Set<Predicate<T>> predicates, boolean satisfyAny, boolean onEmptyPredicatesReturnEmpty) getPredicates(CriteriaSet criteriaSet, Class<E> predicateCriterionType, CriterionPredicateRegistry<T> registry) Obtain a set ofPredicatebased on aCriteriaSet.
-
Constructor Details
-
ResolverSupport
private ResolverSupport()Constructor.
-
-
Method Details
-
getFilteredIterable
@Nonnull public static <T> Iterable<T> getFilteredIterable(@Nullable Iterable<T> candidates, @Nullable Set<Predicate<T>> predicates, boolean satisfyAny, boolean onEmptyPredicatesReturnEmpty) Return a filteredIterableof the specified candidates based on the supplied set ofPredicateand the satisfyAny flag.- Type Parameters:
T- the type of target candidates- Parameters:
candidates- 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 candidates- Returns:
- the filtered iteration of the candidates