I like that idea. Less chance that an unintended conversion would occur.
-Adrian
Scott Gray wrote:
FYI and I only realized this the other day but beanshell supports
exactly this type of feature where you can specify things @and, @or and
etc. for use in xml
files http://www.beanshell.org/manual/syntax.html#Document_Friendly_Entities
I wonder if we do this it might be worth following the same convention.
Regards
Scott
HotWax Media
http://www.hotwaxmedia.com <http://www.hotwaxmedia.com/>
On 1/05/2009, at 5:34 AM, Jacopo Cappellato wrote:
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