Class LoadValuesAccessContext

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

public class LoadValuesAccessContext extends Object implements AccessContext
Defines an authorization point for entity attributes in a JPQL query loading scalar values.
  • Field Details

    • queryString

      protected String queryString
    • queryParser

      protected final QueryParser queryParser
    • metadata

      protected final Metadata metadata
    • permitted

      protected boolean permitted
    • deniedSelectedIndexes

      protected List<Integer> deniedSelectedIndexes
  • Constructor Details

  • Method Details

    • getEntityClasses

      public Collection<MetaClass> getEntityClasses()
    • getSelectedPropertyPaths

      public Collection<MetaPropertyPath> getSelectedPropertyPaths()
    • getAllPropertyPaths

      public Collection<MetaPropertyPath> getAllPropertyPaths()
    • setDenied

      public void setDenied()
    • isPermitted

      public boolean isPermitted()
    • getDeniedSelectedIndexes

      public List<Integer> getDeniedSelectedIndexes()
    • getSelectedIndexes

      public List<Integer> getSelectedIndexes(MetaPropertyPath propertyPath)
    • addDeniedSelectedIndex

      public void addDeniedSelectedIndex(int index)
    • 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