Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Code Block
DWHServerService dss = new DWHServerService();
DWHServer ds = dss.getDWHServerPortCustomgetDWHServerPort();


ArrayList<ProjectParameters> pl14 = new ArrayList<ProjectParameters>();
ProjectParameters pp140 = new ProjectParameters();
pp140.setKfsProjCode("115");
ProjectParameters pp141 = new ProjectParameters();
pp141.setKfsProjCode("116");
ProjectParameters pp142 = new ProjectParameters();
pp142.setKfsProjCode("000");
pl14.add(pp140);
pl14.add(pp141);
pl14.add(pp142);
List<ProjectValidation> resultList14 = ds.isValidKFSProjects(pl14);
System.out.println("\nWSClient--isValidKFSProjects()");
for (Iterator i = resultList14.iterator(); i.hasNext();) {
	ProjectValidation element = (ProjectValidation) i.next();
	System.out.println("\t" + element.getKfsProjCode() + ": " + element.isValid());
}

...

Code Block
DWHServerService dss = new DWHServerService();
DWHServer ds = dss.getDWHServerPortCustomgetDWHServerPort();


ArrayList<ProjectParameters> pl14 = new ArrayList<ProjectParameters>();
ProjectParameters pp140 = new ProjectParameters();
pp140.setKfsProjCode("115");
ProjectParameters pp141 = new ProjectParameters();
pp141.setKfsProjCode("116");
ProjectParameters pp142 = new ProjectParameters();
pp142.setKfsProjCode("000");
pl14.add(pp140);
pl14.add(pp141);
pl14.add(pp142);
List<ProjectDetails> resultList15 = ds.getValidKFSProjects(pl14);
System.out.println("\nWSClient--getValidKFSProjects()");
for (Iterator i = resultList15.iterator(); i.hasNext();) {
	ProjectDetails element = (ProjectDetails) i.next();
	System.out.println("\t" + element.getKfsProjCode() + ": " + element.getKfsProjDesc());
}

...

Code Block
DWHServerService dss = new DWHServerService();
DWHServer ds = dss.getDWHServerPortCustomgetDWHServerPort();


List<ProjectDetails> resultList16 = ds.getAllKFSProjects();
System.out.println("\nWSClient-getAllKFSProjects()");
// for (Iterator i = resultList16.iterator(); i.hasNext();) {
// ProjectDetails element = (ProjectDetails)i.next();
// System.out.println("\t" + element.getKfsProjCode() + ": " +
// element.getKfsProjDesc());
// }
if (resultList16 != null) {
	System.out.println("getAllProj-total size: " + resultList16.size());
	System.out.println("getAllProj-1st item ProjCode / ProjName / ProjDesc: " + ((ProjectDetails)resultList16.get(0)).getKfsProjCode() + " / " + ((ProjectDetails)resultList16.get(0)).getKfsProjName() + " / " + ((ProjectDetails)resultList16.get(0)).getKfsProjDesc());
} else {
	System.out.println("something bad happened...please check your query");
}