How do I get the roles allowed to invoke a method from within a session bean?
It seems that I can query the container:
Set methodRoles = container.getMethodPermissions(mi.getMethod(), iface);
And then call doesUserHaveRole, but how do I get a reference to the container from within a session bean?
In essence, all I want to do is find out if the currently logged in person has permission to read (get methods), write (set methods), create (ejbCreate) and delete (ejbRemove) a particular entity so I can use this information to enable/disable certain features in a swing based fat client.
What is the best way of getting this information?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989192#3989192
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989192
Hi Norman,
I checked all my xml descriptors. Everything looks ok.
What version of seam and jboss are you using?
Could you do me a favour and try to reproduce the error:
1. Create 10 nested conversations by clicking 10 times on the "Nested" link.
2. Switch to converstion with counter id 5
3. End the conversation by clicking the "End" link
Now only the conversation with counter 5 disappears, even though all counters with id's greater or equal than 5 should disappear.
If I reload the page, then everything is displayed correctly.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989184#3989184
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989184