How to retrieve the current windows logged on user in ADF Model
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Your model layer should be independent of your UI layer, so the right way to do this is to have a service method on your Application Module that accepts a parameter – than have your UI layer which knows the user who logged in call that method and pass the parameter to the model layer.
That said, if you are using ADF security, then you can access the currently logged in user using groovy expressions or EL expressions.
More on this in the security seminar here:
http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/adfinsidersecurity/adfinsidersecurity.html