Class UseTablePermissionCustomPermissionChecker

java.lang.Object
com.kingsrook.qqq.backend.core.actions.permissions.UseTablePermissionCustomPermissionChecker
All Implemented Interfaces:
CustomPermissionChecker, InitializableViaCodeReference

public class UseTablePermissionCustomPermissionChecker extends Object implements CustomPermissionChecker, InitializableViaCodeReference
Simple implementation of a Custom Permission Checker, that takes tableName and TablePermissionSubType name properties, and checks if the session has that table-permission-sub-type for the specified table name. Should handle correctly the permission rules applied to the table in question, e.g., NOT_PROTECTED (effectively making the object checked by this class NOT_PROTECTED), HAS_ACCESS - to tie this object to ${tableName}.hasAccess, READ_WRITE, or READ_INSERT_UPDATE_DELETE, which then bases the permission name on the tablePermissionSubType.