Generates the authorization condition

Return

a condition generator which generates the authorization condition

Parameters

nodeDefinition

the type to generate the authorization condition for

permission

context for condition creation


private fun generateAuthorizationCondition(nodeDefinition: NodeDefinition, permission: Permission, isAllowed: Boolean): CypherConditionGenerator

Generates the authorization condition for a specific type

Return

a condition generator which generates the authorization condition

Parameters

nodeDefinition

the type to generate the authorization condition for

permission

context for condition creation

isAllowed

if true, allow is assumed to be present and only disallow conditions are checked