Index: lams_central/src/java/org/lamsfoundation/lams/util/CentralConstants.java =================================================================== RCS file: /usr/local/cvsroot/lams_central/src/java/org/lamsfoundation/lams/util/CentralConstants.java,v diff -u -r1.42 -r1.43 --- lams_central/src/java/org/lamsfoundation/lams/util/CentralConstants.java 11 May 2016 07:30:16 -0000 1.42 +++ lams_central/src/java/org/lamsfoundation/lams/util/CentralConstants.java 23 May 2016 08:51:49 -0000 1.43 @@ -204,4 +204,6 @@ public static final String PARAM_LEARNER_PRESENCE_ENABLE = "learnerSeeOnline"; public static final String PARAM_LEARNER_IM_ENABLE = "learnerInstantMessaging"; + + public static final String PARAM_ENABLE_NOTIFICATIONS = "enableNotifications"; } \ No newline at end of file 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.64 -r1.65 --- lams_central/src/java/org/lamsfoundation/lams/webservice/xml/LessonManagerServlet.java 5 May 2016 08:10:15 -0000 1.64 +++ lams_central/src/java/org/lamsfoundation/lams/webservice/xml/LessonManagerServlet.java 23 May 2016 08:51:49 -0000 1.65 @@ -147,6 +147,7 @@ boolean presenceEnable = WebUtil.readBooleanParam(request, CentralConstants.PARAM_LEARNER_PRESENCE_ENABLE, false); boolean imEnable = WebUtil.readBooleanParam(request, CentralConstants.PARAM_LEARNER_IM_ENABLE, false); + boolean enableNotifications = WebUtil.readBooleanParam(request, CentralConstants.PARAM_ENABLE_NOTIFICATIONS, false); Long ldId = null; Long lsId = null; @@ -165,7 +166,7 @@ if (method.equals(CentralConstants.METHOD_START)) { ldId = new Long(ldIdStr); Long lessonId = startLesson(serverId, datetime, hashValue, username, ldId, courseId, title, desc, - country, lang, customCSV, exportPortfolioEnable, presenceEnable, imEnable); + country, lang, customCSV, exportPortfolioEnable, presenceEnable, imEnable, enableNotifications); element = document.createElement(CentralConstants.ELEM_LESSON); element.setAttribute(CentralConstants.ATTR_LESSON_ID, lessonId.toString()); @@ -181,7 +182,8 @@ } else if (method.equals(CentralConstants.METHOD_SCHEDULE)) { ldId = new Long(ldIdStr); Long lessonId = scheduleLesson(serverId, datetime, hashValue, username, ldId, courseId, title, desc, - startDate, country, lang, customCSV, exportPortfolioEnable, presenceEnable, imEnable); + startDate, country, lang, customCSV, exportPortfolioEnable, presenceEnable, imEnable, + enableNotifications); element = document.createElement(CentralConstants.ELEM_LESSON); element.setAttribute(CentralConstants.ATTR_LESSON_ID, lessonId.toString()); @@ -359,7 +361,8 @@ private 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 exportPortfolioEnable, boolean presenceEnable, boolean imEnable) throws RemoteException { + boolean exportPortfolioEnable, boolean presenceEnable, boolean imEnable, boolean enableNotifications) + throws RemoteException { try { ExtServerOrgMap serverMap = LessonManagerServlet.integrationService.getExtServerOrgMap(serverId); Authenticator.authenticate(serverMap, datetime, username, hashValue); @@ -372,7 +375,7 @@ // 1. init lesson Lesson lesson = LessonManagerServlet.monitoringService.initializeLesson(title, desc, ldId, organisation.getOrganisationId(), user.getUserId(), customCSV, false, false, exportPortfolioEnable, - presenceEnable, imEnable, true, false, false, null, null); + presenceEnable, imEnable, true, enableNotifications, false, null, null); // 2. create lessonClass for lesson createLessonClass(lesson, organisation, user); // 3. start lesson @@ -388,8 +391,8 @@ private Long scheduleLesson(String serverId, String datetime, String hashValue, String username, long ldId, String courseId, String title, String desc, String startDate, String countryIsoCode, String langIsoCode, - String customCSV, boolean exportPortfolioEnable, boolean presenceEnable, boolean imEnable) - throws RemoteException { + String customCSV, boolean exportPortfolioEnable, boolean presenceEnable, boolean imEnable, + boolean enableNotifications) throws RemoteException { try { ExtServerOrgMap serverMap = LessonManagerServlet.integrationService.getExtServerOrgMap(serverId); Authenticator.authenticate(serverMap, datetime, username, hashValue); @@ -399,7 +402,8 @@ // 1. init lesson Lesson lesson = LessonManagerServlet.monitoringService.initializeLesson(title, desc, ldId, orgMap.getOrganisation().getOrganisationId(), userMap.getUser().getUserId(), customCSV, false, - false, exportPortfolioEnable, presenceEnable, imEnable, true, false, false, null, null); + false, exportPortfolioEnable, presenceEnable, imEnable, true, enableNotifications, false, null, + null); // 2. create lessonClass for lesson createLessonClass(lesson, orgMap.getOrganisation(), userMap.getUser()); // 3. schedule lesson