"gavin.king(a)jboss.com" wrote : Oh, by the way, all this is totally unnecessary.
You don't need two EMs at all. All you need is this:
|
| <core:filter name="clientFilter"
enabled="#{identity.loggedIn}">
| | <core:name>clientFilter</core:name>
| | <core:parameters>
| | <key>clientId</key>
| | <value>#{clientId}</value>
| | </core:parameters>
| | </core:filter>
|
| It's really as easy as that :-)
Just curious.. Is there a way to attach the filter to all of the entities without the
annotations shown in the other posting? I had originally thought of doing it via an
aspect but I like the idea of the filters shown here. I'd like to avoid the
annotations on every entity. (I guess I'm lazy!! :-) )
Thanks!!!
Gary
PS. I guess I shouldn't say "every" entity. There will be ones
excluded...
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059346#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...