[jboss-user] [JBoss Seam] - Re: security-config.xml equivalent in 2.0?

2007-10-04 Thread [EMAIL PROTECTED]
The Drools team also has another product, BRMS, which you might find useful. It can be used to manage a rules repository, and the latest CR of Seam also has support for loading rules from one of these repositories (BRMS is built on Seam too :). View the original post : http://www.jboss.com/in

[jboss-user] [JBoss Seam] - Re: security-config.xml equivalent in 2.0?

2007-10-04 Thread samdoyle
Thanks Shane, I'll take a look whenever I get some spare cycles. I remember seeing a useful Eclipse plugin that helps in defining the rules. It's unfortunate there isn't one for NetBeans. =/ "[EMAIL PROTECTED]" wrote : I recommend the drools reference documentation as a good starting point fo

[jboss-user] [JBoss Seam] - Re: security-config.xml equivalent in 2.0?

2007-10-03 Thread [EMAIL PROTECTED]
I recommend the drools reference documentation as a good starting point for obtaining a fundamental understanding of the default rules language, that's pretty much all I've read myself. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091325#4091325 Reply to t

[jboss-user] [JBoss Seam] - Re: security-config.xml equivalent in 2.0?

2007-10-03 Thread samdoyle
This works awesome though, thanks again! S.D. "[EMAIL PROTECTED]" wrote : What does the source for your rule look like? It should be something like this: | | rule IsUserSuperUser | | no-loop | | activation-group "permissions" | | when | | check: PermissionCheck(name =

[jboss-user] [JBoss Seam] - Re: security-config.xml equivalent in 2.0?

2007-10-03 Thread samdoyle
Ah thanks, no I'm preety much a noob to drools. Can you point me to some documentation with some solid examples.? I was looking at a very detailed grammar document but I'm a bit stretched for time for delving into that at the moment. I just checked out the code from cvs and was going to build th

[jboss-user] [JBoss Seam] - Re: security-config.xml equivalent in 2.0?

2007-10-03 Thread [EMAIL PROTECTED]
What does the source for your rule look like? It should be something like this: rule IsUserSuperUser | no-loop | activation-group "permissions" | when | check: PermissionCheck(name == "rolecheck", action == "super-user", granted == false) | Role(name == 'super-user') | then

[jboss-user] [JBoss Seam] - Re: security-config.xml equivalent in 2.0?

2007-10-03 Thread samdoyle
Hi Shane, This didn't work either. | rich:tab switchType="page" immediate="true" | rendered="#{s:hasPermission('super-user', null, null)}" label="Agency | Admin" name="AgencyAdmin" action="AgencyAdmin"> | | | | | This tab is rendered as part of th

[jboss-user] [JBoss Seam] - Re: security-config.xml equivalent in 2.0?

2007-10-03 Thread samdoyle
Great thanks for the information and the workaround. I was't aware that the hasPermission would also check the role as well. I'll give this a try. S.D. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091221#4091221 Reply to the post : http://www.jboss.com/in

[jboss-user] [JBoss Seam] - Re: security-config.xml equivalent in 2.0?

2007-10-02 Thread [EMAIL PROTECTED]
Oops, you're absolutely right. In seamspace it works because the role check is performed within the context of a (rule-based) permission check. I've fixed this in CVS so that RuleBasedIdentity now checks the security context for the existence of the role (as well as checking the subject), howe

[jboss-user] [JBoss Seam] - Re: security-config.xml equivalent in 2.0?

2007-10-02 Thread samdoyle
Alright so I followed the procedures for installing drools and configuring the security.drl properly based on examples. I'm pretty sure I have it setup properly since it was complaining when I was experimenting with options in the security.drl. In anycase I have this restriction to render a tab.

[jboss-user] [JBoss Seam] - Re: security-config.xml equivalent in 2.0?

2007-10-02 Thread [EMAIL PROTECTED]
Seam hasn't had a security-config.xml file since version 1.1.1. If you wish to define a hierarchical relationship between roles, you can write security rules for this. In fact, the seamspace example does exactly this - here's an example: rule AdminIsAUser | salience 10 | no-loop | wh

[jboss-user] [JBoss Seam] - Re: security-config.xml equivalent in 2.0?

2007-10-02 Thread samdoyle
Anyone?? Thanks, S.D. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090804#4090804 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090804 ___ jboss-user mailing list jboss-us

[jboss-user] [JBoss Seam] - Re: security-config.xml equivalent in 2.0?

2007-10-02 Thread samdoyle
"[EMAIL PROTECTED]" wrote : You configure seam security through pages.xml How do you define the hierarchical relationship amongst roles through the pages.xml? I don't see anywhere that provides that which is what was provided in the security-config.xml? Thanks, S.D. View the original post : h

[jboss-user] [JBoss Seam] - Re: security-config.xml equivalent in 2.0?

2007-10-02 Thread [EMAIL PROTECTED]
You configure seam security through pages.xml View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090663#4090663 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090663 ___ jboss-use