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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to