Remove Operation from View Example



Example Overview

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

This example explains how to use the method "removeOperationFromView()" and will remove the given operation from the specified group.

The interface used in this example is AuthorizationAdmin

Method used in this example is :

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.RemoveOperationFromView   <operation name>  <view name>

 

Sample Output

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 : "Removed  <operation name> from <view name>".

 

De-referencing

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


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