Limiting menus from WebTools
The itnmadmin
user can modify the list of
WebTools menu items visible to a specific role.
About this task
Procedure
-
Within
$ITNMHOME/gui/precision_gui/profile/etc/tnm/menus,
open the configuration file for the
WebTools menu item that you
want to modify.
For example, for the Topology Management menu item, open the
ncp_topo_mgmt_menu.xml
configuration file. -
Within the configuration file, for the
role name
parameter, enter the role name.
Example
- Display the Topology Management menu item if users are assigned the
ncp_topo_mgmt
role and you are in the hop view.[root@CO9128108199 menus]# more ncp_topo_mgmt_menu.xml <?xml version="1.0" ?> <ncp_menu id="ncp_topo_mgmt_menu" key="ncp_topo_mgmt_menu" label="Topology Management"> <definition> <tool id="addDevice"/> <tool id="deleteDevice"/> <tool id="addConnection"/> <tool id="removeConnection"/> </definition> <context> <attribute id="clientType"> <equals value="ncp_hopview" /> </attribute> </context> <security> <role name="ncp_topo_mgmt"/> </security> </ncp_menu>
- Display the Apply Policy menu item if users are assigned the
ncmPolicyCheck
role and they select one device for which there is a record in thenetworkConfigMgr
table and the devicencmKey
is not empty. TheentityId lookup
is implicit in this example.[root@CO9128108199 tools]# more itncm_apply_policy.xml <?xml version="1.0"?> <ncp_tool id="itncm_apply_policy" key="itncm_apply_policy" label="Apply Policy" type="url" runOnList="true" runForEach="false"> <url value="ITNCMWizard/jsp/servlet/ITNCMWizardApplyPolicy.jsp" target="_blank" method="GET"> <parameter name="ui.action" valueType="text" text="run" /> <parameter name="ui.name" valueType="text" text="Apply Policy" /> <parameter name="wizardType" valueType="text" text="apply_policy" /> <parameter name="applicationType" valueType="text" text="device" /> <parameter name="applicationKeys" valueType="ncim" table="entity" column="entityid" /> <parameter name="applicationNames" valueType="ncim" table="entity" column="entityName" /> </url> <context> <attribute id="deviceCount"> <equals value="1" /> </attribute> <attribute id="ncmKey" valueType="ncim" table="networkConfigMgr" column="ncmKey"> <notequals value="" /> </attribute> </context> <security> <role name="ncmPolicyCheck" /> </security> </ncp_tool>