Getting user roles programmatically in Oracle SOA Suite 11g
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...
精彩评论