-
1. Re: need drools permissions hello world application
visumagic Dec 29, 2008 4:12 PM (in response to visumagic)After a long investigation I found that , hasPermission is limitted to 3 parameters (name,action,target) - in target I can pass only one arg(not var args)
Identity:hasPermissions has var args feature but , it's not working.I did't find any additional advantages , it's simple to write my permissions api in java/groovy
Unfortunately I did't found much docs to explain this. For beginners it will be much difficult to understand.
I hope there will me more features on this area in the next releases of Seam.
thanks
raghu -
2. Re: need drools permissions hello world application
visumagic Dec 29, 2008 4:16 PM (in response to visumagic)That too I totally confused with seamspace sample application.It's security rules are in draft (most of them are not implemented)
Useful links:
http://chiralsoftware.com/seam-security-rules/jboss-rules.seam
http://shane.bryzak.com/articles/seamsecuritygetsanupgrade
(only google cached version is available)thanks
raghu -
3. Re: need drools permissions hello world application
visumagic Dec 30, 2008 8:52 AM (in response to visumagic)Finally I got it..
i did a mistake ..
drools got user account into it's working memory , we can directly
point that.Working rule:
rule UserChitchatCheck no-loop activation-group "permissions" when u: User() //Chitchat(u2:user) Chitchat(user.id == u.id) check: PermissionCheck(action == "cdelete") // Role(name == "user") then //System.out.println("cdelete:"+n); //System.out.println("cdelete:"+u.id+"-"+u2.id); check.grant(); end
I agree, drools is simple
if u know
:)thanks
raghu