【问题标题】:Getting user roles programmatically in Oracle SOA Suite 11g在 Oracle SOA Suite 11g 中以编程方式获取用户角色
【发布时间】:2010-07-14 23:53:38
【问题描述】:

有人知道如何从任务流中的支持 bean 获取用户在 Oracle SOA 11g BPMN 应用程序中的角色??

我需要知道用户的角色才能激活一些字段,我的想法是从支持 bean 中获取它并做一些事情。有没有更好的方法来做到这一点?

【问题讨论】:

    标签: oracle11g soa roles oracle-adf


    【解决方案1】:

    您有多种选择: 艾尔:

    #{securityContext.userInRole}
    

    但不确定是否需要检查用户。 您可以获取实际的角色列表

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

    您也可以在 VO/EO 层使用 groovy,但谈到 SOA,我不确定这是否真的适用于您...

    【讨论】:

    • 是的,这解决了没有 BPM 的 ADF 应用程序的这个问题。不幸的是,我发现我的问题是 BPM 没有将身份验证信息发送给人工任务,因此当您使用此代码时,UserProfile 为空,并且 ADFContext.getCurrent().getSecurityContext().getUserName() 是匿名的.因此,我在没有结果的情况下问了这个问题:stackoverflow.com/q/3259840/194789
    猜你喜欢
    • 2016-07-07
    • 2011-05-07
    • 2014-09-11
    • 2015-11-11
    • 2019-07-18
    • 2019-05-11
    • 1970-01-01
    • 1970-01-01
    • 2014-12-07
    相关资源
    最近更新 更多