OBIEE 12c。使用XML中的权限在标头中创建自定义链接

问题描述 投票:1回答:2
<link id="l3" name="LInkName" description="Desc" src="URL" target="blank" iconSmall="common/info_ena.png" >
       <locations>
          <location name="header" insertBefore="home"/>
       </locations>
    </link>

我需要在此处添加特权限制,如果用户没有BIServiceAdministrator角色,则必须不显示此链接。

我在Oracle帮助中检查了这个,但只有:

link:privilege可选字符串指定必须授予用户查看链接的权限名称。权限表示为表达式,如以下示例所示:privileges.Access ['Global Answers'] && privileges.Access ['Global Delivers']

我尝试使用这个的一些变体,但所有这些都不起作用(没有特权 - 链接工作)

14
<link id="l2" name="LinkName" description="LinkDesc" src="URL" target="blank" iconSmall="common/info_ena.png" >
       <privileges>
          <privilege.Access['Global Answers']/>
       </privileges>
       <locations>
          <location name="header" insertBefore="home"/>
       </locations>
    </link>
13  
    <link id="l2" name="LinkName" description="LinkDesc" src="URL" target="blank" iconSmall="common/info_ena.png" >
       <privileges>
          <privilege.Access['Global Answers']="true"/>
       </privileges>
       <locations>
          <location name="header" insertBefore="home"/>
       </locations>
    </link>
12
    <link id="l2" name="LinkName" description="LinkDesc" src="URL" target="blank" iconSmall="common/info_ena.png" privileges.Access['Global Answers']="true">
       <locations>
          <location name="header" insertBefore="home"/>
       </locations>
    </link>
11
    <link id="l2" name="LinkName" description="LinkDesc" src="URL" target="blank" iconSmall="common/info_ena.png" >
       <privilege>
          <privileges.Access['Global Answers']="true"/>
       </privilege>
       <locations>
          <location name="header" insertBefore="home"/>
       </locations>
    </link>
9
    <link id="l2" name="LinkName" description="LinkDesc" 
    src="URL" target="blank" iconSmall="common/info_ena.png" privileges.isAdmin = true>
       <locations>
          <location name="getstarted" />
       </locations>
    </link>
oracle12c weblogic12c obiee
2个回答
0
投票

1.)不要重复您的链接ID。它是一个ID,应该是唯一的。

2.)解决方案是

Privileges是link元素的一个属性。如果您有任何疑问,最好查看xml文件的.xsd!


0
投票

现在我有正确的决定:

<link id="l3" name="LinkName" description="Desc" src="URL" target="blank" iconSmall="common/info_ena.png" privilege = "privileges.Access['Global Admin']">
       <locations>
          <location name="header" insertBefore="home"/>
       </locations>
    </link>
© www.soinside.com 2019 - 2024. All rights reserved.