Rev 1843 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1843 | Rev 1844 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | package pt.estgp.estgweb.services.courses; |
1 | package pt.estgp.estgweb.services.courses; |
2 | 2 | ||
3 | 3 | ||
4 | import jomm.dao.impl.AbstractDao; |
- | |
5 | import jomm.utils.StreamsUtils; |
4 | import jomm.utils.StreamsUtils; |
6 | import org.apache.log4j.Logger; |
5 | import org.apache.log4j.Logger; |
7 | import org.json.JSONArray; |
6 | import org.json.JSONArray; |
8 | import org.json.JSONException; |
7 | import org.json.JSONException; |
9 | import org.json.JSONObject; |
8 | import org.json.JSONObject; |
Line 388... | Line 387... | ||
388 | } |
387 | } |
389 | 388 | ||
390 | 389 | ||
391 | 390 | ||
392 | public static void main(1.5.0/docs/api/java/lang/String.html">String[] args) throws 1.5.0/docs/api/java/io/IOException.html">IOException, JSONException { |
391 | public static void main(1.5.0/docs/api/java/lang/String.html">String[] args) throws 1.5.0/docs/api/java/io/IOException.html">IOException, JSONException { |
393 | AbstractDao.getCurrentSession().beginTransaction(); |
392 | /*AbstractDao.getCurrentSession().beginTransaction(); |
394 | 393 | ||
395 | ReportCourseDocument reportCourseDocument = new CourseReportServices().createNewCourseReportDocument("44","201617"); |
394 | ReportCourseDocument reportCourseDocument = new CourseReportServices().createNewCourseReportDocument("44","201617"); |
396 | 1.5.0/docs/api/java/lang/System.html">System.out.println(reportCourseDocument.toJson()); |
395 | System.out.println(reportCourseDocument.toJson()); |
397 | AbstractDao.getCurrentSession().getTransaction().commit(); |
396 | AbstractDao.getCurrentSession().getTransaction().commit();*/ |
- | 397 | ||
- | 398 | //System.setProperty("javax.net.ssl.trustStore", "/JORGE/COPIAS/.keystore"); |
|
- | 399 | //System.setProperty("javax.net.ssl.trustStorePassword", "changeit"); |
|
- | 400 | ||
- | 401 | 1.5.0/docs/api/java/net/URL.html">URL url = new 1.5.0/docs/api/java/net/URL.html">URL("http://pae.ipportalegre.pt/wsjson/api/app/ws-course-pedagogic-results-list?code=44&year=201617&period=S1"); |
|
- | 402 | ||
- | 403 | ||
- | 404 | ||
- | 405 | 1.5.0/docs/api/java/lang/System.html">System.out.println(StreamsUtils.readString(url.openStream())); |
|
398 | } |
406 | } |
399 | 407 | ||
400 | /* |
408 | /* |
401 | 409 | ||
402 | public String loadUnitsAndCreateLearningResultsTables4Course(String courseCode, String year) throws IOException, JSONException |
410 | public String loadUnitsAndCreateLearningResultsTables4Course(String courseCode, String year) throws IOException, JSONException |