Java 类com.vmware.vim25.AuthorizationRole 实例源码

项目:vijava    文件:ListAuthorization.java   
static void printRoles(AuthorizationRole[] ars)
{
  for(int i=0; ars!=null && i<ars.length; i++)
  {
    System.out.println("\nName:" + ars[i].getName());
    System.out.println("Role ID:" + ars[i].getRoleId());
    System.out.println("Sys Role:" + ars[i].isSystem());
    System.out.print("Privileges: ");
    String[] privs = ars[i].getPrivilege();
    for(int j=0; privs!=null && j < privs.length; j++)
    {
      if(j==0)
      {
        System.out.print(privs[j]);
      }
      else
      {
        System.out.print(", " + privs[j]);
      }
    }
  }
}
项目:jcloud-vsphere    文件:AuthorizationManagerApi.java   
List<AuthorizationRole> getRoleList();