Index: lams_central/.classpath =================================================================== RCS file: /usr/local/cvsroot/lams_central/.classpath,v diff -u -r1.20.2.22 -r1.20.2.23 --- lams_central/.classpath 30 Mar 2016 12:40:31 -0000 1.20.2.22 +++ lams_central/.classpath 27 Sep 2016 06:23:55 -0000 1.20.2.23 @@ -33,6 +33,8 @@ + + Index: lams_central/conf/language/lams/ApplicationResources_en_AU.properties =================================================================== RCS file: /usr/local/cvsroot/lams_central/conf/language/lams/ApplicationResources_en_AU.properties,v diff -u -r1.111.2.10 -r1.111.2.11 --- lams_central/conf/language/lams/ApplicationResources_en_AU.properties 26 Aug 2016 15:02:59 -0000 1.111.2.10 +++ lams_central/conf/language/lams/ApplicationResources_en_AU.properties 27 Sep 2016 06:22:58 -0000 1.111.2.11 @@ -674,4 +674,19 @@ label.your.new.shared.secret =Your new shared secret: {0} label.2FA.shared.secret =Two-factor authorization shared secret +label.create.lesson =Create Lesson +label.organisations =Select course with the lessons that needs to be export +label.lesson.id =Lesson ID +label.display.design.image =Display sequence image? +label.select.sequence =You must select a sequence before proceeding +label.choose.sequence =Choose Lams sequence +label.author.sequence =Author new LAMS lessons +label.open.monitor =Open Monitor +label.your.progress =Your Lesson Progress +label.you.completed.this.lesson =You have completed this lesson. +label.total.activities.depend.on.path =Total activities depend on your learning path. +label.lesson.not.completed =Lesson is not yet completed. +label.you.completed.activities =You have completed {0} activities + + #======= End labels: Exported 439 labels for en AU ===== \ No newline at end of file Index: lams_central/src/java/org/lamsfoundation/lams/web/HomeAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_central/src/java/org/lamsfoundation/lams/web/HomeAction.java,v diff -u -r1.60.2.26 -r1.60.2.27 --- lams_central/src/java/org/lamsfoundation/lams/web/HomeAction.java 28 Jul 2016 03:44:15 -0000 1.60.2.26 +++ lams_central/src/java/org/lamsfoundation/lams/web/HomeAction.java 27 Sep 2016 06:22:57 -0000 1.60.2.27 @@ -177,10 +177,6 @@ return mapping.findForward("lessonIntro"); } - if (lesson.getForceLearnerRestart()) { - // start the lesson from the beginning each time - getLessonService().removeLearnerProgress(lessonId, user.getUserID()); - } if (mode != null) { req.setAttribute(AttributeNames.PARAM_MODE, mode); Fisheye: Tag 1.2.2.1 refers to a dead (removed) revision in file `lams_central/src/java/org/lamsfoundation/lams/web/LoginRequestLtiServlet.java'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.2.2.1 refers to a dead (removed) revision in file `lams_central/src/java/org/lamsfoundation/lams/web/action/LtiAction.java'. Fisheye: No comparison available. Pass `N' to diff? Index: lams_central/src/java/org/lamsfoundation/lams/webservice/xml/LessonManagerServlet.java =================================================================== RCS file: /usr/local/cvsroot/lams_central/src/java/org/lamsfoundation/lams/webservice/xml/LessonManagerServlet.java,v diff -u -r1.48.2.19 -r1.48.2.20 --- lams_central/src/java/org/lamsfoundation/lams/webservice/xml/LessonManagerServlet.java 5 Aug 2016 11:49:45 -0000 1.48.2.19 +++ lams_central/src/java/org/lamsfoundation/lams/webservice/xml/LessonManagerServlet.java 27 Sep 2016 06:22:58 -0000 1.48.2.20 @@ -360,28 +360,28 @@ doGet(request, response); } - private Long startLesson(String serverId, String datetime, String hashValue, String username, long ldId, + private static Long startLesson(String serverId, String datetime, String hashValue, String username, long ldId, String courseId, String title, String desc, String countryIsoCode, String langIsoCode, String customCSV, boolean presenceEnable, boolean imEnable, boolean enableNotifications) throws RemoteException { try { - ExtServerOrgMap serverMap = LessonManagerServlet.integrationService.getExtServerOrgMap(serverId); + ExtServerOrgMap serverMap = integrationService.getExtServerOrgMap(serverId); Authenticator.authenticate(serverMap, datetime, username, hashValue); - ExtUserUseridMap userMap = LessonManagerServlet.integrationService.getExtUserUseridMap(serverMap, username); - ExtCourseClassMap orgMap = LessonManagerServlet.integrationService.getExtCourseClassMap(serverMap, userMap, + ExtUserUseridMap userMap = integrationService.getExtUserUseridMap(serverMap, username); + ExtCourseClassMap orgMap = integrationService.getExtCourseClassMap(serverMap, userMap, courseId, countryIsoCode, langIsoCode, null, LoginRequestDispatcher.METHOD_MONITOR); User user = userMap.getUser(); Organisation organisation = orgMap.getOrganisation(); // 1. init lesson - Lesson lesson = LessonManagerServlet.monitoringService.initializeLesson(title, desc, ldId, + Lesson lesson = monitoringService.initializeLesson(title, desc, ldId, organisation.getOrganisationId(), user.getUserId(), customCSV, false, false, presenceEnable, imEnable, true, enableNotifications, false, false, null, null); // 2. create lessonClass for lesson createLessonClass(lesson, organisation, user); // 3. start lesson - LessonManagerServlet.monitoringService.startLesson(lesson.getLessonId(), user.getUserId()); + monitoringService.startLesson(lesson.getLessonId(), user.getUserId()); // store information which extServer has started the lesson - LessonManagerServlet.integrationService.createExtServerLessonMap(lesson.getLessonId(), serverMap); + integrationService.createExtServerLessonMap(lesson.getLessonId(), serverMap); return lesson.getLessonId(); } catch (Exception e) { @@ -780,17 +780,16 @@ } @SuppressWarnings("unchecked") - private void createLessonClass(Lesson lesson, Organisation organisation, User creator) { + private static void createLessonClass(Lesson lesson, Organisation organisation, User creator) { List staffList = new LinkedList(); staffList.add(creator); List learnerList = new LinkedList(); - Vector learnerVector = LessonManagerServlet.userManagementService + Vector learnerVector = userManagementService .getUsersFromOrganisationByRole(organisation.getOrganisationId(), Role.LEARNER, true); learnerList.addAll(learnerVector); - LessonManagerServlet.monitoringService.createLessonClassForLesson(lesson.getLessonId(), organisation, + monitoringService.createLessonClassForLesson(lesson.getLessonId(), organisation, organisation.getName() + " learners", learnerList, organisation.getName() + " staff", staffList, creator.getUserId()); - } /** @@ -903,7 +902,11 @@ if ((firstNames != null) && ((firstNameArray.length != lastNameArray.length) || (firstNameArray.length != emailArray.length) || (firstNameArray.length != (learnerIdArray.length + monitorIdArray.length)))) { - LessonManagerServlet.log.error("Invalid parameters sent: wrong array length."); + LessonManagerServlet.log.error("Invalid parameters sent: wrong array length. " + "learnerIds=" + + learnerIds + " &monitorIds=" + monitorIds + " &firstNames=" + firstNames + " &lastNames=" + + lastNames + " &emails=" + emails + " &array lengths=" + learnerIdArray.length + "!" + + monitorIdArray.length + "!" + firstNameArray.length + "!" + lastNameArray.length + "!" + + emailArray.length); return false; } Index: lams_central/web/WEB-INF/struts-config.xml =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/WEB-INF/Attic/struts-config.xml,v diff -u -r1.1.2.2 -r1.1.2.3 --- lams_central/web/WEB-INF/struts-config.xml 26 Aug 2016 15:02:59 -0000 1.1.2.2 +++ lams_central/web/WEB-INF/struts-config.xml 27 Sep 2016 06:22:57 -0000 1.1.2.3 @@ -494,6 +494,34 @@ /> + + + + + + + + + LoginRequestLti + + org.lamsfoundation.lams.web.LoginRequestLtiServlet + + LearningDesignRepository @@ -416,6 +423,11 @@ LoginRequest /LoginRequest + + + LoginRequestLti + /LoginRequestLti + LearningDesignRepository @@ -640,6 +652,7 @@ Public content /LoginRequest + /LoginRequestLti /services/xml/LessonManager/* /services/xml/LearningDesignRepository/* /services/LearningDesignSVG/* @@ -702,6 +715,7 @@ Add lesson /addLesson.jsp + /lti/addLesson.jsp MONITOR Index: lams_central/web/includes/javascript/openUrls.js =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/openUrls.js,v diff -u -r1.38.2.7 -r1.38.2.8 --- lams_central/web/includes/javascript/openUrls.js 28 Jul 2016 03:44:15 -0000 1.38.2.7 +++ lams_central/web/includes/javascript/openUrls.js 27 Sep 2016 06:22:58 -0000 1.38.2.8 @@ -1,4 +1,3 @@ - Fisheye: Tag 1.1.2.1 refers to a dead (removed) revision in file `lams_central/web/lti/addLesson.jsp'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.1.2.1 refers to a dead (removed) revision in file `lams_central/web/lti/learnerMonitor.jsp'. Fisheye: No comparison available. Pass `N' to diff? Index: lams_common/.classpath =================================================================== RCS file: /usr/local/cvsroot/lams_common/.classpath,v diff -u -r1.25.2.29 -r1.25.2.30 --- lams_common/.classpath 20 Apr 2016 16:31:21 -0000 1.25.2.29 +++ lams_common/.classpath 27 Sep 2016 06:23:53 -0000 1.25.2.30 @@ -43,7 +43,7 @@ - + Index: lams_common/conf/hibernate/mappings/org/lamsfoundation/lams/integration/ExtServerLessonMap.hbm.xml =================================================================== RCS file: /usr/local/cvsroot/lams_common/conf/hibernate/mappings/org/lamsfoundation/lams/integration/Attic/ExtServerLessonMap.hbm.xml,v diff -u -r1.3.2.2 -r1.3.2.3 --- lams_common/conf/hibernate/mappings/org/lamsfoundation/lams/integration/ExtServerLessonMap.hbm.xml 27 Apr 2016 13:22:29 -0000 1.3.2.2 +++ lams_common/conf/hibernate/mappings/org/lamsfoundation/lams/integration/ExtServerLessonMap.hbm.xml 27 Sep 2016 06:22:54 -0000 1.3.2.3 @@ -34,6 +34,14 @@ column="lesson_id" not-null="true" /> + + + + + +