Tuesday, September 3, 2013

How to apply Security at Entity level in ADF Application

This blog outlines about applying security at entity level,For eg : Admin should able to perform Create/Update/Delete/Read whereas User Role should only read the data and can't perform any other operation.

We can achieve this by applying security & authorization at entity level as shown below

- Select the Entity in Project, Open the structure view, Right click on Entity in Structure window, Choose Security , Select 'Update' operation as shown below


- Open Jazn.xml, Select the Entity, Select the Role for which you want to grant 'Update' access, select as shown below

- Launch the page by logging in using Admin Role, Below is how screen looks like, Here user can able to update existing data.

- Launch the page by logging in using 'User' Role, Below is how screen looks like, Here user can only view data and can't perform any updates.



No comments:

Post a Comment