You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Steve Peterson (JIRA)" <de...@myfaces.apache.org> on 2007/04/04 23:35:32 UTC
[jira] Commented: (TOMAHAWK-754) Expose user role matching
algorithm
[ https://issues.apache.org/jira/browse/TOMAHAWK-754?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12486784 ]
Steve Peterson commented on TOMAHAWK-754:
-----------------------------------------
This will work for us. Thanks for the heads up on the new feature.
> Expose user role matching algorithm
> -----------------------------------
>
> Key: TOMAHAWK-754
> URL: https://issues.apache.org/jira/browse/TOMAHAWK-754
> Project: MyFaces Tomahawk
> Issue Type: Improvement
> Affects Versions: 1.1.3
> Reporter: Steve Peterson
> Attachments: UserRoleUtils.patch
>
>
> The attached patch refactors UserRoleUtils to create a new method:
> isInUserRole(String userRole)
> Methods isVisibleOnUserRole(UIComponent component) and isEnabledOnUserRole(UIComponent component) are modified to use the new method.
> The result of this change allows component writers to test for role membership directly, without having to instantiate a component. This is useful when a component creates a tree of children, and the contents of the tree can vary based on the user's membership in a role.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.