git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/vre-management/VREModeler@8196 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
47253bb217
commit
c1358e9b37
|
@ -344,7 +344,12 @@ public class XMLUtil {
|
|||
return docToString(doc);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param res
|
||||
* @return a String representing the message
|
||||
* @throws Exception
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
public static String PrepareVREModelXML(ResultSet res) throws Exception{
|
||||
Document doc= null;
|
||||
|
@ -367,13 +372,16 @@ public class XMLUtil {
|
|||
});
|
||||
|
||||
}else{
|
||||
Date dateFrom=new Date();
|
||||
Date dateTo=new Date();
|
||||
dateTo.setYear(dateTo.getYear()+1);
|
||||
root= addElements(doc, "Resultset", new Element[]{
|
||||
createTextElement(doc, "Name",null),
|
||||
createTextElement(doc, "Description",null),
|
||||
createTextElement(doc, "VREDesigner",null),
|
||||
createTextElement(doc, "VREManager",null),
|
||||
createTextElement(doc, "StartTime",null),
|
||||
createTextElement(doc, "EndTime",null)
|
||||
createTextElement(doc, "StartTime",dateFrom.getTime()+""),
|
||||
createTextElement(doc, "EndTime",dateTo.getTime()+"")
|
||||
});
|
||||
}
|
||||
doc.appendChild(root);
|
||||
|
|
Loading…
Reference in New Issue