You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@click.apache.org by "Malcolm Edgar (JIRA)" <ji...@apache.org> on 2009/03/31 13:59:51 UTC

[jira] Commented: (CLK-406) Menu improvements - plug-able role checking.

    [ https://issues.apache.org/jira/browse/CLK-406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12694073#action_12694073 ] 

Malcolm Edgar commented on CLK-406:
-----------------------------------

+1 on these comments

I face exactly the same issue when using ACEGI for user permissions.

The Menu Control is difficult to extend. Having the factory methods in the class, is problematic.  For backward compatibility reasons, it may be better to create a new menu package in extras where we can have the basic Menu control, some Factory class and a pluggable role/permissions interface.

regards Malcolm Edgar

> Menu improvements - plug-able role checking.
> --------------------------------------------
>
>                 Key: CLK-406
>                 URL: https://issues.apache.org/jira/browse/CLK-406
>             Project: Click
>          Issue Type: Improvement
>          Components: extras
>            Reporter: Demetrios Kyriakis
>
> Please improve the Menu Control, by allowing the user to have a plug-able role cheking for the menu items.
> Right now the Menu Control is using HttpRequest#isUserInRole(String role), but most webapplications
> don't use this strategy for user/roles management, so this method returns false for all those cases :(.
> This is very limiting, making the existing Menu Control useless for most user applications, thus forcing the users
> to make their own menu controls (or the hack the original one). 
> Please allow to set a different method for this operation by the user (if no other is used, of course, the default one - mentioned above - would be used as before - so 100% backwards compatible).
> Thank you,
> Demetrios.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.