[jboss-dev-forums] [JBoss Portal Development] - JBoss : create custom roles
Antoine Grinn
do-not-reply at jboss.com
Mon Mar 25 09:23:15 EDT 2013
Antoine Grinn [https://community.jboss.org/people/grinn78] created the discussion
"JBoss : create custom roles"
To view the discussion, visit: https://community.jboss.org/message/804604#804604
--------------------------------------------------------------
Hi,
I am working on a JBoss portal containing several pages.
These pages and the user having acces to these pages are define in the "...-object.xml" (using the <portal> => <page> => <security-constraint> => <policy-permission> => <role-name>)
Now I would like to modify this, in order for an administrateur to create a custom role from the application, without modifying the code and its xml.
So instead of defining which role has access to each page in the "....-object.xml", I would like to define it in my database.
I saw that I can set the <role-name> to <unchecked/> so every role has access to the page, but how can I then write in the code the differences of interface between users right and view?
Do you know if it is possible to hide/show different pages (so tabs, inside the application) depending on the database data of the user using JBoss?
Thank you,
Grinn
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/804604#804604]
Start a new discussion in JBoss Portal Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2014]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20130325/0b4efcc5/attachment.html
More information about the jboss-dev-forums
mailing list