How to hide the OneClick WebApp hyperlink from the OneClick web page
search cancel

How to hide the OneClick WebApp hyperlink from the OneClick web page

book

Article ID: 218062

calendar_today

Updated On:

Products

CA Spectrum DX NetOps

Issue/Introduction

Currently, we are using Spectrum version 20.2.10, and we would like to know how we can hide the OneClick WebApp link from the OC web menu.

Until version 10.3.1 we were able to do it by changing the file console-menubar.jsp file. Do you have any advice for the current version?

Environment

Release : 20.2

Component : Spectrum OneClick

Resolution

Edit the $SPECROOT/tomcat/webapps/spectrum/console/console-menubar.jsp file and comment out the following section to archive hiding the OneClick WebApp link from the OC page, and then bounce the Spectrum Tomcat service to put the change in place:

<% if ( request.isUserInRole("Administrator") == true ||
                   request.isUserInRole("Operator") == true )
              { %>
               <th class="customFontSize">
               <a href="webapp"
                  onMouseOver="window.parent.status='<apputil:message key='console-menubar.Lite-OC'/>';return true;"
                  onMouseOut="window.parent.status='';return true;"
                  rel="noopener noreferrer" target="_blank"><apputil:message key='console-menubar.Lite-OC'/></a>
               </th>
           <% } %>

Add the <!-- and --> to comment out the section from line 111 to 120. 

Stop/start the Spectrum Tomcat service. The OneClick WebApp hyperlink is no longer displayed.

Additional Information

If you want to hide the OneClick WebApp hyperlink only for the Operator accounts, change from true to false on line 112.

Attachments