[Yanel-dev] Assigning new group to a user at runtime
Michael Wechner
michael.wechner at wyona.com
Wed Dec 15 15:27:37 CET 2010
On 12/15/10 11:54 AM, Balz Schreier wrote:
> Hi Michael,
> I fully understand the performance reasons and I think this has to be =
> like this. I actually just wanted to know whether I have missed any =
> API possibility to update the groups.
>
> So my suggestion would be to extend the Yanel Core API with a new =
> method, where the whole group and other security stuff is redone again =
> and attached to the session (Maybe we can reuse the very same code =
> that does the initial stuff).
The problem is accessing the session of a particular user from within =
another user, but
let me check if we might be able to re-use stuff from
YANEL_HOME/src/contributions/resources/sessionmanager/
or otherwise move this information into a more accessible cache like for =
example ehcache
>
> What do you think?
I agree, but we need to overcome the technical hurdles ;-)
Cheers
Michael
>
> On Wed, Dec 15, 2010 at 11:43 AM, Michael Wechner =
> <michael.wechner at wyona.com <mailto:michael.wechner at wyona.com>> wrote:
>
> Hi Balu
>
>
> On 12/15/10 10:03 AM, Balz Schreier wrote:
>
> Hi,
>
> I have the usecase where a user gets assigned a new group
> while he is logged in.
> I noticed that Yanel reflects this change only after a login
> of that user, means as long as the user stays logged in, the
> user does not benefit from the new assignment yet.
>
>
> the reason for that is that for performance reasons the groups
> (and its parents and parents) are loaded
> during login and attached to the session, because these are used
> for access control, and since every "html request" has many other
> requests as a consequence it's good to have this "cached".
>
> Now when you update the group settings the sessions are not being
> touched and hence one
> does not notice such a change.
>
> I am not saying that this is good, but the question is how we can
> do this better, but please see below ...
>
>
> Question: How can I tell Yanel to reinitialize the User
> (Identity) and its Groups ?
>
>
> - we could try to change the session
> - we could change the implementation by using conf/ehcache.xml
> instead the sessions.
>
> Any other suggestions?
>
> Thanks
>
> Michael
>
>
> Thanks
> Cheers
> Balz
>
>
> -- =
> Yanel-development mailing list Yanel-development at wyona.com
> <mailto:Yanel-development at wyona.com>
> http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wyona.org/pipermail/yanel-development/attachments/2010121=
5/05d23dea/attachment.htm
More information about the Yanel-development
mailing list