[jboss-user] [JBoss Seam] - Re: Seam Security

lightbulb432 do-not-reply at jboss.com
Wed Feb 7 18:03:12 EST 2007


I'll give it a shot, thanks.


How would you use enums as roles added to the identity? Right now I'm using an enum but it expects strings, so instead of having a simple enum with just { ROLE1, ROLE2 }, I have to have a constructor and String property in the enum.

I also must refer to it as myEnumEntry.getStringProperty() instead of just myEnumEntry. Is there any support for using enums as roles, or must I convert everything to a String before doing it?

I figure enums could be a nice, clean, and simple way of doing this...? (An example of where enums are appropriate, no?)

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4012698#4012698

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4012698



More information about the jboss-user mailing list