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.EntityManager
default 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:PartialEvaluationStorageProvider
A callback method that will be called when building queries for realm resources to grant access to resources. It returns a list ofPredicate
instances representing the filters that should be applied to queries when querying realm resources.- Specified by:
getFilters
in 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:PartialEvaluationStorageProvider
A callback method that will be called when building queries for realm resources to deny access to resources. It returns a list ofPredicate
instances representing the filters that should be applied to queries when querying realm resources.- Specified by:
getNegateFilters
in interfacePartialEvaluationStorageProvider
- Parameters:
context
- the evaluation context.- Returns:
- the list of predicates
-