Class ReadEntityQueryContext

java.lang.Object
io.jmix.data.accesscontext.ReadEntityQueryContext
All Implemented Interfaces:
AccessContext

public class ReadEntityQueryContext extends Object implements AccessContext
Defines an authorization point for modifying JPQL queries by adding JOIN and WHERE clauses.
  • Field Details

  • Constructor Details

  • Method Details

    • getEntityClass

      public MetaClass getEntityClass()
    • addJoinAndWhere

      public void addJoinAndWhere(String join, String where)
    • getResultQuery

      public JmixQuery getResultQuery()
    • buildQuery

      protected void buildQuery()
    • printQuery

      protected static String printQuery(String query)
    • explainConstraints

      @Nullable public String explainConstraints()
      Description copied from interface: AccessContext
      Returns a human-readable explanation of constraints applied to the current context instance for logging of authorization decisions. Null if the current context does not impose any constraints.
      Specified by:
      explainConstraints in interface AccessContext