Accessing the application's security information

You can access the application's security information at the ViewController layer either through Java code in a managed bean or through Expression Language (EL) in your JSF pages by utilizing the methods available via the bean. These methods will allow you to determine whether authorization and/or authentication are enabled in your application, the roles assigned to the authenticated user, whether the user is assigned a specific role, and so on. At the ADF-BC level, security information can be accessed through the methods available in the oracle.jbo.Session.

In this recipe, we will see how to access the application's security information from a ...

Get Oracle JDeveloper 11gR2 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.