CustomViewScopeExample



Example Overview

Example name : CustomViewScopeExample.java
Location : <Web NMS Home>/examples/Security/authorization directory

This example explains how to use the methods of CustomViewScopeAPI. Custom View Scope is nothing but a collection of module specific authorized views which belong to different user/group, based on their security level. This example performs the following tasks :

The interface used in this example is AuthorizationAdmin and CustomViewScopeAPI.

Methods used in this example are :

 

 

 

Note : The source code will have comment statements in it which will explain to you the different segments of the program.

 

Integration with Web NMS

The steps given below will help you in integrating this example with Web NMS. If any of the steps given below are not followed properly, then the example might not function in a desired manner.

java  com.adventnet.nms.example.security.authorization.CustomViewScopeExample 

 

Sample Output

On successful execution of the example program, the following messages are printed in the console :

Now the users belonging to the "Users" group (i.e. user "testUser") will have the restriction to view only Major alerts in the Alerts panel.

 

De-referencing

After you have tried this example, to remove its association with Web NMS, you must remove the class file CustomViewScopeExample.class from <Web NMS Home>/classes/com/adventnet/nms/example/security/authorization directory.


Copyright © 1996-2002, AdventNet Inc. All Rights Reserved.