I need something like that, but not really. I would like to be able to get a strongly typed way of knowing what action is being performed.
So, check in the AOP, where I only allow access to this action, if the user has rights to this action.
The problem with using a string to determine which rule to check is that if any developer renames the action, I will not get a compilation error telling me that my rule is broken.
source share