Yes it is possible.
Extend the Identity class and override the hasPermission(String name, String action,
Object...arg) method.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127733#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...