Usecase : How to implement security to a specific component in ADF ? For eg : Enable/Disable specific component (Button/Inputtext/Panel/etc...) on a page based on the role of the logged in user.
Implementation:
- Create a new class as shown below
- Define a permission in jazn-xml as shown below
- Define 'Disabled' property of a component as shown below
disabled="#{securityContext.userGrantedPermission['permissionClass=fm.core.security.FMADFPermission;target=emp.viewComponents;action=view']}"
Reference : http://docs.oracle.com/cd/E15523_01/web.1111/b31974/adding_security.htm#ADFFD877
Implementation:
- Create a new class as shown below
- Define a permission in jazn-xml as shown below
- Define 'Disabled' property of a component as shown below
disabled="#{securityContext.userGrantedPermission['permissionClass=fm.core.security.FMADFPermission;target=emp.viewComponents;action=view']}"
Reference : http://docs.oracle.com/cd/E15523_01/web.1111/b31974/adding_security.htm#ADFFD877
No comments:
Post a Comment