Rev 1876 | Rev 1969 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1876 | Rev 1918 | ||
---|---|---|---|
Line 379... | Line 379... | ||
379 | logger.error(e,e); |
379 | logger.error(e,e); |
380 | courseUnitSections = new CourseUnitSection[0]; |
380 | courseUnitSections = new CourseUnitSection[0]; |
381 | } |
381 | } |
382 | 382 | ||
383 | 383 | ||
384 | List<DocumentSection> subSections = new ArrayList<DocumentSection>(); |
384 | ArrayList<DocumentSection> subSections = new ArrayList<DocumentSection>(); |
385 | unitReportsSection.setSections(subSections); |
385 | unitReportsSection.setSections(subSections); |
386 | for(CourseUnit cu :units) |
386 | for(CourseUnit cu :units) |
387 | { |
387 | { |
388 | CourseUnitSection sectionFound = CourseReportUtils.findCourseUnitSection(courseUnitSections, (CourseUnitImpl) cu); |
388 | CourseUnitSection sectionFound = CourseReportUtils.findCourseUnitSection(courseUnitSections, (CourseUnitImpl) cu); |
389 | if(sectionFound == null) |
389 | if(sectionFound == null) |
Line 412... | Line 412... | ||
412 | * @param reportDocumentJson |
412 | * @param reportDocumentJson |
413 | * @param session |
413 | * @param session |
414 | * @return |
414 | * @return |
415 | * @throws IOException |
415 | * @throws 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,UserSession session) throws 1.5.0/docs/api/java/io/IOException.html">IOException { |
417 | public 1.5.0/docs/api/java/lang/String.html">String generateGlobalLearningResultsChartImg(1.5.0/docs/api/java/lang/String.html">String reportDocumentJson, |
- | 418 | UserSession session) throws 1.5.0/docs/api/java/io/IOException.html">IOException { |
|
418 | 419 | ||
419 | CourseReportDocument reportDocument = CourseReportDocument.fromJson(reportDocumentJson); |
420 | CourseReportDocument reportDocument = CourseReportDocument.fromJson(reportDocumentJson); |
420 | LearningResultsSection learningResultsSection = (LearningResultsSection) reportDocument.findDocumentSection(LearningResultsSection.class); |
421 | LearningResultsSection learningResultsSection = (LearningResultsSection) reportDocument.findDocumentSection(LearningResultsSection.class); |
421 | LearningGlobalAnalysisSection learningGlobalAnalysisSection = (LearningGlobalAnalysisSection) learningResultsSection.findSection(LearningGlobalAnalysisSection.class); |
422 | LearningGlobalAnalysisSection learningGlobalAnalysisSection = (LearningGlobalAnalysisSection) learningResultsSection.findSection(LearningGlobalAnalysisSection.class); |
422 | GlobalLearningResultsChartImg chartImg = (GlobalLearningResultsChartImg) learningGlobalAnalysisSection.findDocComponent(GlobalLearningResultsChartImg.class); |
423 | GlobalLearningResultsChartImg chartImg = (GlobalLearningResultsChartImg) learningGlobalAnalysisSection.findDocComponent(GlobalLearningResultsChartImg.class); |
423 | 424 | ||
- | 425 | ||
424 | UnitsLearningResultsTable table = (UnitsLearningResultsTable) learningResultsSection.findDocComponent(UnitsLearningResultsTable.class); |
426 | UnitsLearningResultsTable table = (UnitsLearningResultsTable) learningResultsSection.findDocComponent(UnitsLearningResultsTable.class); |
425 | 427 | ||
- | 428 | ||
426 | FileUploaded fileUploaded = chartImg.generateChart2tmp(table,reportDocument); |
429 | FileUploaded fileUploaded = chartImg.generateChart2tmp(table,reportDocument); |
427 | 430 | ||
428 | RepositoryService repositoryService = new RepositoryService(); |
431 | RepositoryService repositoryService = new RepositoryService(); |
429 | 432 | ||
430 | boolean imageInitialized = chartImg.getImage() != null |
433 | boolean imageInitialized = chartImg.getImage() != null |