Which is the best approach to do dinamic security ?
I want to get the restrictions from my database instead from my pages.xml
How can i do this ?
Something like this should work:
Pages.instance().getPage("/mypage.xhtml").setRestriction("{restriction expression goes here}");