onfigure auth authorizationService.saveAuthorization(auth); The authorization object can be configured either for a user or a group:
auth.setUserId("john"); -OR- auth.setGroupId("management");
and a resource:
auth.setResource("processDefinition"); auth.setResourceId("2313");
finally the permissions to access that resource can be assigned:
auth.addPermission(Permissions.READ);
and the authorization object is saved:
authorizationService.saveAuthorization(auth);
As a result, the given user or group will have permission to READ the referenced process definition.
@author Daniel Meyer
@since 7.0