[jboss-dev-forums] [Design of JBoss jBPM] - Re: Thinking about transition attrs

brittm do-not-reply at jboss.com
Tue Jun 12 19:22:05 EDT 2007


anonymous wrote : By returning a boolean true or false for displaying it or not 
The problem with the EL (afaik) is that it can't call a method, such that evaluating "isUserInRole()" will not work, nor will Set.contains(), even if we could get the appropriate objects in scope.  

We would need to ensure that EL has access to a complete listing of the user's roles in the form of a Map with [roleName:true] as entries.  Then the EL {userRoles["admin"]} would return 'true' if the user is in the 'admin' role and would return null if not.

This is mighty ugly (but it would work).  Though we still would need to figure out a way to produce the roles map and make it available.  I'm just brainstorming--does anyone have a clearer idea?

anonymous wrote : What about the namespace extensions?
Sounds like an option.  

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053763#4053763

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053763



More information about the jboss-dev-forums mailing list