add REST API interceptors for handling more diverse permissions (identity links, variables, conditional events)#3141
Conversation
b89cd9a to
0fc2b64
Compare
|
I now applied the style settings files of the project, which I had forgotten to use. |
|
Thanks for the PR @tiffmaelite.
I understand where you are coming from. However, we are not using that pattern in the interceptors anywhere else. Therefore, can we please use dedicated methods for each action. e.g.
In addition to that some of the endpoints are invoking the access instance info by id interceptor, e.g. when getting the case instance identity links. Perhaps here we should not invoke that interceptor and only invoke the access identity links one. |
|
@filiphr : API was changed as requested |
fixed |
3925e8d to
e3040d4
Compare
add license headers to new files fix code style
4ba8f16 to
1c74615
Compare
keep feature of ensuring existence of entity for which identity links are accessed or modified apply review comments to ensure the existence check is done before calling the interceptors and to pass all relevant parameters to the interceptors
1c74615 to
4f67263
Compare
filiphr
left a comment
There was a problem hiding this comment.
Thanks for the changes @tiffmaelite. I've added some more comments where we can make some things more granular. Can you please have a look at my last comments and let me know what you think
fc42e6c to
e998ca6
Compare
…r and add interceptor of identity links for definitions
d14d395 to
eea0403
Compare
…hecks + add specific interception points for creating / updating / deleting variables
done |
494c4af to
71a21ab
Compare
…terceptors-for-identitylinks # Conflicts: # modules/flowable-cmmn-rest/src/main/java/org/flowable/cmmn/rest/service/api/CmmnRestApiInterceptor.java # modules/flowable-cmmn-rest/src/main/java/org/flowable/cmmn/rest/service/api/repository/CaseDefinitionResource.java # modules/flowable-cmmn-rest/src/main/java/org/flowable/cmmn/rest/service/api/runtime/caze/BaseVariableResource.java # modules/flowable-cmmn-rest/src/main/java/org/flowable/cmmn/rest/service/api/runtime/caze/CaseInstanceVariableDataResource.java # modules/flowable-cmmn-rest/src/main/java/org/flowable/cmmn/rest/service/api/runtime/caze/CaseInstanceVariableResource.java # modules/flowable-cmmn-rest/src/main/java/org/flowable/cmmn/rest/service/api/runtime/task/TaskBaseResource.java # modules/flowable-cmmn-rest/src/main/java/org/flowable/cmmn/rest/service/api/runtime/task/TaskVariableResource.java # modules/flowable-rest/src/main/java/org/flowable/rest/service/api/BpmnRestApiInterceptor.java # modules/flowable-rest/src/main/java/org/flowable/rest/service/api/repository/ProcessDefinitionResource.java # modules/flowable-rest/src/main/java/org/flowable/rest/service/api/runtime/process/BaseExecutionVariableResource.java # modules/flowable-rest/src/main/java/org/flowable/rest/service/api/runtime/process/BaseProcessInstanceResource.java # modules/flowable-rest/src/main/java/org/flowable/rest/service/api/runtime/process/ExecutionVariableResource.java # modules/flowable-rest/src/main/java/org/flowable/rest/service/api/runtime/process/ProcessInstanceResource.java # modules/flowable-rest/src/main/java/org/flowable/rest/service/api/runtime/process/ProcessInstanceVariableResource.java # modules/flowable-rest/src/main/java/org/flowable/rest/service/api/runtime/task/TaskVariableResource.java
71a21ab to
72615b8
Compare
|
replaced by 022b6ac |
I extended the CMMN REST API interceptor and the BPMN REST API interceptor such that it becomes possible to react on a request to access, create, edit or delete identity links for cases, processes and tasks.
In the first draft, I also made the new method generic enough to be able to use it in the future for other kinds of action intercepting, if it were to become a use case (e.g. need to intercept requests to alter entity links, comments or attachments)
Check List: