Package org.keycloak.models.jpa
Interface JpaUserPartialEvaluationProvider
- All Superinterfaces:
PartialEvaluationStorageProvider
- All Known Implementing Classes:
JpaUserProvider
A
PartialEvaluationStorageProvider that provides support for partial evaluation when querying UserModel.-
Method Summary
Modifier and TypeMethodDescriptionjakarta.persistence.EntityManagerdefault List<jakarta.persistence.criteria.Predicate>getFilters(PartialEvaluationContext context) A callback method that will be called when building queries for realm resources to grant access to resources.default List<jakarta.persistence.criteria.Predicate>getNegateFilters(PartialEvaluationContext context) A callback method that will be called when building queries for realm resources to deny access to resources.
-
Method Details
-
getSession
KeycloakSession getSession() -
getEntityManager
jakarta.persistence.EntityManager getEntityManager() -
getFilters
Description copied from interface:PartialEvaluationStorageProviderA callback method that will be called when building queries for realm resources to grant access to resources. It returns a list ofPredicateinstances representing the filters that should be applied to queries when querying realm resources.- Specified by:
getFiltersin interfacePartialEvaluationStorageProvider- Parameters:
context- the evaluation context.- Returns:
- the list of predicates
-
getNegateFilters
default List<jakarta.persistence.criteria.Predicate> getNegateFilters(PartialEvaluationContext context) Description copied from interface:PartialEvaluationStorageProviderA callback method that will be called when building queries for realm resources to deny access to resources. It returns a list ofPredicateinstances representing the filters that should be applied to queries when querying realm resources.- Specified by:
getNegateFiltersin interfacePartialEvaluationStorageProvider- Parameters:
context- the evaluation context.- Returns:
- the list of predicates
-