(Click to open topic with navigation)
As an administrator with Viewpoint configuration permissions, you can control which menu options are available to certain users by setting user permissions in roles. For example, if you only want certain users to be able to access the Node Management page, you can limit the access to the page by using the "Node Management" page permission. Only users with this permission will be able to access Node Management page. Additionally, only users with this permission will be able to see the navigation option in the Viewpoint menu. Users without the "Node Management" page permission will not see the menu option. In other words, if you want to certain menu options to appear or hide for different users, you simply restrict or enable the menu option's corresponding page permission.
Menu options are maintained in the navigation.xml file (located in the $VIEWPOINT_HOME/cloud directory). However, you set the page permissions for each menu option by using the Role Management functionality in Viewpoint. For more information, see About role management.
By default, every menu option is available to the super user.
You may want to add a custom navigation link to your Viewpoint menu. These instructions explain how to create the custom link and to set user permissions so that you can restrict its accessibility to certain users.
To add a custom link
Let's say, for example, that you want your link to point to an internal company page. You could do the following:
Any new page permission you create in MWS will appear in the Page Permissions when creating or editing roles. If you want to include the page permission in an existing role, you will have to edit the role and select the new custom page permission. For more information, see Editing an existing role.
<menu label="Datacenter">
<menu label="Internal">
Value | Description |
---|---|
thisWindow | Clicking the link exits the Viewpoint web application and displays the new page in the same window. |
newWindow | Clicking the link opens the link in a new window (browser tab). |
For example, let's say you are creating a new link under the "Administration" menu label that directs to the internal company page. You want to label the link "Custom Page," and you want it to open in a new window. You also want to restrict access to this page to certain users, so you assign it the new "page.internalPage.read" page permission you created in MWS (see step 1). This is how you would set up the xml:
<menu label="Administration"> ... <link label="Custom Page" href="http://www.exampleURL.com/example" target="newWindow"> <permission name="page.internalPage.read"/> </link> ... </menu>
Your changes will update automatically. No restart of Tomcat or of Viewpoint is necessary. However, you must log out of Viewpoint and log back in.
Related topics