You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Aaron Evans <aa...@yahoo.ca> on 2005/11/04 16:39:46 UTC
[J2] - Page Manager/Profiler Question
I read the document J2-page-manager-profiling.sxw which was very helpful to
understanding a little more about how the Page Manager and Profiling rules are
applied.
However, I have a question. Suppose I have a user that is a member of 3 roles,
user, manager and admin and I am using the role-group profiling rule.
How do I know what order the roles will appear in in the Profiling Rule supplied
to the PageManager and therefore, which role will take priority?
Suppose I want to force it to always consider them in this order:
WEB-INF/pages/_role/admin
WEB-INF/pages/_role/manager
WEB-INF/pages/_role/user
Is this possible?
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: [J2] - Page Manager/Profiler Question
Posted by Randy Watler <wa...@wispertel.net>.
Aaron Evans wrote:
>I read the document J2-page-manager-profiling.sxw which was very helpful to
>understanding a little more about how the Page Manager and Profiling rules are
>applied.
>
>However, I have a question. Suppose I have a user that is a member of 3 roles,
>user, manager and admin and I am using the role-group profiling rule.
>
>How do I know what order the roles will appear in in the Profiling Rule supplied
>to the PageManager and therefore, which role will take priority?
>
>Suppose I want to force it to always consider them in this order:
>WEB-INF/pages/_role/admin
>WEB-INF/pages/_role/manager
>WEB-INF/pages/_role/user
>
>Is this possible?
>
This problem has certainly come up before. I dont think we have any
generic support for this at the moment.
However, I believe there are two approaches to address this
functionality gap:
1. customize the SecurityValve or UserManager component to add the role
principals to the user Subject in the order you'd like them evaluated in
the Profiler.
2. write a custom profiler criteria, (requires a new profiler rule),
that orders the roles pulled from the user Subject and applies them
accordingly.
With the recent addition of Profiler Spring configuration for available
profiler criteria, #2 is much easier than it has been until recently.
Please feel free to add JIRA issue against the profiler for this
functionality if you think the effort in coding this is prohibitive.
Randy
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org