Search This Blog

Monday, March 8, 2010

OAF - Hiding a Function/Page based on responsibility

Hiding based on responsibility
Best way to implement your Business logic is functional security.
1. Create a new function (no parameters and URL), say XX_SEC_FUNC

2. Attach it to the menu that is used in your responsibility.
In the page, just enter ${oa.FunctionSecurity.BENEFITS_GUEST} in the Rendered property.

Now Go to -> System administrator -> Security -> Responsibility

1. to hide the text exclude the function(XX_SEC_FUNC) in the responsibility.

2. to show it delete the function(XX_SEC_FUNC) from the exclusion list.
this is very flexible and can be configured easily. No code modification needed.And if you want to extend the functionality to multiple responsibilities, then it can be easily done

No comments:

Post a Comment