Package io.jmix.data.accesscontext
Class LoadValuesAccessContext
java.lang.Object
io.jmix.data.accesscontext.LoadValuesAccessContext
- All Implemented Interfaces:
AccessContext
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Metadata
protected boolean
protected final QueryParser
protected String
-
Constructor Summary
ConstructorDescriptionLoadValuesAccessContext
(String queryString, QueryTransformerFactory transformerFactory, Metadata metadata) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDeniedSelectedIndex
(int index) Returns a human-readable explanation of constraints applied to the current context instance for logging of authorization decisions.getSelectedIndexes
(MetaPropertyPath propertyPath) boolean
void
-
Field Details
-
queryString
-
queryParser
-
metadata
-
permitted
protected boolean permitted -
deniedSelectedIndexes
-
-
Constructor Details
-
LoadValuesAccessContext
public LoadValuesAccessContext(String queryString, QueryTransformerFactory transformerFactory, Metadata metadata)
-
-
Method Details
-
getEntityClasses
-
getSelectedPropertyPaths
-
getAllPropertyPaths
-
setDenied
public void setDenied() -
isPermitted
public boolean isPermitted() -
getDeniedSelectedIndexes
-
getSelectedIndexes
-
addDeniedSelectedIndex
public void addDeniedSelectedIndex(int index) -
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 interfaceAccessContext
-