Rev 1945 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1945 | Rev 1956 | ||
---|---|---|---|
Line 58... | Line 58... | ||
58 | /** |
58 | /** |
59 | * |
59 | * |
60 | * @param courseCode |
60 | * @param courseCode |
61 | * @param year |
61 | * @param year |
62 | * @return |
62 | * @return |
63 | * @throws IOException |
63 | * @throws java.io.IOException |
64 | * @throws JSONException |
64 | * @throws org.json.JSONException |
65 | */ |
65 | */ |
66 | public CourseReportDocument createNewCourseReportDocument(1.5.0/docs/api/java/lang/String.html">String courseCode,1.5.0/docs/api/java/lang/String.html">String year) throws 1.5.0/docs/api/java/io/IOException.html">IOException, JSONException |
66 | public CourseReportDocument createNewCourseReportDocument(1.5.0/docs/api/java/lang/String.html">String courseCode,1.5.0/docs/api/java/lang/String.html">String year) throws 1.5.0/docs/api/java/io/IOException.html">IOException, JSONException |
67 | { |
67 | { |
68 | 68 | ||
69 | Course course = DaoFactory.getCourseDaoImpl().findCourseByCode(courseCode); |
69 | Course course = DaoFactory.getCourseDaoImpl().findCourseByCode(courseCode); |
Line 302... | Line 302... | ||
302 | * com os valores a falso. |
302 | * com os valores a falso. |
303 | * |
303 | * |
304 | * @param courseCode |
304 | * @param courseCode |
305 | * @param year |
305 | * @param year |
306 | * @return UnitsDtpTable |
306 | * @return UnitsDtpTable |
307 | * @throws IOException |
307 | * @throws java.io.IOException |
308 | * @throws JSONException |
308 | * @throws org.json.JSONException |
309 | */ |
309 | */ |
310 | public UnitsDtpTable updateDtpStatsTable4Course(CourseReportDocument reportCourseDocument, 1.5.0/docs/api/java/lang/String.html">String courseCode, 1.5.0/docs/api/java/lang/String.html">String year) throws 1.5.0/docs/api/java/io/IOException.html">IOException, JSONException |
310 | public UnitsDtpTable updateDtpStatsTable4Course(CourseReportDocument reportCourseDocument, 1.5.0/docs/api/java/lang/String.html">String courseCode, 1.5.0/docs/api/java/lang/String.html">String year) throws 1.5.0/docs/api/java/io/IOException.html">IOException, JSONException |
311 | { |
311 | { |
312 | 312 | ||
313 | ReportsUcSummarySection reportsUcSummarySection = (ReportsUcSummarySection) reportCourseDocument.findDocumentSection(ReportsUcSummarySection.class); |
313 | ReportsUcSummarySection reportsUcSummarySection = (ReportsUcSummarySection) reportCourseDocument.findDocumentSection(ReportsUcSummarySection.class); |
Line 356... | Line 356... | ||
356 | * Update course unit sections with reports, this method dows not change learning results table |
356 | * Update course unit sections with reports, this method dows not change learning results table |
357 | * values from learning results stays in unit but does not change learning results Table |
357 | * values from learning results stays in unit but does not change learning results Table |
358 | * @param courseCode |
358 | * @param courseCode |
359 | * @param year |
359 | * @param year |
360 | * @param reportCourseDocument |
360 | * @param reportCourseDocument |
361 | * @throws JSONException |
361 | * @throws org.json.JSONException |
362 | * @throws IOException |
362 | * @throws java.io.IOException |
363 | * @return a list of CourseUnitSection |
363 | * @return a list of CourseUnitSection |
364 | */ |
364 | */ |
365 | public List<DocumentSection> updateCleanCourseUnitSections(1.5.0/docs/api/java/lang/String.html">String courseCode, 1.5.0/docs/api/java/lang/String.html">String year, CourseReportDocument reportCourseDocument) throws JSONException, 1.5.0/docs/api/java/io/IOException.html">IOException { |
365 | public List<DocumentSection> updateCleanCourseUnitSections(1.5.0/docs/api/java/lang/String.html">String courseCode, 1.5.0/docs/api/java/lang/String.html">String year, CourseReportDocument reportCourseDocument) throws JSONException, 1.5.0/docs/api/java/io/IOException.html">IOException { |
366 | 366 | ||
367 | List<CourseUnit> units = DaoFactory.getCourseUnitDaoImpl().loadByCourseSiges(courseCode, year); |
367 | List<CourseUnit> units = DaoFactory.getCourseUnitDaoImpl().loadByCourseSiges(courseCode, year); |
Line 410... | Line 410... | ||
410 | * devolvendo o respectivo RepositoryFile4JsonView em json para poder ser anexado ao objecto imagem do |
410 | * devolvendo o respectivo RepositoryFile4JsonView em json para poder ser anexado ao objecto imagem do |
411 | * widget do grafico |
411 | * widget do grafico |
412 | * @param reportDocumentJson |
412 | * @param reportDocumentJson |
413 | * @param session |
413 | * @param session |
414 | * @return |
414 | * @return |
415 | * @throws IOException |
415 | * @throws java.io.IOException |
416 | */ |
416 | */ |
417 | public 1.5.0/docs/api/java/lang/String.html">String generateGlobalLearningResultsChartImg(1.5.0/docs/api/java/lang/String.html">String reportDocumentJson, |
417 | public 1.5.0/docs/api/java/lang/String.html">String generateGlobalLearningResultsChartImg(1.5.0/docs/api/java/lang/String.html">String reportDocumentJson,UserSession session) throws 1.5.0/docs/api/java/io/IOException.html">IOException { |
418 | UserSession session) throws 1.5.0/docs/api/java/io/IOException.html">IOException { |
- | |
419 | 418 | ||
420 | CourseReportDocument reportDocument = CourseReportDocument.fromJson(reportDocumentJson); |
419 | CourseReportDocument reportDocument = CourseReportDocument.fromJson(reportDocumentJson); |
421 | LearningResultsSection learningResultsSection = (LearningResultsSection) reportDocument.findDocumentSection(LearningResultsSection.class); |
420 | LearningResultsSection learningResultsSection = (LearningResultsSection) reportDocument.findDocumentSection(LearningResultsSection.class); |
422 | LearningGlobalAnalysisSection learningGlobalAnalysisSection = (LearningGlobalAnalysisSection) learningResultsSection.findSection(LearningGlobalAnalysisSection.class); |
421 | LearningGlobalAnalysisSection learningGlobalAnalysisSection = (LearningGlobalAnalysisSection) learningResultsSection.findSection(LearningGlobalAnalysisSection.class); |
423 | GlobalLearningResultsChartImg chartImg = (GlobalLearningResultsChartImg) learningGlobalAnalysisSection.findDocComponent(GlobalLearningResultsChartImg.class); |
422 | GlobalLearningResultsChartImg chartImg = (GlobalLearningResultsChartImg) learningGlobalAnalysisSection.findDocComponent(GlobalLearningResultsChartImg.class); |
Line 471... | Line 470... | ||
471 | * This service loads a list of course units given course code and year |
470 | * This service loads a list of course units given course code and year |
472 | * with dtp stats codes pre-filled |
471 | * with dtp stats codes pre-filled |
473 | * @param courseCode |
472 | * @param courseCode |
474 | * @param year |
473 | * @param year |
475 | * @return |
474 | * @return |
476 | * @throws JSONException |
475 | * @throws org.json.JSONException |
477 | * @throws IOException |
476 | * @throws java.io.IOException |
478 | */ |
477 | */ |
479 | public 1.5.0/docs/api/java/lang/String.html">String loadCourseUnitDtpStats(1.5.0/docs/api/java/lang/String.html">String courseCode,1.5.0/docs/api/java/lang/String.html">String year) throws JSONException, 1.5.0/docs/api/java/io/IOException.html">IOException { |
478 | public 1.5.0/docs/api/java/lang/String.html">String loadCourseUnitDtpStats(1.5.0/docs/api/java/lang/String.html">String courseCode,1.5.0/docs/api/java/lang/String.html">String year) throws JSONException, 1.5.0/docs/api/java/io/IOException.html">IOException { |
480 | 479 | ||
481 | 480 | ||
482 | if(Globals.SYSTEM_WSJSON_SERVICE_COURSE_UNITS_DTP_STATS.indexOf("localhost")>=0) |
481 | if(Globals.SYSTEM_WSJSON_SERVICE_COURSE_UNITS_DTP_STATS.indexOf("localhost")>=0) |