往“配置角色的操作”页面加入客制化action item的方法

在以往的很多客制化项目中,客户都有要求能够基于“配置角色的操作”对客制化的action进行权限的配置。

以下是往“配置角色的操作”页面加入客制化action item的方法,请參考。

 

产品团队下,往“配置角色的操作”页面加入客制化action item的方法

1.首先在custom-actions.xml中定义一个新的action时,必须给action定义一个uicomponent (可以直接设置为跟action name一样)

<objecttype name="product" class="" resourceBundle="ext.cssc605.product.resource.productRB">

    <action name="reportManagement" uicomponent="reportManagement" renderType="GENERAL">

        <command url="netmarkets/jsp/ext/cssc605/product/reportManagement.jsp" windowType="page"/>

    </action>

</objecttype>

2.<WT_HOME>/codebase下,找出roleaccessprefs.xml

在该文件的相应section上,加上客制化uic的定义,如在<product labelId="productLabel">的最后加上

<!-- Customization Actions /Added by Leo Li-->

<uic name="loadCategory" order="900" enabled="true" defaultAll="true" defaultManager="true" defaultGuest="true" managerEnabled="true" guestEnabled="true"/>

<uic name="reportManagement" order="901" enabled="true" defaultAll="true" defaultManager="true" defaultGuest="true" managerEnabled="true" guestEnabled="true"/>

3.<WT_HOME>/src/com/ptc/netmarkets/roleAccess下找出相关的rbInforoleAccessResource.rbInfo

追加上面定义的uic的显示名称

####################################

# Customization Report / Added by Leo Li

####################################

1064.value=Load Category

1064.constant=loadCategory

 

1065.value=Report Management

1065.constant=reportManagement

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值