Interface JpaUserPartialEvaluationProvider

All Superinterfaces:
PartialEvaluationStorageProvider
All Known Implementing Classes:
JpaUserProvider

public interface JpaUserPartialEvaluationProvider extends PartialEvaluationStorageProvider
A PartialEvaluationStorageProvider that provides support for partial evaluation when querying UserModel.
  • Method Summary

    Modifier and Type
    Method
    Description
    jakarta.persistence.EntityManager
     
    default List<jakarta.persistence.criteria.Predicate>
    A callback method that will be called when building queries for realm resources to grant access to resources.
    default List<jakarta.persistence.criteria.Predicate>
    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

      default List<jakarta.persistence.criteria.Predicate> getFilters(PartialEvaluationContext context)
      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 of Predicate instances representing the filters that should be applied to queries when querying realm resources.
      Specified by:
      getFilters in interface PartialEvaluationStorageProvider
      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 of Predicate instances representing the filters that should be applied to queries when querying realm resources.
      Specified by:
      getNegateFilters in interface PartialEvaluationStorageProvider
      Parameters:
      context - the evaluation context.
      Returns:
      the list of predicates