Re: Resource authorisation scenario: dealing with non-application wide permissions

2010-03-15 Thread Fernando Wermus
Danielle, I run out into the same problem. Did you solve it? if so, how? thanks in advance On Thu, Feb 11, 2010 at 11:50 PM, Daniele Dellafiore ilde...@gmail.comwrote: Hi. Imagine this scenario: a webapp that allows creation of groups of people. There is the owner, the administrator

Resource authorisation scenario: dealing with non-application wide permissions

2010-02-11 Thread Daniele Dellafiore
Hi. Imagine this scenario: a webapp that allows creation of groups of people. There is the owner, the administrator and the normal user for every group. Like google groups, yahoo groups, facebook groups, a chat... a lot of examples :) If we define permission as string concatenation, I can have

Re: Resource authorisation scenario: dealing with non-application wide permissions

2010-02-11 Thread Igor Vaynberg
your components are the ones that carry context, so... boolean isActionAuthorized(Component component, Action action) { if (component instanceof GroupAware) { Group group=((GroupAware)component).getGroup(); ... -igor On Thu, Feb 11, 2010 at 5:50 PM, Daniele Dellafiore