Non-static operation. |
This operation returns if the current user or specified role is allowed to perform the provided action(s) on the provided resource. |
isAuthorized( resourceId : String, action : String ) : Boolean
isAuthorized( resourceId : String, actions : String[] ) : Boolean
isAuthorized( resourceId : String, action : String, role : String ) : Boolean
isAuthorized( resourceId : String, action : String, roles : String[] ) : Boolean
isAuthorized( resourceId : String, actions : String[], role : String ) : Boolean
isAuthorized( resourceId : String, actions : String[], roles : String[] ) : Boolean
Name | Type | Direction | Description | Allowed Values / Example | ||
---|---|---|---|---|---|---|
resourceID | String | in | Specify a service resource, e.g. a process event. | /processname/eventname | ||
action | String | in | Specify one of the actions to check against. | Allowed actions are read, write and list. | ||
actions | Array of String | in | Specify a list of actions to check against.
| |||
role | String | in | Specify a role to check against (instead of current user). | acme_manager | ||
roles | Array of String | in | Specify a list of roles to check against (instead of current user).
| |||
| Boolean | return | Returns whether the current user resp. provided role(s) is allowed to perform the specified action(s) on the provided resource. | true | Is authorized. | |
false | Is not authorized. |