Modifying the printInfo() method with VO class to print the VREs contained in the arraylist

This commit is contained in:
Biniam Abraha Masa 2024-05-16 15:23:59 +02:00
parent 964bd95c52
commit 7939e029e7
2 changed files with 17 additions and 8 deletions

View File

@ -46,14 +46,14 @@ public class App {
}*/
// methods to query and print information
//xmlManager.getGatewaysInfo();
// xmlManager.getVosInfo("AGINFRAPlus Detached Gateway");
// xmlManager.getVosInfo("PARTHENOS Detached Gateway");
// xmlManager.getVosInfo("BlueBridge Gateway");
// xmlManager.getVosInfo("D4Science.org Detached Gateway");
// xmlManager.getVosInfo("EOSC-Secretariat Detached Gateway");
// xmlManager.findVo("BlueBridge Gateway", "FARM");
xmlManager.findVre("D4Science.org Detached Gateway", "D4OS", "CNROutreach");
// xmlManager.getGatewaysInfo();
//xmlManager.getVosInfo("AGINFRAPlus Detached Gateway");
//xmlManager.getVosInfo("PARTHENOS Detached Gateway");
xmlManager.getVosInfo("BlueBridge Gateway");
//xmlManager.getVosInfo("D4Science.org Detached Gateway");
//xmlManager.getVosInfo("EOSC-Secretariat Detached Gateway");
//xmlManager.findVo("BlueBridge Gateway", "FARM");
//xmlManager.findVre("D4Science.org Detached Gateway", "D4OS", "CNROutreach");
}
}

View File

@ -34,8 +34,17 @@ public class Vos {
System.out.println("VO Key: " + key);
System.out.println("VO Name: " + name);
System.out.println("VO Scope: " + scope);
System.out.println("VRES Names:");
if (!listOfVres.isEmpty()) {
for (Vres vres : listOfVres) {
System.out.println("VRES Name: " + vres.getName());
}
} else {
System.out.println("No VRES found for this VO.");
}
}
public ArrayList<Vres> getVresList() {
// TODO Auto-generated method stub
return listOfVres;