Friday, July 19, 2013

ADF Security Basics part 3:Applying Policy on Methods

Create a client interface method in AM.Go to Application Module xml and in the overview page generate the Impl classes.





In the Impl class Add a test method











Click on the client interface from Java option of AM overview page








The method will be added as below




From the resource grant screen











Create a ADF Method Resource as below












Assign the role as below




From the data control add method as button in the jspx page













From the disabled property of the commandline button give the following property











Give the same permission of method to the test page





Run the test page and login to the page after running. The button will be enabled.

Change the permission of test page to another role and see the button disabled, if that particular user doesnt have the permission in role2.


No comments:

Post a Comment