开发者

Getting user roles programmatically in Oracle SOA Suite 11g

开发者 https://www.devze.com 2023-01-07 21:36 出处:网络
Someone knows how to get a user\'s roles in a Oracle SOA 11g BPMN application from a backing bean in a TaskFlow??

Someone knows how to get a user's roles in a Oracle SOA 11g BPMN application from a backing bean in a TaskFlow??

I need to know the role of the user in order to activate some fields, my idea is to get it from开发者_运维技巧 the backing bean and do something. is there a better way to do this?


You have several options : EL :

#{securityContext.userInRole}

But not sure if checking users is what you need. You can get a hold of the actual role list

oracle.adf.share.security.identitymanagement.UserProfile = ADFContext.getCurrent().getSecurityContext().getUserProfile();

You can also use groovy in the VO/EO layer, but talking about SOA, I'm not sure if thats really applicable to you...

0

精彩评论

暂无评论...
验证码 换一张
取 消