Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.3-incubating
-
None
Description
Our current security interceptor allows security checks before the method invocation. Sometimes it is desirable to check the result of a method invocation, then throw a SecurityException and cause the transaction to be rolled back.
I propose to introduce the annotation @Result as a parameter annotation of our @Secures methods. If the annotation is present at one parameter of the method, the check will be done AFTER the invocation of the business method and can check the result of the invocation.