You can control whatever you want using custom-priviliges.xml. that should be 
available for all licenses.


I am attaching an old custom privilege file (as txt) for reference.


Let me know if it helps.


Saurabh Bohra
O: 860-766-0842  |  M: 860-385-3597  |  e-mail: saurabh.bo...@espn.com

-----Original Message-----
From: Diego Pereyra [mailto:dpere...@netsol-international.com] 
Sent: Wednesday, May 02, 2012 11:44 AM
To: spectrum
Subject: RE: [spectrum] [Spectrum] Is posible add new licenses ?

I can also user the condition

if( userSec.hasPrivilege( Privileges.CONSOLE_PRIV_SCOPE,
                             Privileges.WEB_SERVER_ADMIN ) == true )
   {

The privilege WEB_SERVER_ADMIN is from a privilege configure on oneclick? 
Anyone add some privilege else ?

I try using some custom privileges but doesnt work... if someone have any ideas 
:D

THanks

Diego

-----Mensaje original-----
De: Diego Pereyra [mailto:dpere...@netsol-international.com] 
Enviado el: miércoles, 02 de mayo de 2012 11:15
Para: spectrum
Asunto: [spectrum] [Spectrum] Is posible add new licenses ?

Hi list !

Im editing the console-menubar.jsp to add some new menú for others 
applications, and i want to user priveleges or roles to show or not the links. 
But i only can use LICENCES. Administrator, Operator, Service Manager.. 

<!-- only show if administrator or operator -->
          <% if ( request.isUserInRole("Administrator") == true ||
                  request.isUserInRole("Operator") == true )
             { %>

Anyone try to add new licences or how can i get the role or privelege in the 
web?

Thanks!

diEgo MP.

---
To unsubscribe from spectrum, send email to lists...@unc.edu with the body: 
unsubscribe spectrum dpere...@netsol-international.com

---
To unsubscribe from spectrum, send email to lists...@unc.edu with the body: 
unsubscribe spectrum saurabh.bo...@espn.com

---
To unsubscribe from spectrum, send email to lists...@unc.edu with the body: 
unsubscribe spectrum arch...@mail-archive.com
<!-- ##########################################################################
# Author:       Saurabh Bohra
# e-mail:       sbo...@netcom-sys.com
# 
# File Name:    custom-privileges.xml
#
# Purpose:      Additional privileges for Web Administration, Non-Persistent 
Connection 
#               Setup and Locator search from OneClick on SPECTRUM 9.0.0 HF 6.
#
# Location:     $SPECROOT/custom/console/config on OneClick server
# 
# Usage:        On OneClick server at $SPECROOT/custom/console/config 
independently 
#               and/or in conjunction with custom-privileges.xml
#               Note: If upgrading/applying a new hotfix please refer to the 
Readme
#               to verify whether these customization has been incorporated 
out-of-box
#               in the new release. If incorporated remove the sections 
accordingly.
#
# Reference:    SPECTRUM OneClick Customization Guide (5160)
#
# Version:      1.0.0 - 11/17/2009 -    Initial version. Create privileges for 
Web Administration,
#                                       NPC and Locator Search.
#               1.0.1 - 11/17/2009 -    Remove OOB privileges for eVPN, NCM, 
SANM, VHM
#               1.1.0 - 12/01/2009 -    Privilege SPECTRUM Report Manager
#               1.1.1 - 01/06/2010 -    Privilege Chassis Locator Search
#               1.1.2 - 01/07/2010 -    Privilege Additional Custom Searches
#
###############################################################################
-->

<privileges>
  <custom-privileges>
    <label>Additional Custom Privileges</label>
    <desc>Custom privileges for users.</desc>

    <web-admin type="read">
      <label>Web Administration</label>
      <desc>Grants access to Web Administration to a device.</desc>
    </web-admin>

    <npcs type="read">
      <label>Non-Persistent Connection Setup</label>
      <desc>Grants access to Non-Persistent Connection Setup for a 
device.</desc>
    </npcs>

    <srm type="read">
      <label>SPECTRUM Report Manager</label>
      <desc>Grants access to SPECTRUM Report Manager to a user.</desc>
    </srm>    

    <search-privileges>
      <label>Locator Searches</label>
      <desc>Grant access to various Searches under Locator Tab.</desc>

      <search-addcustom>
        <label>Additional Custom Searches</label>
        <desc>Grant access to various Additional Custom Searches.</desc>
        <search-cust-users type="read">
          <label>Searches for Customer Users</label>
          <desc>Grants access to Searches for Customer Users searches.</desc>
        </search-cust-users>

        <search-insight-users type="read">
          <label>Searches for Insight Users</label>
          <desc>Grants access to Searches for Insight Users searches.</desc>
        </search-insight-users>
      </search-addcustom>

      <search-app-models type="read">
        <label>Application Models</label>
        <desc>Grants access to Application Models searches.</desc>
      </search-app-models>

      <search-chassis type="read">
        <label>Chassis</label>
        <desc>Grants access to Chassis searches.</desc>
      </search-chassis>

      <search-corr-domains type="read">
        <label>Correlation Domains</label>
        <desc>Grants access to Correlation Domains searches.</desc>
      </search-corr-domains>

      <search-devices type="read">
        <label>Devices</label>
        <desc>Grants access to Devices searches.</desc>
      </search-devices>

      <search-ehealth type="read">
        <label>eHealth</label>
        <desc>Grants access to eHealth searches.</desc>
      </search-ehealth>

      <search-gc type="read">
        <label>Global Collections</label>
        <desc>Grants access to Global Collections searches.</desc>
      </search-gc>

      <search-models type="read">
        <label>Models</label>
        <desc>Grants access to Models searches.</desc>
      </search-models>

      <search-mcast type="read">
        <label>Multicast</label>
        <desc>Grants access to Multicast searches.</desc>
      </search-mcast>

      <search-npc type="read">
        <label>NPC</label>
        <desc>Grants access to NPC searches.</desc>
      </search-npc>

      <search-policy type="read">
        <label>Policy</label>
        <desc>Grants access to Policy searches.</desc>
      </search-policy>

      <search-ports type="read">
        <label>Ports</label>
        <desc>Grants access to Ports searches.</desc>
      </search-ports>

      <search-qos type="read">
        <label>Quality of Service</label>
        <desc>Grants access to Quality of Service searches.</desc>
      </search-qos>

      <search-rops type="read">
        <label>Remote Operations</label>
        <desc>Grants access to Remote Operations searches.</desc>
      </search-rops>

      <search-rrdy type="read">
        <label>Router Redundancy</label>
        <desc>Grants access to Router Redundancy searches.</desc>
      </search-rrdy>

      <search-schd type="read">
        <label>Schedules</label>
        <desc>Grants access to Schedules searches.</desc>
      </search-schd>

      <search-sdm type="read">
        <label>Secure Domain Manager</label>
        <desc>Grants access to Secure Domain Manager searches.</desc>
      </search-sdm>

      <search-spm type="read">
        <label>SPM</label>
        <desc>Grants access to SPM searches.</desc>
      </search-spm>

      <search-sysam type="read">
        <label>System and Application Monitoring</label>
        <desc>Grants access to System and Application Monitoring 
searches.</desc>
      </search-sysam>

      <search-temsm type="read">
        <label>Telco EMS Manager</label>
        <desc>Grants access to Telco EMS Manager searches.</desc>
      </search-temsm>

      <search-vlan type="read">
        <label>VLAN</label>
        <desc>Grants access to VLAN searches.</desc>
      </search-vlan>

      <search-vpn type="read">
        <label>VPN</label>
        <desc>Grants access to VPN searches.</desc>
      </search-vpn>      
    </search-privileges>
  </custom-privileges>
</privileges>

Reply via email to