Subversion Repositories bacoAlunos

Rev

Rev 1912 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1912 Rev 1919
Line 7... Line 7...
7
import org.json.JSONArray;
7
import org.json.JSONArray;
8
import org.json.JSONException;
8
import org.json.JSONException;
9
import org.json.JSONObject;
9
import org.json.JSONObject;
10
import pt.estgp.estgweb.domain.*;
10
import pt.estgp.estgweb.domain.*;
11
import pt.estgp.estgweb.domain.dao.DaoFactory;
11
import pt.estgp.estgweb.domain.dao.DaoFactory;
-
 
12
import pt.estgp.estgweb.domain.dao.impl.CourseYearDaoImpl;
12
import pt.estgp.estgweb.filters.chains.ResourceAccessControlEnum;
13
import pt.estgp.estgweb.filters.chains.ResourceAccessControlEnum;
13
import pt.estgp.estgweb.services.courses.coursereport.CourseReportUtils;
14
import pt.estgp.estgweb.services.courses.coursereport.CourseReportUtils;
14
import pt.estgp.estgweb.services.courses.coursereport.documentmodel.*;
15
import pt.estgp.estgweb.services.courses.coursereport.documentmodel.*;
15
import pt.estgp.estgweb.services.courses.coursereport.documentmodel.courseunitreport.CourseUnitSection;
16
import pt.estgp.estgweb.services.courses.coursereport.documentmodel.courseunitreport.CourseUnitSection;
16
import pt.estgp.estgweb.services.courses.coursereport.documentmodel.learningresults.LearningGlobalAnalysisSection;
17
import pt.estgp.estgweb.services.courses.coursereport.documentmodel.learningresults.LearningGlobalAnalysisSection;
Line 478... Line 479...
478
        y.setCourseReport(reportDocumentJson);
479
        y.setCourseReport(reportDocumentJson);
479
 
480
 
480
        return reportDocument.toJson();
481
        return reportDocument.toJson();
481
    }
482
    }
482
 
483
 
-
 
484
    public 1.5.0/docs/api/java/lang/String.html">String loadStartEdit(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 {
-
 
485
 
-
 
486
        CourseYear courseYear = DaoFactory.getCourseYearDaoImpl().findCourseYear(courseCode, year).get(0);
-
 
487
 
-
 
488
        1.5.0/docs/api/java/lang/String.html">String courseReportDocument = courseYear.getCourseReport();
-
 
489
 
-
 
490
        if (courseYear.getCourseReport() == null){
-
 
491
            courseReportDocument = new CourseReportServices().createNewCourseReportDocument(courseCode, year).toString();
-
 
492
        }
-
 
493
 
-
 
494
        return courseReportDocument;
-
 
495
    }
-
 
496
 
483
 
497
 
484
    /****************************************************************************/
498
    /****************************************************************************/
485
    /*
499
    /*
486
 
500
 
487
 
501