annotation class Authorization(val name: String, val allow: Array<Rule> = [], val allowFromRelated: Array<String> = [], val disallow: Array<Rule> = [], val allowAll: Boolean = false)
Defines an authorization permission for a Node To get the authorization definition for a specific Node, the annotations on the class and all subclasses are merged.
Parameters
name
defines which authorization permission is defined (e.g. READ)
allow
rules which allow access, access is only granted if any of the rules evaluates to true. Works in combination with allowFromRelated
allowFromRelated
allow access can also be inherited from related nodes, must be equal to a relation property name. Works in combination with allow
disallow
rules which disallow access, if any rule evaluates to true, access is not granted (independent of allow and allowFromRelated)
allowAll
if true, allow is always granted