class RelatedToAdminNodePermissionRuleGenerator(val nodePermissionDefinition: NodeDefinition) : NodePermissionRuleGenerator
Permission rule generator used to check if a node is connected via NodePermission.RELATED_TO_NODE_PERMISSION to an NodePermission with NodePermission.ADMIN The Permission must be declared with a parameter containing the max amount of relationships to traverse until the NodePermission
Used e.g. to check for NodePermission.READ on NodePermission and IMSProject
Parameters
nodePermissionDefinition
used to generate Cypher DSL node for NodePermission
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