-
1. Re: Adding permissions to Identity
matt.drees Aug 14, 2007 3:10 PM (in response to wiberto)No, out-of-the-box, there's no way to use hasPermission without using RuleBasedIdentity.
If you want, though, you can extend Identity and override the hasPermission() method to do whatever you want it to do. -
2. Re: Adding permissions to Identity
wiberto Aug 14, 2007 4:43 PM (in response to wiberto)Then how do I make Seam use my Identiy class instead of it's own?
Do I use the class atribute in the <security:identity/> tag in components.xml? -
3. Re: Adding permissions to Identity
wiberto Aug 14, 2007 7:01 PM (in response to wiberto)I tried using the class attribute in the components.xml, but it still creates an Identity object and not mine.
How can I have seam use my own Identity object? -
4. Re: Adding permissions to Identity
matt.drees Aug 14, 2007 10:55 PM (in response to wiberto)I haven't tried it, but I think you do something like this.
<component name="org.jboss.seam.security.identity" class="my.IdentityExtension"> <property name="authenticateMethod">#{authenticator.authenticate}</property> </component>
If it's not that, then it's something close to that. -
5. Re: Adding permissions to Identity
pmuir Aug 15, 2007 4:57 AM (in response to wiberto)As Matt says.
-
6. Re: Adding permissions to Identity
wiberto Aug 15, 2007 11:51 AM (in response to wiberto)I'll give it a shot. Thanks!!
Jose -
7. Re: Adding permissions to Identity
monkeyden Aug 15, 2007 12:08 PM (in response to wiberto)Pete,
Would you say that this is the XML alternative to the @Install(precedence=[x]) approach or are they somehow mutually exclusive? -
8. Re: Adding permissions to Identity
wiberto Aug 15, 2007 2:52 PM (in response to wiberto)Worked like a charm. Thanks for the help!