Class AllowDenyCollectionManager<T>
java.lang.Object
org.springframework.kafka.support.AllowDenyCollectionManager<T>
- Type Parameters:
T- Collection generic type
Class for managing Allow / Deny collections and its predicates.
- Since:
- 28/12/20
- Author:
- Tomaz Fernandes
-
Constructor Summary
ConstructorsConstructorDescriptionAllowDenyCollectionManager(Collection<T> allowList, Collection<T> denyList) AllowDenyCollectionManager(Collection<T> allowList, Collection<T> denyList, Collection<Predicate<T>> predicates) -
Method Summary
Modifier and TypeMethodDescriptionbooleanareAllowed(T[] objects) static <T> AllowDenyCollectionManager<T>createManagerFor(Collection<T> allowList, Collection<T> denyList) static <T> AllowDenyCollectionManager<T>createManagerFor(Collection<T> allowList, Collection<T> denyList, Collection<Predicate<T>> predicates) getDefaultPredicate(Collection<T> allowList, Collection<T> denyList) booleanboolean
-
Constructor Details
-
AllowDenyCollectionManager
-
AllowDenyCollectionManager
public AllowDenyCollectionManager(Collection<T> allowList, Collection<T> denyList, Collection<Predicate<T>> predicates)
-
-
Method Details
-
getDefaultPredicate
-
isAllowed
-
areAllowed
-
createManagerFor
public static <T> AllowDenyCollectionManager<T> createManagerFor(Collection<T> allowList, Collection<T> denyList) -
createManagerFor
public static <T> AllowDenyCollectionManager<T> createManagerFor(Collection<T> allowList, Collection<T> denyList, Collection<Predicate<T>> predicates) -
hasNoRestrictions
public boolean hasNoRestrictions()
-