Adrian, this is really interesting.However I think it is time to start thinking to define our own xml friendly keywords for && and || operators; I would like to express that statement with something like this:
<set field="hasPermission" value="${(hasPermission['update:context1'] OR hasPermission['update:context2']) AND hasPermission['update:context3']}" type="Boolean"/>
Jacopo On Apr 30, 2009, at 7:20 PM, Adrian Crum wrote:
<set field="hasPermission" value="$ {(hasPermission['update:context1'] || hasPermission['update:context2']) && hasPermission['update:context3']}" type="Boolean"/>or something like that. I'm still working out the details. -Adrian Andrew Zeneski wrote:That sounds cool. I'm not sure what that would really look like, but nevertheless sounds really cool! :) If you need anything from me let me know...Andrew On Apr 30, 2009, at 1:00 PM, Adrian Crum wrote:Andrew Zeneski wrote:I'd be happy to discuss additional changes as well (which aren't yet documented) like adding support to check multiple permissions at once, returning a Map of results from that permission check. So, if you or anyone else has a wish list for security, let me know so I can get it all incorporated at the same time.Btw, I'm working on adding an extension to the UEL that will allow permission expressions.-Adrian
smime.p7s
Description: S/MIME cryptographic signature