Example name : AssignOperationToView.java
Location : <Web NMS Home>/examples/Security/authorization directory
This example explains how to use the method "assignOperationToView()" and how a program will associate an operation to the already existing view. When the operation name and the view name are given as command line arguments, the respective operation will get added into the appropriate view.
The interface used in this example is AuthorizationAdmin
Method used in this example is :
After getting the handle of NmsAuthAdminAPI through an RMI lookup, the example assigns the specified operation to the respective view using the assingOperationToView() method.
Note : The source code will have comment statements in it which will explain to you the different segments of the program.
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.AssignOperationToView <operation name> <view name>
On giving an operation name and view name as arguments to this example program, the output of the program printed in your console, will be : "Assigned <operation name> to <view name>".
After you have tried this example, to remove its association with Web NMS, you must remove the class file AssignOperationToView.class from <Web NMS Home>/classes/com/adventnet/nms/example/security/authorization directory.
Copyright © 1996-2002, AdventNet Inc. All Rights Reserved.