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]); } } } }
List<AuthorizationRole> getRoleList();