Class TableCapabilities
java.lang.Object
com.kingsrook.qqq.middleware.javalin.TableCapabilities
HTTP requests may only use the capabilities a table declares, in the same
way frontends only offer them: a table without TABLE_COUNT cannot be counted
and a table without TABLE_EXPORT cannot be exported, over any route.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckCapabilityThrowing(String tableName, Capability capability) Throw a permission-denied error when the table lacks the capability.
-
Method Details
-
checkCapabilityThrowing
public static void checkCapabilityThrowing(String tableName, Capability capability) throws QPermissionDeniedException Throw a permission-denied error when the table lacks the capability. Unknown tables are left to the action's own (permission) checks.- Throws:
QPermissionDeniedException
-