Package com.axelor.meta.query
Interface QueryAccess
- All Superinterfaces:
SecurityFilters
- All Known Implementing Classes:
PlatformQueryAccess
What a query may read: the models and fields its analysis checks, and the row predicates its
rendering weaves into the root, every join and every subquery.
PlatformQueryAccess is the platform's own permissions. A caller holding a query to
further rules passes its own implementation, which narrows the platform's.
-
Field Summary
Fields inherited from interface com.axelor.meta.query.render.SecurityFilters
NONE -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckFieldRead(ResolvedModel model, String path, String label) Refuses readingpathonmodel, and every model the path passes through.voidcheckModelRead(ResolvedModel model, String target) Refuses readingmodel.Methods inherited from interface com.axelor.meta.query.render.SecurityFilters
predicate
-
Method Details
-
checkModelRead
Refuses readingmodel.- Parameters:
target- how a refusal names what the query reads- Throws:
org.apache.shiro.authz.UnauthorizedException- when the model may not be read
-
checkFieldRead
Refuses readingpathonmodel, and every model the path passes through.- Parameters:
label- how a refusal names the part of the query that reads it- Throws:
org.apache.shiro.authz.UnauthorizedException- when a field or model may not be readIllegalArgumentException- when the path names no field, for an access that checks fields at all:PlatformQueryAccesschecks nothing in a trusted context (no user)
-