Examples of addAuthorizationRole()


Examples of com.vmware.vim25.mo.AuthorizationManager.addAuthorizationRole()

    ServiceInstance si = new ServiceInstance(
        new URL(args[0]), args[1], args[2], true);

    AuthorizationManager am = si.getAuthorizationManager();
   
    int roleId = am.addAuthorizationRole("master1",
        new String[] { "System.View", "System.Read",
        "System.Anonymous", "Global.LogEvent" } );
   
    //even if you just want to rename the role, you
    // still need to provide full list of privileges
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.