git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/vre-management/VREModeler@7341 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
13cc58d4fc
commit
6ae9334185
|
@ -166,6 +166,7 @@ public class IStoDBUtil {
|
|||
GCUBECollectionQuery query= queryClient.getQuery(GCUBECollectionQuery.class);
|
||||
query.addGenericCondition("$result/Profile/IsUserCollection[string(@value) eq 'true']");
|
||||
collectionList= queryClient.execute(query, scope);
|
||||
System.out.println("collections "+ collectionList.size());
|
||||
}catch(Exception e ){logger.error("Error queryng IS"); throw new GCUBEFault(e); }
|
||||
|
||||
try{
|
||||
|
|
|
@ -192,6 +192,7 @@ public class ModelerService {
|
|||
DBInterface.connect();
|
||||
res= DBInterface.queryDB("select * from COLLECTION;");
|
||||
|
||||
|
||||
ResultSet resRelated= DBInterface.queryDB("select collid from VRERELATEDCOLLECTION where VRERELATEDCOLLECTION.vreid='"+getResource().getId()+"';");
|
||||
while(resRelated.next()){
|
||||
relatedCollection.add(resRelated.getString(1));
|
||||
|
|
|
@ -35,6 +35,8 @@ public class XMLUtil {
|
|||
temp.append("<ResultSet>");
|
||||
try{
|
||||
while (res.next()){
|
||||
|
||||
System.out.println("entered");
|
||||
selectedString= relatedCollection.contains(res.getString("ID")) ? "true" : "false";
|
||||
temp.append("<Collection><ID>");
|
||||
temp.append(res.getString(1));
|
||||
|
|
Loading…
Reference in New Issue