
Originally Posted by
Ben Alex
I didn't see the return type in your interface's method signature, but you could use after-invocation filtering as I presume it's a List of Employee instances. Alternatively, write your own AccessDecisionVoter that can be configured to construct an empty Department object, call setId() with the value of the MethodInvocation argument, and then call AclManager to determine if the rights that apply for the object. That's a quick way if you didn't want to change your method signatures to accept Department instead of an integer.