abstract class NodePermissionRuleGenerator : AllowRuleGenerator

Base class for all NodePermission based AllowRuleGenerators Provides a method which is able to check for a specific permission on a NodePermission for a specific GropiusUser

Inheritors

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun generatePredicateCondition(nodePermissionNode: Node, permission: Permission, permissionNames: List<String>): Condition

Generates the condition for the authorization Is meant to be used in the where part of an existential subquery If any permission in permissionNames is present, the condition evaluates to true

Link copied to clipboard
abstract fun generateRule(node: Node, rule: Rule, permission: Permission): Condition