Index: lams_admin/conf/language/lams/ApplicationResources.properties =================================================================== RCS file: /usr/local/cvsroot/lams_admin/conf/language/lams/ApplicationResources.properties,v diff -u -r1.100.2.6 -r1.100.2.7 --- lams_admin/conf/language/lams/ApplicationResources.properties 8 Jul 2015 16:55:19 -0000 1.100.2.6 +++ lams_admin/conf/language/lams/ApplicationResources.properties 24 Feb 2016 12:35:38 -0000 1.100.2.7 @@ -520,7 +520,5 @@ tool.groups.group.name.error =A group name can not be blank tool.groups.save.error =Error while saving groups config.live.edit =Enable live edit -config.export.portfolio =Enable export portfolio - #======= End labels: Exported 515 labels for en AU ===== Index: lams_admin/conf/xdoclet/struts-forms.xml =================================================================== RCS file: /usr/local/cvsroot/lams_admin/conf/xdoclet/struts-forms.xml,v diff -u -r1.43.2.6 -r1.43.2.7 --- lams_admin/conf/xdoclet/struts-forms.xml 9 Feb 2016 11:28:41 -0000 1.43.2.6 +++ lams_admin/conf/xdoclet/struts-forms.xml 24 Feb 2016 12:35:38 -0000 1.43.2.7 @@ -16,7 +16,6 @@ - Index: lams_admin/web/WEB-INF/tlds/lams/lams.tld =================================================================== RCS file: /usr/local/cvsroot/lams_admin/web/WEB-INF/tlds/lams/lams.tld,v diff -u -r1.3.2.1 -r1.3.2.2 --- lams_admin/web/WEB-INF/tlds/lams/lams.tld 4 Aug 2014 14:00:24 -0000 1.3.2.1 +++ lams_admin/web/WEB-INF/tlds/lams/lams.tld 24 Feb 2016 12:35:38 -0000 1.3.2.2 @@ -181,14 +181,6 @@ Output stylesheet based on the user preferences. - localLinkPath - false - - true - - - - Output stylesheet based on the user preferences. style false Index: lams_admin/web/organisation/createOrEdit.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_admin/web/organisation/createOrEdit.jsp,v diff -u -r1.5.2.2 -r1.5.2.3 --- lams_admin/web/organisation/createOrEdit.jsp 20 Jan 2015 08:53:13 -0000 1.5.2.2 +++ lams_admin/web/organisation/createOrEdit.jsp 24 Feb 2016 12:35:38 -0000 1.5.2.3 @@ -152,16 +152,6 @@ - - - - - - - - Index: lams_build/lib/lams/lams-monitoring.jar =================================================================== RCS file: /usr/local/cvsroot/lams_build/lib/lams/lams-monitoring.jar,v diff -u -r1.63.2.4 -r1.63.2.5 Binary files differ Index: lams_build/lib/lams/lams.jar =================================================================== RCS file: /usr/local/cvsroot/lams_build/lib/lams/lams.jar,v diff -u -r1.420.2.61 -r1.420.2.62 Binary files differ Index: lams_central/conf/language/lams/ApplicationResources.properties =================================================================== RCS file: /usr/local/cvsroot/lams_central/conf/language/lams/ApplicationResources.properties,v diff -u -r1.138.2.17 -r1.138.2.18 --- lams_central/conf/language/lams/ApplicationResources.properties 12 Jan 2016 13:14:21 -0000 1.138.2.17 +++ lams_central/conf/language/lams/ApplicationResources.properties 24 Feb 2016 12:35:44 -0000 1.138.2.18 @@ -125,7 +125,6 @@ title.edit.profile.window =LAMS :: Edit My Profile title.profile.edit.screen =Edit My Profile title.archived.groups =Archived Groups -label.export.portfolio =Export Portfolio label.name =Name label.title =Title label.first_name =First Name @@ -388,7 +387,6 @@ label.tab.advanced.field.monitor =Start in Monitor label.tab.advanced.field.liveedit =Enable Live Edit label.tab.advanced.field.notification =Enable lesson notification -label.tab.advanced.field.export =Enable export portfolio for learners label.tab.advanced.field.presence =Allow learners to see who is online label.tab.advanced.field.im =Enable Instant Messaging label.tab.advanced.field.split =Split learners into separate copies of this lesson Index: lams_central/src/java/org/lamsfoundation/lams/authoring/service/EditOnFlyProcessor.java =================================================================== RCS file: /usr/local/cvsroot/lams_central/src/java/org/lamsfoundation/lams/authoring/service/EditOnFlyProcessor.java,v diff -u -r1.4.2.3 -r1.4.2.4 --- lams_central/src/java/org/lamsfoundation/lams/authoring/service/EditOnFlyProcessor.java 24 Nov 2015 14:05:07 -0000 1.4.2.3 +++ lams_central/src/java/org/lamsfoundation/lams/authoring/service/EditOnFlyProcessor.java 24 Feb 2016 12:35:44 -0000 1.4.2.4 @@ -62,7 +62,6 @@ // everything done by endSimpleActivity } - /** Creates an ActivityPortfolio. */ @Override public void endSimpleActivity(SimpleActivity activity) throws LearningDesignProcessorException { if (!activity.isFloating()) { Index: lams_central/src/java/org/lamsfoundation/lams/authoring/web/AuthoringAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_central/src/java/org/lamsfoundation/lams/authoring/web/AuthoringAction.java,v diff -u -r1.53.2.6 -r1.53.2.7 --- lams_central/src/java/org/lamsfoundation/lams/authoring/web/AuthoringAction.java 4 Sep 2015 14:50:50 -0000 1.53.2.6 +++ lams_central/src/java/org/lamsfoundation/lams/authoring/web/AuthoringAction.java 24 Feb 2016 12:35:44 -0000 1.53.2.7 @@ -203,9 +203,8 @@ } public ActionForward getToolOutputDefinitionsJSON(ActionMapping mapping, ActionForm form, - HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, - JSONException { - String wddxPacket; + HttpServletRequest request, HttpServletResponse response) + throws ServletException, IOException, JSONException { IAuthoringService authoringService = getAuthoringService(); Long toolContentID = WebUtil.readLongParam(request, "toolContentID"); Integer definitionType = ToolOutputDefinition.DATA_OUTPUT_DEFINITION_TYPE_CONDITION; @@ -366,8 +365,8 @@ flashMessage = new FlashMessage("getAvailableLicenses", licenses); } catch (Exception e) { AuthoringAction.log.error("getAvailableLicenses: License details unavailable due to system error.", e); - flashMessage = new FlashMessage("getAvailableLicenses", "License details unavailable due to system error :" - + e.getMessage(), FlashMessage.ERROR); + flashMessage = new FlashMessage("getAvailableLicenses", + "License details unavailable due to system error :" + e.getMessage(), FlashMessage.ERROR); getAuditService().log(AuthoringAction.class.getName(), e.toString()); } @@ -468,8 +467,8 @@ // get title from tool content IToolVO tool = getToolService().getToolByID(toolID); - WebApplicationContext wac = WebApplicationContextUtils.getRequiredWebApplicationContext(getServlet() - .getServletContext()); + WebApplicationContext wac = WebApplicationContextUtils + .getRequiredWebApplicationContext(getServlet().getServletContext()); ToolContentManager toolManager = (ToolContentManager) wac.getBean(tool.getServiceName()); String title = toolManager.getToolContentTitle(toolContentID); // create the LD and put it in Run Sequences folder in the given organisation @@ -478,7 +477,7 @@ if (learningDesignID != null) { User user = (User) getUserManagementService().findById(User.class, userID); Lesson lesson = getMonitoringService().initializeLessonWithoutLDcopy(title, "", learningDesignID, user, - null, false, false, true, false, false, true, true, false, null, null); + null, false, false, false, false, true, true, false, null, null); Organisation organisation = getMonitoringService().getOrganisation(organisationID); List staffList = new LinkedList(); @@ -526,7 +525,7 @@ */ public ActionForward saveLearningDesign(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws JSONException, UserException, WorkspaceFolderException, IOException, - ObjectExtractorException, ParseException { + ObjectExtractorException, ParseException { JSONObject ldJSON = new JSONObject(request.getParameter("ld")); LearningDesign learningDesign = getAuthoringService().saveLearningDesignDetails(ldJSON); @@ -536,8 +535,8 @@ Long learningDesignID = learningDesign.getLearningDesignId(); if (learningDesignID != null) { Gson gson = new GsonBuilder().create(); - Vector validationDTOs = getAuthoringService().validateLearningDesign( - learningDesignID); + Vector validationDTOs = getAuthoringService() + .validateLearningDesign(learningDesignID); String validationJSON = gson.toJson(validationDTOs); responseJSON.put("validation", new JSONArray(validationJSON)); @@ -626,8 +625,8 @@ writer.close(); } } catch (IOException e) { - AuthoringAction.log.error("Error while writing " + extension.toUpperCase() + " thumbnail of LD " - + learningDesignID + ".", e); + AuthoringAction.log.error( + "Error while writing " + extension.toUpperCase() + " thumbnail of LD " + learningDesignID + ".", e); } finally { if (fos != null) { try { @@ -647,26 +646,26 @@ */ private IAuditService getAuditService() { if (AuthoringAction.auditService == null) { - WebApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(getServlet() - .getServletContext()); + WebApplicationContext ctx = WebApplicationContextUtils + .getRequiredWebApplicationContext(getServlet().getServletContext()); AuthoringAction.auditService = (IAuditService) ctx.getBean("auditService"); } return AuthoringAction.auditService; } private IMonitoringService getMonitoringService() { if (AuthoringAction.monitoringService == null) { - WebApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(getServlet() - .getServletContext()); + WebApplicationContext ctx = WebApplicationContextUtils + .getRequiredWebApplicationContext(getServlet().getServletContext()); AuthoringAction.monitoringService = (IMonitoringService) ctx.getBean("monitoringService"); } return AuthoringAction.monitoringService; } private IUserManagementService getUserManagementService() { if (AuthoringAction.userManagementService == null) { - WebApplicationContext wac = WebApplicationContextUtils.getRequiredWebApplicationContext(getServlet() - .getServletContext()); + WebApplicationContext wac = WebApplicationContextUtils + .getRequiredWebApplicationContext(getServlet().getServletContext()); AuthoringAction.userManagementService = (IUserManagementService) wac .getBean(CentralConstants.USER_MANAGEMENT_SERVICE_BEAN_NAME); } @@ -675,8 +674,8 @@ public IAuthoringService getAuthoringService() { if (AuthoringAction.authoringService == null) { - WebApplicationContext wac = WebApplicationContextUtils.getRequiredWebApplicationContext(getServlet() - .getServletContext()); + WebApplicationContext wac = WebApplicationContextUtils + .getRequiredWebApplicationContext(getServlet().getServletContext()); AuthoringAction.authoringService = (IAuthoringService) wac .getBean(AuthoringConstants.AUTHORING_SERVICE_BEAN_NAME); } @@ -685,26 +684,26 @@ public ILamsToolService getToolService() { if (AuthoringAction.toolService == null) { - WebApplicationContext wac = WebApplicationContextUtils.getRequiredWebApplicationContext(getServlet() - .getServletContext()); + WebApplicationContext wac = WebApplicationContextUtils + .getRequiredWebApplicationContext(getServlet().getServletContext()); AuthoringAction.toolService = (ILamsToolService) wac.getBean(AuthoringConstants.TOOL_SERVICE_BEAN_NAME); } return AuthoringAction.toolService; } private ILearningDesignService getLearningDesignService() { if (AuthoringAction.learningDesignService == null) { - WebApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(getServlet() - .getServletContext()); + WebApplicationContext ctx = WebApplicationContextUtils + .getRequiredWebApplicationContext(getServlet().getServletContext()); AuthoringAction.learningDesignService = (ILearningDesignService) ctx.getBean("learningDesignService"); } return AuthoringAction.learningDesignService; } private ISecurityService getSecurityService() { if (AuthoringAction.securityService == null) { - WebApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(getServlet() - .getServletContext()); + WebApplicationContext ctx = WebApplicationContextUtils + .getRequiredWebApplicationContext(getServlet().getServletContext()); AuthoringAction.securityService = (ISecurityService) ctx.getBean("securityService"); } return AuthoringAction.securityService; 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.37.2.1 -r1.37.2.2 --- lams_central/src/java/org/lamsfoundation/lams/util/CentralConstants.java 13 Feb 2015 23:43:00 -0000 1.37.2.1 +++ lams_central/src/java/org/lamsfoundation/lams/util/CentralConstants.java 24 Feb 2016 12:35:44 -0000 1.37.2.2 @@ -185,8 +185,6 @@ public static final String HEADER_CONTENT_ATTACHMENT = "attachment;filename="; - public static final String PARAM_LEARNER_EXPORT_PORTFOLIO_ENABLE = "learnerEnableExport"; - public static final String PARAM_LEARNER_PRESENCE_ENABLE = "learnerSeeOnline"; public static final String PARAM_LEARNER_IM_ENABLE = "learnerInstantMessaging"; Index: lams_central/src/java/org/lamsfoundation/lams/web/DisplayGroupAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_central/src/java/org/lamsfoundation/lams/web/DisplayGroupAction.java,v diff -u -r1.45.2.4 -r1.45.2.5 --- lams_central/src/java/org/lamsfoundation/lams/web/DisplayGroupAction.java 10 Sep 2015 22:16:23 -0000 1.45.2.4 +++ lams_central/src/java/org/lamsfoundation/lams/web/DisplayGroupAction.java 24 Feb 2016 12:35:44 -0000 1.45.2.5 @@ -37,7 +37,6 @@ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; -import org.apache.log4j.Logger; import org.apache.struts.action.Action; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; @@ -68,7 +67,6 @@ * @struts.action-forward name="group" path="/group.jsp" */ public class DisplayGroupAction extends Action { - private static Logger log = Logger.getLogger(DisplayGroupAction.class); private static IUserManagementService service; private static LessonService lessonService; private static ILearningDesignService learningDesignService; @@ -127,16 +125,16 @@ private IndexOrgBean createOrgBean(Organisation org, List roles, String username, boolean isSysAdmin) throws SQLException, NamingException { - IndexOrgBean orgBean = new IndexOrgBean(org.getOrganisationId(), org.getName(), org.getOrganisationType() - .getOrganisationTypeId()); + IndexOrgBean orgBean = new IndexOrgBean(org.getOrganisationId(), org.getName(), + org.getOrganisationType().getOrganisationTypeId()); // First, populate header part List links = new ArrayList(); List moreLinks = new ArrayList(); if (isSysAdmin && stateId.equals(OrganisationState.ACTIVE)) { if (orgBean.getType().equals(OrganisationType.COURSE_TYPE)) { - moreLinks.add(new IndexLinkBean("index.classman", "javascript:openOrgManagement(" - + org.getOrganisationId() + ")", "manage-group-button", null)); + moreLinks.add(new IndexLinkBean("index.classman", + "javascript:openOrgManagement(" + org.getOrganisationId() + ")", "manage-group-button", null)); } } @@ -145,34 +143,37 @@ links.add(new IndexLinkBean("index.coursegradebook.learner", link, "my-grades-button", null)); } - if ((roles.contains(Role.ROLE_GROUP_ADMIN) || roles.contains(Role.ROLE_GROUP_MANAGER) || roles - .contains(Role.ROLE_MONITOR)) && stateId.equals(OrganisationState.ACTIVE)) { + if ((roles.contains(Role.ROLE_GROUP_ADMIN) || roles.contains(Role.ROLE_GROUP_MANAGER) + || roles.contains(Role.ROLE_MONITOR)) && stateId.equals(OrganisationState.ACTIVE)) { if (orgBean.getType().equals(OrganisationType.COURSE_TYPE)) { - if ((!isSysAdmin) && (roles.contains(Role.ROLE_GROUP_ADMIN) || roles.contains(Role.ROLE_GROUP_MANAGER))) { - moreLinks.add(new IndexLinkBean("index.classman", "javascript:openOrgManagement(" - + org.getOrganisationId() + ")", "manage-group-button", null)); + if ((!isSysAdmin) + && (roles.contains(Role.ROLE_GROUP_ADMIN) || roles.contains(Role.ROLE_GROUP_MANAGER))) { + moreLinks.add(new IndexLinkBean("index.classman", + "javascript:openOrgManagement(" + org.getOrganisationId() + ")", "manage-group-button", + null)); } if ((roles.contains(Role.ROLE_GROUP_ADMIN) || roles.contains(Role.ROLE_GROUP_MANAGER) || roles.contains(Role.ROLE_AUTHOR) || roles.contains(Role.ROLE_MONITOR))) { - moreLinks.add(new IndexLinkBean("index.orggroup", "javascript:showOrgGroupDialog(" - + org.getOrganisationId() + ")", "manage-group-button", null)); + moreLinks.add(new IndexLinkBean("index.orggroup", + "javascript:showOrgGroupDialog(" + org.getOrganisationId() + ")", "manage-group-button", + null)); } if (roles.contains(Role.ROLE_GROUP_MANAGER) || roles.contains(Role.ROLE_MONITOR)) { String name = org.getEnableSingleActivityLessons() ? "index.addlesson.single" : "index.addlesson"; - links.add(new IndexLinkBean(name, - "javascript:showAddLessonDialog(" + org.getOrganisationId() + ")", "add-lesson-button", - null)); + links.add(new IndexLinkBean(name, "javascript:showAddLessonDialog(" + org.getOrganisationId() + ")", + "add-lesson-button", null)); } - moreLinks.add(new IndexLinkBean("index.searchlesson", "javascript:showSearchLessonDialog(" - + org.getOrganisationId() + ")", "search-lesson", "index.searchlesson.tooltip")); + moreLinks.add(new IndexLinkBean("index.searchlesson", + "javascript:showSearchLessonDialog(" + org.getOrganisationId() + ")", "search-lesson", + "index.searchlesson.tooltip")); // Adding course notifications links if enabled if (org.getEnableCourseNotifications() && (roles.contains(Role.ROLE_GROUP_MANAGER) || roles.contains(Role.ROLE_MONITOR))) { - moreLinks.add(new IndexLinkBean("index.emailnotifications", "javascript:showNotificationsDialog(" - + org.getOrganisationId() + ",null)", "course-notifications", - "index.emailnotifications.tooltip")); + moreLinks.add(new IndexLinkBean("index.emailnotifications", + "javascript:showNotificationsDialog(" + org.getOrganisationId() + ",null)", + "course-notifications", "index.emailnotifications.tooltip")); } // Adding gradebook course monitor links if enabled @@ -185,11 +186,10 @@ } else {// CLASS_TYPE if (roles.contains(Role.ROLE_GROUP_MANAGER) || roles.contains(Role.ROLE_MONITOR)) { - String name = org.getParentOrganisation().getEnableSingleActivityLessons() ? "index.addlesson.single" - : "index.addlesson"; - links.add(new IndexLinkBean(name, - "javascript:showAddLessonDialog(" + org.getOrganisationId() + ")", "add-lesson-button", - null)); + String name = org.getParentOrganisation().getEnableSingleActivityLessons() + ? "index.addlesson.single" : "index.addlesson"; + links.add(new IndexLinkBean(name, "javascript:showAddLessonDialog(" + org.getOrganisationId() + ")", + "add-lesson-button", null)); } // Adding gradebook course monitor links if enabled @@ -236,8 +236,8 @@ for (Organisation organisation : children) { if (organisation.getOrganisationState().getOrganisationStateId().equals(stateId)) { List classRoles = new ArrayList(); - List userOrganisationRoles = getService().getUserOrganisationRoles( - organisation.getOrganisationId(), username); + List userOrganisationRoles = getService() + .getUserOrganisationRoles(organisation.getOrganisationId(), username); // don't list the subgroup if user is not a member, and not a group admin/manager if (((userOrganisationRoles == null) || userOrganisationRoles.isEmpty()) && !isSysAdmin && !roles.contains(Role.ROLE_GROUP_ADMIN) && !roles.contains(Role.ROLE_GROUP_MANAGER)) { @@ -284,20 +284,11 @@ LinkedList lessonLinks = new LinkedList(); String url = null; Integer lessonStateId = bean.getState(); - if (stateId.equals(OrganisationState.ACTIVE)) { - if (roles.contains(Role.ROLE_LEARNER)) { - if (lessonStateId.equals(Lesson.STARTED_STATE) || lessonStateId.equals(Lesson.FINISHED_STATE)) { - url = "javascript:openLearner(" + bean.getId() + ")"; - } - } - } else if (stateId.equals(OrganisationState.ARCHIVED)) { - if (roles.contains(Role.ROLE_LEARNER)) { - if (lessonStateId.equals(Lesson.STARTED_STATE) || lessonStateId.equals(Lesson.FINISHED_STATE)) { - lessonLinks.addFirst(new IndexLinkBean("label.export.portfolio", - "javascript:openExportPortfolio(" + bean.getId() + ")")); - } - } + if (stateId.equals(OrganisationState.ACTIVE) && roles.contains(Role.ROLE_LEARNER) + && (lessonStateId.equals(Lesson.STARTED_STATE) || lessonStateId.equals(Lesson.FINISHED_STATE))) { + url = "javascript:openLearner(" + bean.getId() + ")"; } + if ((lessonLinks.size() > 0) || (url != null)) { bean.setUrl(url); bean.setLinks(lessonLinks); @@ -327,8 +318,8 @@ if ((isGroupManagerOrMonitor && stateId.equals(OrganisationState.ACTIVE)) || (stateId.equals(OrganisationState.ARCHIVED) && roles.contains(Role.ROLE_GROUP_MANAGER))) { - lessonLinks.addFirst(new IndexLinkBean("index.monitor", "javascript:showMonitorLessonDialog(" - + bean.getId() + ")", "mycourses-monitor-img", null)); + lessonLinks.addFirst(new IndexLinkBean("index.monitor", + "javascript:showMonitorLessonDialog(" + bean.getId() + ")", "mycourses-monitor-img", null)); } // Adding lesson notifications links if enabled @@ -339,9 +330,8 @@ } // Adding gradebook course monitor links if enabled - if (isGroupManagerOrMonitor - && (org.getEnableGradebookForMonitors() || ((parent != null) && parent - .getEnableGradebookForMonitors()))) { + if (isGroupManagerOrMonitor && (org.getEnableGradebookForMonitors() + || ((parent != null) && parent.getEnableGradebookForMonitors()))) { String link = "javascript:showGradebookLessonDialog(" + bean.getId() + ")"; lessonLinks .addFirst(new IndexLinkBean("index.coursegradebookmonitor", link, "mycourses-mark-img", null)); @@ -373,40 +363,40 @@ private User getUser(String login) { return (User) getService().findByProperty(User.class, "login", login).get(0); } - + private IUserManagementService getService() { if (DisplayGroupAction.service == null) { - WebApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(getServlet() - .getServletContext()); + WebApplicationContext ctx = WebApplicationContextUtils + .getRequiredWebApplicationContext(getServlet().getServletContext()); DisplayGroupAction.service = (IUserManagementService) ctx.getBean("userManagementService"); } return DisplayGroupAction.service; } private LessonService getLessonService() { if (DisplayGroupAction.lessonService == null) { - WebApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(getServlet() - .getServletContext()); + WebApplicationContext ctx = WebApplicationContextUtils + .getRequiredWebApplicationContext(getServlet().getServletContext()); DisplayGroupAction.lessonService = (LessonService) ctx.getBean("lessonService"); } return DisplayGroupAction.lessonService; } private ILearningDesignService getLearningDesignService() { if (DisplayGroupAction.learningDesignService == null) { - WebApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(getServlet() - .getServletContext()); + WebApplicationContext ctx = WebApplicationContextUtils + .getRequiredWebApplicationContext(getServlet().getServletContext()); DisplayGroupAction.learningDesignService = (ILearningDesignService) ctx.getBean("learningDesignService"); } return DisplayGroupAction.learningDesignService; } - + private ISecurityService getSecurityService() { - if (securityService == null) { - WebApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(getServlet() - .getServletContext()); - securityService = (ISecurityService) ctx.getBean("securityService"); + if (DisplayGroupAction.securityService == null) { + WebApplicationContext ctx = WebApplicationContextUtils + .getRequiredWebApplicationContext(getServlet().getServletContext()); + DisplayGroupAction.securityService = (ISecurityService) ctx.getBean("securityService"); } - return securityService; + return DisplayGroupAction.securityService; } } \ 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.15 -r1.60.2.16 --- lams_central/src/java/org/lamsfoundation/lams/web/HomeAction.java 10 Sep 2015 11:03:43 -0000 1.60.2.15 +++ lams_central/src/java/org/lamsfoundation/lams/web/HomeAction.java 24 Feb 2016 12:35:44 -0000 1.60.2.16 @@ -205,16 +205,7 @@ req.setAttribute(AttributeNames.PARAM_MODE, mode); } - Boolean isPortfolioEnabled = lesson.getLearnerExportAvailable() != null ? lesson.getLearnerExportAvailable() - : Boolean.TRUE; - Organisation organisation = lesson.getOrganisation(); - // in case of preview lesson (organisation is null) don't check organisation's settings - if (organisation != null) { - isPortfolioEnabled &= organisation.getEnableExportPortfolio(); - } - req.setAttribute(AttributeNames.PARAM_LESSON_ID, String.valueOf(lessonId)); - req.setAttribute(AttributeNames.PARAM_EXPORT_PORTFOLIO_ENABLED, String.valueOf(isPortfolioEnabled)); req.setAttribute(AttributeNames.PARAM_PRESENCE_ENABLED, String.valueOf(lesson.getLearnerPresenceAvailable())); req.setAttribute(AttributeNames.PARAM_PRESENCE_IM_ENABLED, String.valueOf(lesson.getLearnerImAvailable())); Index: lams_central/src/java/org/lamsfoundation/lams/web/tag/CssTag.java =================================================================== RCS file: /usr/local/cvsroot/lams_central/src/java/org/lamsfoundation/lams/web/tag/CssTag.java,v diff -u -r1.21.4.1 -r1.21.4.2 --- lams_central/src/java/org/lamsfoundation/lams/web/tag/CssTag.java 10 Feb 2016 10:01:39 -0000 1.21.4.1 +++ lams_central/src/java/org/lamsfoundation/lams/web/tag/CssTag.java 24 Feb 2016 12:35:44 -0000 1.21.4.2 @@ -50,9 +50,9 @@ * @author Fiona Malikoff */ public class CssTag extends TagSupport { + private static final long serialVersionUID = -3143529984657965761L; private static final Logger log = Logger.getLogger(CssTag.class); - private String localLinkPath = null; private String style = null; private static final String LEARNER_STYLE = "learner"; // expandable @@ -79,11 +79,7 @@ for (String theme : themeList) { if (theme != null) { theme = appendStyle(theme, rtl); - if (localLinkPath != null) { - customStylesheetLink = generateLocalLink(theme); - } else { - customStylesheetLink = generateLink(theme, serverURL); - } + customStylesheetLink = generateLink(theme, serverURL); } if (customStylesheetLink != null) { @@ -104,16 +100,6 @@ return Tag.SKIP_BODY; } - private String generateLocalLink(String stylesheetName) { - if (localLinkPath.endsWith("/")) { - return ""; - } else { - return ""; - } - } - private String appendStyle(String stylesheetName, boolean rtl) { String ssName = stylesheetName; if (ssName != null) { @@ -142,21 +128,6 @@ } /** - * @jsp.attribute required="false" rtexprvalue="true" description="Should the css link be a local file link? If so, - * what is the path back to the 'root'. For tools' export portfolio pages, this should be set to - * \"../\"" - * - * @return Returns the property. - */ - public String getLocalLinkPath() { - return localLinkPath; - } - - public void setLocalLinkPath(String localLinkPath) { - this.localLinkPath = localLinkPath; - } - - /** * @jsp.attribute required="false" rtexprvalue="true" description="Learner pages use learner, fancy pages such as * index page use core" * Index: lams_central/src/java/org/lamsfoundation/lams/webservice/xml/LessonJoinServlet.java =================================================================== RCS file: /usr/local/cvsroot/lams_central/src/java/org/lamsfoundation/lams/webservice/xml/LessonJoinServlet.java,v diff -u -r1.12 -r1.12.2.1 --- lams_central/src/java/org/lamsfoundation/lams/webservice/xml/LessonJoinServlet.java 29 Jan 2014 21:26:09 -0000 1.12 +++ lams_central/src/java/org/lamsfoundation/lams/webservice/xml/LessonJoinServlet.java 24 Feb 2016 12:35:44 -0000 1.12.2.1 @@ -84,8 +84,8 @@ @Override public void init() throws ServletException { - LessonJoinServlet.lessonService = (ILessonService) WebApplicationContextUtils.getRequiredWebApplicationContext( - getServletContext()).getBean("lessonService"); + LessonJoinServlet.lessonService = (ILessonService) WebApplicationContextUtils + .getRequiredWebApplicationContext(getServletContext()).getBean("lessonService"); LessonJoinServlet.userService = (IUserManagementService) WebApplicationContextUtils .getRequiredWebApplicationContext(getServletContext()).getBean("userManagementService"); @@ -98,8 +98,8 @@ } @Override - public synchronized void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, - IOException { + public synchronized void doGet(HttpServletRequest request, HttpServletResponse response) + throws ServletException, IOException { PrintWriter out = response.getWriter(); response.setContentType("text/xml"); @@ -129,23 +129,23 @@ if (StringUtils.isBlank(username)) { LessonJoinServlet.log.debug("Missing parameter: " + CentralConstants.PARAM_USERNAME); element.setAttribute(CentralConstants.ATTR_RESULT_CODE, "0"); - element.setAttribute(CentralConstants.ATTR_RESULT_TEXT, "Missing parameter: " - + CentralConstants.PARAM_USERNAME); + element.setAttribute(CentralConstants.ATTR_RESULT_TEXT, + "Missing parameter: " + CentralConstants.PARAM_USERNAME); } else if (StringUtils.isBlank(orgId)) { LessonJoinServlet.log.debug("Missing parameter: " + CentralConstants.PARAM_COURSE_ID); element.setAttribute(CentralConstants.ATTR_RESULT_CODE, "0"); - element.setAttribute(CentralConstants.ATTR_RESULT_TEXT, "Missing parameter: " - + CentralConstants.PARAM_COURSE_ID); + element.setAttribute(CentralConstants.ATTR_RESULT_TEXT, + "Missing parameter: " + CentralConstants.PARAM_COURSE_ID); } else if (StringUtils.isBlank(ldId)) { LessonJoinServlet.log.debug("Missing parameter: " + CentralConstants.PARAM_LEARNING_DESIGN_ID); element.setAttribute(CentralConstants.ATTR_RESULT_CODE, "0"); - element.setAttribute(CentralConstants.ATTR_RESULT_TEXT, "Missing parameter: " - + CentralConstants.PARAM_LEARNING_DESIGN_ID); + element.setAttribute(CentralConstants.ATTR_RESULT_TEXT, + "Missing parameter: " + CentralConstants.PARAM_LEARNING_DESIGN_ID); } else if (StringUtils.isBlank(learnerSize)) { LessonJoinServlet.log.debug("Missing parameter: " + CentralConstants.PARAM_LEARNER_SIZE); element.setAttribute(CentralConstants.ATTR_RESULT_CODE, "0"); - element.setAttribute(CentralConstants.ATTR_RESULT_TEXT, "Missing parameter: " - + CentralConstants.PARAM_LEARNER_SIZE); + element.setAttribute(CentralConstants.ATTR_RESULT_TEXT, + "Missing parameter: " + CentralConstants.PARAM_LEARNER_SIZE); } // authenticate integrated server @@ -163,7 +163,8 @@ if ((lessons != null) && (lessons.size() > 0)) { // add to first lesson where lesson size < learnerSize - if (addUserToLesson(lessons, Integer.valueOf(learnerSize).intValue(), Integer.valueOf(orgId), user)) { + if (addUserToLesson(lessons, Integer.valueOf(learnerSize).intValue(), Integer.valueOf(orgId), + user)) { // success result code element.setAttribute(CentralConstants.ATTR_RESULT_CODE, "1"); } @@ -258,7 +259,6 @@ String lessonDescription; Boolean enableLessonIntro; Boolean displayDesignImage; - Boolean learnerExportAvailable; Boolean learnerPresenceAvailable; Boolean learnerImAvailable; Boolean liveEditEnabled; @@ -279,7 +279,6 @@ lessonDescription = l.getLessonDescription(); enableLessonIntro = l.isEnableLessonIntro(); displayDesignImage = l.isDisplayDesignImage(); - learnerExportAvailable = l.getLearnerExportAvailable(); learnerPresenceAvailable = l.getLearnerPresenceAvailable(); learnerImAvailable = l.getLearnerImAvailable(); liveEditEnabled = l.getLiveEditEnabled(); @@ -296,7 +295,6 @@ lessonDescription = ld.getDescription(); enableLessonIntro = false; displayDesignImage = false; - learnerExportAvailable = true; learnerPresenceAvailable = false; learnerImAvailable = false; liveEditEnabled = false; @@ -309,10 +307,9 @@ false); staffList = getUsersFromDTOs(userDTOs); } - Lesson lesson = LessonJoinServlet.monitoringService.initializeLesson(lessonName, lessonDescription, ldId, - orgId, ownerUserId, null, enableLessonIntro, displayDesignImage, learnerExportAvailable, - learnerPresenceAvailable, learnerImAvailable, liveEditEnabled, enableNotifications, learnerRestart, - null, null); + Lesson lesson = LessonJoinServlet.monitoringService.initializeLesson(lessonName, lessonDescription, ldId, orgId, + ownerUserId, null, enableLessonIntro, displayDesignImage, learnerPresenceAvailable, learnerImAvailable, + liveEditEnabled, enableNotifications, learnerRestart, null, null); LessonJoinServlet.monitoringService.createLessonClassForLesson(lesson.getLessonId().longValue(), org, learnerGroupName, learnerList, staffGroupName, staffList, ownerUserId); LessonJoinServlet.monitoringService.startLesson(lesson.getLessonId().longValue(), ownerUserId); 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.9 -r1.48.2.10 --- lams_central/src/java/org/lamsfoundation/lams/webservice/xml/LessonManagerServlet.java 22 Oct 2015 08:51:59 -0000 1.48.2.9 +++ lams_central/src/java/org/lamsfoundation/lams/webservice/xml/LessonManagerServlet.java 24 Feb 2016 12:35:44 -0000 1.48.2.10 @@ -85,7 +85,7 @@ private static IExportToolContentService exportService = null; private static ILamsCoreToolService toolService = null; - + private static IGradebookService gradebookService = null; private static IUserManagementService userManagementService = null; @@ -136,9 +136,6 @@ String lastNames = request.getParameter("lastNames"); String emails = request.getParameter("emails"); - // optional parameters for lesson initialisation - boolean exportPortfolioEnable = WebUtil.readBooleanParam(request, - CentralConstants.PARAM_LEARNER_EXPORT_PORTFOLIO_ENABLE, false); boolean presenceEnable = WebUtil.readBooleanParam(request, CentralConstants.PARAM_LEARNER_PRESENCE_ENABLE, false); boolean imEnable = WebUtil.readBooleanParam(request, CentralConstants.PARAM_LEARNER_IM_ENABLE, false); @@ -162,7 +159,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, presenceEnable, imEnable); element = document.createElement(CentralConstants.ELEM_LESSON); element.setAttribute(CentralConstants.ATTR_LESSON_ID, lessonId.toString()); @@ -178,7 +175,7 @@ } 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, presenceEnable, imEnable); element = document.createElement(CentralConstants.ELEM_LESSON); element.setAttribute(CentralConstants.ATTR_LESSON_ID, lessonId.toString()); @@ -199,7 +196,7 @@ String firstName = request.getParameter(LoginRequestDispatcher.PARAM_FIRST_NAME); String lastName = request.getParameter(LoginRequestDispatcher.PARAM_LAST_NAME); String email = request.getParameter(LoginRequestDispatcher.PARAM_EMAIL); - + lsId = new Long(lsIdStr); element = getSingleStudentProgress(document, serverId, datetime, hashValue, username, firstName, lastName, lang, country, email, lsId, courseId); @@ -219,21 +216,22 @@ element = document.createElement(CentralConstants.ELEM_LESSON); element.setAttribute(CentralConstants.ATTR_LESSON_ID, lsIdStr); - + } else if (method.equals("gradebookMarksUser")) { lsId = new Long(lsIdStr); element = getGradebookMarks(document, serverId, datetime, hashValue, username, lsId, null, outputsUser); - + } else if (method.equals("gradebookMarksLesson")) { lsId = new Long(lsIdStr); element = getGradebookMarks(document, serverId, datetime, hashValue, username, lsId, null, null); - + } else if (method.equals("gradebookMarksCourse")) { element = getGradebookMarks(document, serverId, datetime, hashValue, username, null, courseId, null); } else if (method.equals("toolOutputsAllUsers")) { lsId = new Long(lsIdStr); - element = getToolOutputs(document, serverId, datetime, hashValue, username, lsId, courseId, false, null); + element = getToolOutputs(document, serverId, datetime, hashValue, username, lsId, courseId, false, + null); } else if (method.equals("authoredToolOutputsAllUsers")) { lsId = new Long(lsIdStr); @@ -293,7 +291,7 @@ } catch (Exception e) { LessonManagerServlet.log.error("Problem loading learning manager servlet request", e); response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR); - + } finally { if (outputStream != null) { outputStream.flush(); @@ -325,7 +323,7 @@ public 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 presenceEnable, boolean imEnable) throws RemoteException { try { ExtServerOrgMap serverMap = LessonManagerServlet.integrationService.getExtServerOrgMap(serverId); Authenticator.authenticate(serverMap, datetime, username, hashValue); @@ -337,8 +335,8 @@ // 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); + organisation.getOrganisationId(), user.getUserId(), customCSV, false, false, presenceEnable, + imEnable, true, false, false, null, null); // 2. create lessonClass for lesson createLessonClass(lesson, organisation, user); // 3. start lesson @@ -354,24 +352,23 @@ public 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 presenceEnable, boolean imEnable) throws RemoteException { try { ExtServerOrgMap serverMap = LessonManagerServlet.integrationService.getExtServerOrgMap(serverId); Authenticator.authenticate(serverMap, datetime, username, hashValue); ExtUserUseridMap userMap = LessonManagerServlet.integrationService.getExtUserUseridMap(serverMap, username); ExtCourseClassMap orgMap = LessonManagerServlet.integrationService.getExtCourseClassMap(serverMap, userMap, courseId, countryIsoCode, langIsoCode, null, LoginRequestDispatcher.METHOD_MONITOR); // 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); + Lesson lesson = LessonManagerServlet.monitoringService.initializeLesson(title, desc, ldId, + orgMap.getOrganisation().getOrganisationId(), userMap.getUser().getUserId(), customCSV, false, + false, presenceEnable, imEnable, true, false, false, null, null); // 2. create lessonClass for lesson createLessonClass(lesson, orgMap.getOrganisation(), userMap.getUser()); // 3. schedule lesson Date date = DateUtil.convertFromLAMSFlashFormat(startDate); - LessonManagerServlet.monitoringService.startLessonOnSchedule(lesson.getLessonId(), date, userMap.getUser() - .getUserId()); + LessonManagerServlet.monitoringService.startLessonOnSchedule(lesson.getLessonId(), date, + userMap.getUser().getUserId()); return lesson.getLessonId(); } catch (Exception e) { throw new RemoteException(e.getMessage(), e); @@ -400,8 +397,8 @@ // get the username with the integration prefix removed String userNoPrefixName = learnerProgress.getUserName().substring(prefix.length() + 1); - ExtUserUseridMap learnerMap = LessonManagerServlet.integrationService.getExtUserUseridMap( - serverMap, userNoPrefixName); + ExtUserUseridMap learnerMap = LessonManagerServlet.integrationService.getExtUserUseridMap(serverMap, + userNoPrefixName); Element learnerProgElem = document.createElement(CentralConstants.ELEM_LEARNER_PROGRESS); @@ -412,10 +409,10 @@ learnerProgElem.setAttribute(CentralConstants.ATTR_LESSON_COMPLETE, "" + learnerProgress.getLessonComplete()); learnerProgElem.setAttribute(CentralConstants.ATTR_ACTIVITY_COUNT, "" + activitiesTotal); - learnerProgElem.setAttribute(CentralConstants.ATTR_ACTIVITIES_COMPLETED, "" - + completedActivities); - learnerProgElem.setAttribute(CentralConstants.ATTR_ACTIVITIES_ATTEMPTED, "" - + attemptedActivities); + learnerProgElem.setAttribute(CentralConstants.ATTR_ACTIVITIES_COMPLETED, + "" + completedActivities); + learnerProgElem.setAttribute(CentralConstants.ATTR_ACTIVITIES_ATTEMPTED, + "" + attemptedActivities); // learnerProgElem.setAttribute(CentralConstants.ATTR_CURRENT_ACTIVITY , currActivity); learnerProgElem.setAttribute(CentralConstants.ATTR_STUDENT_ID, "" + learnerMap.getSid()); learnerProgElem.setAttribute(CentralConstants.ATTR_COURSE_ID, courseID); @@ -458,8 +455,8 @@ serverMap, username, firstName, lastName, language, country, email, usePrefix, isUpdateUserDetails); - LearnerProgress learnProg = LessonManagerServlet.lessonService.getUserProgressForLesson(userMap - .getUser().getUserId(), lsId); + LearnerProgress learnProg = LessonManagerServlet.lessonService + .getUserProgressForLesson(userMap.getUser().getUserId(), lsId); Element learnerProgElem = document.createElement(CentralConstants.ELEM_LEARNER_PROGRESS); @@ -474,10 +471,10 @@ learnerProgElem.setAttribute(CentralConstants.ATTR_LESSON_COMPLETE, "" + learnerProgress.getLessonComplete()); learnerProgElem.setAttribute(CentralConstants.ATTR_ACTIVITY_COUNT, "" + activitiesTotal); - learnerProgElem.setAttribute(CentralConstants.ATTR_ACTIVITIES_COMPLETED, "" - + completedActivities); - learnerProgElem.setAttribute(CentralConstants.ATTR_ACTIVITIES_ATTEMPTED, "" - + attemptedActivities); + learnerProgElem.setAttribute(CentralConstants.ATTR_ACTIVITIES_COMPLETED, + "" + completedActivities); + learnerProgElem.setAttribute(CentralConstants.ATTR_ACTIVITIES_ATTEMPTED, + "" + attemptedActivities); // learnerProgElem.setAttribute(CentralConstants.ATTR_CURRENT_ACTIVITY , currActivity); learnerProgElem.setAttribute(CentralConstants.ATTR_STUDENT_ID, "" + userMap.getSid()); learnerProgElem.setAttribute(CentralConstants.ATTR_COURSE_ID, courseID); @@ -537,8 +534,8 @@ Integer userId = userMap.getUser().getUserId(); // 1. init lesson - Lesson lesson = LessonManagerServlet.monitoringService.initializeLessonForPreview(title, desc, ldId, - userId, customCSV, presenceEnable, imEnable, false); + Lesson lesson = LessonManagerServlet.monitoringService.initializeLessonForPreview(title, desc, ldId, userId, + customCSV, presenceEnable, imEnable, false); // 2. create lessonClass for lesson LessonManagerServlet.monitoringService.createPreviewClassForLesson(userId, lesson.getLessonId()); @@ -603,8 +600,8 @@ List staffList = new LinkedList(); staffList.add(creator); List learnerList = new LinkedList(); - Vector learnerVector = LessonManagerServlet.userManagementService.getUsersFromOrganisationByRole( - organisation.getOrganisationId(), Role.LEARNER, false, true); + Vector learnerVector = LessonManagerServlet.userManagementService + .getUsersFromOrganisationByRole(organisation.getOrganisationId(), Role.LEARNER, false, true); learnerList.addAll(learnerVector); LessonManagerServlet.monitoringService.createLessonClassForLesson(lesson.getLessonId(), organisation, organisation.getName() + "Learners", learnerList, organisation.getName() + "Staff", staffList, @@ -635,7 +632,7 @@ LessonManagerServlet.toolService = (ILamsCoreToolService) WebApplicationContextUtils .getRequiredWebApplicationContext(getServletContext()).getBean("lamsCoreToolService"); - + LessonManagerServlet.gradebookService = (IGradebookService) WebApplicationContextUtils .getRequiredWebApplicationContext(getServletContext()).getBean("gradebookService"); @@ -716,9 +713,9 @@ // in case there is firstNames available - check all arrays have the same length, as otherwise it's // prone to ArrayOutOfBounds exceptions - if ((firstNames != null) - && ((firstNameArray.length != lastNameArray.length) - || (firstNameArray.length != emailArray.length) || (firstNameArray.length != (learnerIdArray.length + monitorIdArray.length)))) { + 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."); return false; } @@ -776,8 +773,8 @@ String countryIsoCode, String langIsoCode) throws UserInfoFetchException, UserInfoValidationException { if (LessonManagerServlet.log.isDebugEnabled()) { - LessonManagerServlet.log.debug("Adding user '" + username + "' as " + method + " to lesson with id '" - + lsIdStr + "'."); + LessonManagerServlet.log + .debug("Adding user '" + username + "' as " + method + " to lesson with id '" + lsIdStr + "'."); } ExtUserUseridMap userMap = null; @@ -798,8 +795,8 @@ if (LessonManagerServlet.lessonService == null) { LessonManagerServlet.lessonService = (ILessonService) WebApplicationContextUtils - .getRequiredWebApplicationContext(request.getSession().getServletContext()).getBean( - "lessonService"); + .getRequiredWebApplicationContext(request.getSession().getServletContext()) + .getBean("lessonService"); } User user = userMap.getUser(); @@ -817,7 +814,7 @@ } } - + /** * This method gets the tool outputs for a lesson or a specific user and returns them in XML format. * @@ -835,36 +832,36 @@ */ @SuppressWarnings("unchecked") public Element getGradebookMarks(Document document, String serverId, String datetime, String hashValue, - String username, Long lessonIdParam, String courseId, String outputsUser) - throws Exception { + String username, Long lessonIdParam, String courseId, String outputsUser) throws Exception { ExtServerOrgMap serverMap = LessonManagerServlet.integrationService.getExtServerOrgMap(serverId); Authenticator.authenticate(serverMap, datetime, username, hashValue); - + List lessons = new LinkedList(); if (courseId != null) { - + ExtCourseClassMap orgMap = LessonManagerServlet.integrationService.getExtCourseClassMap(serverMap.getSid(), courseId); if (orgMap == null) { - LessonManagerServlet.log.debug("No course exists for: " + courseId - + ". Cannot get tool outputs report."); + LessonManagerServlet.log + .debug("No course exists for: " + courseId + ". Cannot get tool outputs report."); throw new Exception("Course with courseId: " + courseId + " could not be found"); - } + } Integer organisationId = orgMap.getOrganisation().getOrganisationId(); - - lessons.addAll(lessonService.getLessonsByGroup(organisationId)); - + + lessons.addAll(LessonManagerServlet.lessonService.getLessonsByGroup(organisationId)); + } else { Lesson lesson = LessonManagerServlet.lessonService.getLesson(lessonIdParam); if (lesson == null) { - LessonManagerServlet.log.debug("No lesson exists for: " + lessonIdParam - + ". Cannot get tool outputs report."); - throw new Exception("Lesson with lessonID: " + lessonIdParam + " could not be found for learner progresses"); + LessonManagerServlet.log + .debug("No lesson exists for: " + lessonIdParam + ". Cannot get tool outputs report."); + throw new Exception( + "Lesson with lessonID: " + lessonIdParam + " could not be found for learner progresses"); } lessons.add(lesson); } - + // Create the root node of the xml document Element gradebookMarksElement = document.createElement("GradebookMarks"); @@ -890,31 +887,33 @@ // if outputsUser is null we build results for the whole lesson, otherwise - for the specified learner if (outputsUser != null) { - ExtUserUseridMap userMap = LessonManagerServlet.integrationService.getExistingExtUserUseridMap( - serverMap, outputsUser); + ExtUserUseridMap userMap = LessonManagerServlet.integrationService + .getExistingExtUserUseridMap(serverMap, outputsUser); if (userMap == null) { throw new Exception("No user exists for: " + outputsUser + ". Cannot get tool outputs report."); } User user = userMap.getUser(); Integer userId = user.getUserId(); - - GradebookUserLesson gradebookUserLesson = gradebookService.getGradebookUserLesson(lessonId, userId); + + GradebookUserLesson gradebookUserLesson = LessonManagerServlet.gradebookService + .getGradebookUserLesson(lessonId, userId); if (gradebookUserLesson == null) { gradebookUserLesson = new GradebookUserLesson(lesson, user); } gradebookUserLessons.add(gradebookUserLesson); } else { - gradebookUserLessons.addAll(gradebookService.getGradebookUserLesson(lessonId)); + gradebookUserLessons.addAll(LessonManagerServlet.gradebookService.getGradebookUserLesson(lessonId)); LessonManagerServlet.log.debug("Getting tool ouputs report for: " + lessonId + ". With learning design: " + lesson.getLearningDesign().getLearningDesignId()); } - - List allUsers = integrationService.getExtUserUseridMapByServerMap(serverMap); + List allUsers = LessonManagerServlet.integrationService + .getExtUserUseridMapByServerMap(serverMap); + for (GradebookUserLesson gradebookUserLesson : gradebookUserLessons) { Integer userId = gradebookUserLesson.getLearner().getUserId(); - + //find user ExtUserUseridMap extUser = null; for (ExtUserUseridMap extUserIter : allUsers) { @@ -923,20 +922,21 @@ break; } } - + if (extUser == null) { - throw new Exception("User with userId: " + userId + " doesn't belong to extServer: " - + serverMap.getSid()); + throw new Exception( + "User with userId: " + userId + " doesn't belong to extServer: " + serverMap.getSid()); } Element learnerElement = document.createElement("Learner"); learnerElement.setAttribute("extUsername", extUser.getExtUsername()); - String userTotalMark = gradebookUserLesson.getMark() == null ? "" : gradebookUserLesson.getMark().toString(); + String userTotalMark = gradebookUserLesson.getMark() == null ? "" + : gradebookUserLesson.getMark().toString(); learnerElement.setAttribute("userTotalMark", userTotalMark); lessonElement.appendChild(learnerElement); } - + gradebookMarksElement.appendChild(lessonElement); } @@ -962,7 +962,7 @@ @SuppressWarnings("unchecked") public Element getToolOutputs(Document document, String serverId, String datetime, String hashValue, String username, Long lessonId, String courseID, boolean isAuthoredToolOutputs, String outputsUser) - throws Exception { + throws Exception { ExtServerOrgMap serverMap = LessonManagerServlet.integrationService.getExtServerOrgMap(serverId); Authenticator.authenticate(serverMap, datetime, username, hashValue); @@ -984,8 +984,8 @@ outputsUser); if (userMap == null) { // TODO: handle this error instead of throwing an exception - LessonManagerServlet.log.debug("No user exists for: " + outputsUser - + ". Cannot get tool outputs report."); + LessonManagerServlet.log + .debug("No user exists for: " + outputsUser + ". Cannot get tool outputs report."); throw new Exception("No user exists for: " + outputsUser + ". Cannot get tool outputs report."); } learners.add(userMap.getUser()); @@ -1002,8 +1002,8 @@ toolOutputsElement.setAttribute(CentralConstants.ATTR_LESSON_ID, "" + lessonId); toolOutputsElement.setAttribute("name", lesson.getLessonName()); - List learnerProgresses = LessonManagerServlet.lessonService.getUserProgressForLesson(lesson - .getLessonId()); + List learnerProgresses = LessonManagerServlet.lessonService + .getUserProgressForLesson(lesson.getLessonId()); List toolSessions = LessonManagerServlet.toolService.getToolSessionsByLesson(lesson); // map contains pairs toolContentId -> toolOutputDefinitions @@ -1049,8 +1049,8 @@ toolSession = dbToolSession; } } - Map toolOutputDefinitions = toolOutputDefinitionsMap.get(activity - .getToolContentId()); + Map toolOutputDefinitions = toolOutputDefinitionsMap + .get(activity.getToolContentId()); learnerElement.appendChild(getActivityOutputsElement(document, activity, learner, learnerProgress, toolSession, toolOutputDefinitions, isAuthoredToolOutputs)); @@ -1079,8 +1079,8 @@ * THIS IS A HACK to retrieve the first tool activity manually so it can be cast as a ToolActivity - if it is * one */ - Activity firstActivity = LessonManagerServlet.monitoringService.getActivityById(lesson.getLearningDesign() - .getFirstActivity().getActivityId()); + Activity firstActivity = LessonManagerServlet.monitoringService + .getActivityById(lesson.getLearningDesign().getFirstActivity().getActivityId()); activities.add(firstActivity); activities.addAll(lesson.getLearningDesign().getActivities()); @@ -1160,8 +1160,8 @@ if (activityEvaluations != null) { for (ActivityEvaluation evaluation : activityEvaluations) { if (outputName.equals(evaluation.getToolOutputDefinition())) { - ToolOutput toolOutput = LessonManagerServlet.toolService.getOutputFromTool( - outputName, toolSession, learner.getUserId()); + ToolOutput toolOutput = LessonManagerServlet.toolService + .getOutputFromTool(outputName, toolSession, learner.getUserId()); activityElement.appendChild(getOutputElement(document, toolOutput, definition)); } } Index: lams_central/web/addLesson.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/addLesson.jsp,v diff -u -r1.16.2.6 -r1.16.2.7 --- lams_central/web/addLesson.jsp 9 Feb 2016 18:52:57 -0000 1.16.2.6 +++ lams_central/web/addLesson.jsp 24 Feb 2016 12:35:44 -0000 1.16.2.7 @@ -193,7 +193,6 @@


-



Index: lams_central/web/WEB-INF/tlds/lams/lams.tld =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/WEB-INF/tlds/lams/lams.tld,v diff -u -r1.3.2.2 -r1.3.2.3 --- lams_central/web/WEB-INF/tlds/lams/lams.tld 12 Jan 2016 12:20:30 -0000 1.3.2.2 +++ lams_central/web/WEB-INF/tlds/lams/lams.tld 24 Feb 2016 12:35:44 -0000 1.3.2.3 @@ -178,17 +178,9 @@ css org.lamsfoundation.lams.web.tag.CssTag empty - + Output stylesheet based on the user preferences. - localLinkPath - false - - true - - - - Output stylesheet based on the user preferences. style false Index: lams_central/web/comments/comments.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/comments/comments.jsp,v diff -u -r1.6.2.5 -r1.6.2.6 --- lams_central/web/comments/comments.jsp 23 Feb 2016 14:23:03 -0000 1.6.2.5 +++ lams_central/web/comments/comments.jsp 24 Feb 2016 12:35:44 -0000 1.6.2.6 @@ -1,4 +1,5 @@ + <%@ taglib uri="tags-lams" prefix="lams"%> <%@ taglib uri="tags-core" prefix="c"%> <%@ taglib uri="tags-html" prefix="html"%> @@ -17,23 +18,15 @@ - - - - - - - - + - - + + - <%-- if localFiles == true then wanted for export portfolio and must run offline --%> - - - - - - - - - - - - - Index: lams_learning/web/layout/layout.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_learning/web/layout/layout.jsp,v diff -u -r1.18 -r1.18.12.1 --- lams_learning/web/layout/layout.jsp 2 May 2008 00:45:55 -0000 1.18 +++ lams_learning/web/layout/layout.jsp 24 Feb 2016 12:35:27 -0000 1.18.12.1 @@ -37,22 +37,14 @@ <fmt:message key="${pageTitleKey}" /> - <%-- if localFiles == true then wanted for export portfolio and must run offline --%> - - - - - - - - - - - - - + + + + + + Index: lams_learning/web/layout/mobileLayout.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_learning/web/layout/mobileLayout.jsp,v diff -u -r1.2.2.1 -r1.2.2.2 --- lams_learning/web/layout/mobileLayout.jsp 9 Feb 2016 18:53:04 -0000 1.2.2.1 +++ lams_learning/web/layout/mobileLayout.jsp 24 Feb 2016 12:35:27 -0000 1.2.2.2 @@ -36,24 +36,17 @@ <fmt:message key="${pageTitleKey}" /> - <%-- if localFiles == true then wanted for export portfolio and must run offline --%> - - - - - - - - - - - - - - - - - + + + + + + + + + + + Index: lams_learning/web/mobile/main.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_learning/web/mobile/main.jsp,v diff -u -r1.1.2.4 -r1.1.2.5 --- lams_learning/web/mobile/main.jsp 9 Feb 2016 18:53:04 -0000 1.1.2.4 +++ lams_learning/web/mobile/main.jsp 24 Feb 2016 12:35:27 -0000 1.1.2.5 @@ -41,7 +41,6 @@       learner.do?method=displayProgress&lessonID=&keepThis=true&TB_iframe=true&height=300&width=400" title=" - " class="thickbox">    '"/>    - exportWaitingPage.jsp?mode=learner&lessonID=&hideClose=true&keepThis=true&TB_iframe=true&height=300&width=400" title="" class="thickbox">    notebook.do?method=viewAll&lessonID=')">    Index: lams_monitoring/conf/language/lams/ApplicationResources.properties =================================================================== RCS file: /usr/local/cvsroot/lams_monitoring/conf/language/lams/ApplicationResources.properties,v diff -u -r1.66.2.9 -r1.66.2.10 --- lams_monitoring/conf/language/lams/ApplicationResources.properties 11 Nov 2015 17:16:47 -0000 1.66.2.9 +++ lams_monitoring/conf/language/lams/ApplicationResources.properties 24 Feb 2016 12:35:15 -0000 1.66.2.10 @@ -52,11 +52,7 @@ force.complete.stop.message.completed.to.activity =Move to activity successful. force.complete.stop.message.completed.to.end =Move to activity successful to end of the lesson. force.complete.stop.message.stopped.unexpectedly =Move to activity has finished processing. Please check the learner's progress bar for their current activity. -export.portfolio.window.title =Export Portfolio -export.portfolio.generating.message =Generating portfolio - please wait. -export.portfolio.generation.complete.message =Your portfolio might take a while to generate. Once it's ready, your browser will begin downloading the file. -audit.lesson.created =Lesson "{0}" created with learning design "{1}", export portfolio for learner set to {2}. -audit.learner.portfolio.set =Lesson "{0}" has the export portfolio for learner set to {1}. +audit.lesson.created =Lesson "{0}" created with learning design "{1}". label.branching.general.instructions =Place the lesson participants in their branches. Initially you can add and remove learners, but once a participant starts one of the branches then you will not be able to remove learners from any branches. If you try to remove someone from a branch and they will not remove then check their progress - if they start using the branch while you are on this screen you will not get any errors but you will not be able to remove them from the branch. You will still be able to add learners to branches. label.branching.branch.heading =Branch label.branching.non.allocated.users.heading =Learners without a Branch @@ -118,7 +114,6 @@ al.validation.msg2 =Title is a required field. summery.desc.lbl =Description: summery.learners.lbl =Learners: -wizard.learner.expp.cb.lbl =Enable export portfolio for learner al.validation.msg1 =A valid sequence must be selected. finish.btn =Start in Monitor al.validation.schtime =Please select a future date and time for scheduling. @@ -223,7 +218,6 @@ button.schedule.tooltip =Schedule lesson to start in a future time button.start.now =Start Now button.start.now.tooltip =Start the lesson immediately -lesson.enable.portfolio =Enable export portfolio for learner lesson.enable.presence =Allow learners to see who is online lesson.enable.presence.alert =Now learners can see who is online lesson.disable.presence.alert =Now learners can not see who is online @@ -257,7 +251,6 @@ label.learner.progress.activity.attempted.tooltip =The learner has attempted but not yet finished this activity label.learner.progress.activity.tostart.tooltip =The learner has to complete the activities before this activity to access it label.learner.progress.activity.support.tooltip =Double click to open this support activity -button.export.learner.tooltip =Export this learner portfolio and save it on your computer for future reference button.timechart =View Time Chart button.timechart.tooltip =View a chart of the selected learner progress against time for each activity learners.page =Page @@ -291,8 +284,6 @@ button.help.tooltip =Open help page button.refresh =Refresh button.refresh.tooltip =Reload the latest progress data -button.export =Export Portfolio -button.export.tooltip =Export the class portfolio and save it on your computer for future reference lesson.presence =online learners sequence.help.info =Double click on an activity for more details lesson.learner.url =Learner URL: Index: lams_monitoring/conf/xdoclet/struts-forms.xml =================================================================== RCS file: /usr/local/cvsroot/lams_monitoring/conf/xdoclet/struts-forms.xml,v diff -u -r1.7 -r1.7.2.1 --- lams_monitoring/conf/xdoclet/struts-forms.xml 8 Apr 2014 11:33:20 -0000 1.7 +++ lams_monitoring/conf/xdoclet/struts-forms.xml 24 Feb 2016 12:35:15 -0000 1.7.2.1 @@ -6,8 +6,6 @@ - - Index: lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/monitoringApplicationContext.xml =================================================================== RCS file: /usr/local/cvsroot/lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/monitoringApplicationContext.xml,v diff -u -r1.36.2.9 -r1.36.2.10 --- lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/monitoringApplicationContext.xml 10 Aug 2015 15:24:11 -0000 1.36.2.9 +++ lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/monitoringApplicationContext.xml 24 Feb 2016 12:35:15 -0000 1.36.2.10 @@ -73,7 +73,6 @@ PROPAGATION_REQUIRED PROPAGATION_REQUIRED PROPAGATION_REQUIRED - PROPAGATION_REQUIRED PROPAGATION_REQUIRED PROPAGATION_REQUIRED,readOnly Index: lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/service/IMonitoringService.java =================================================================== RCS file: /usr/local/cvsroot/lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/service/IMonitoringService.java,v diff -u -r1.110.2.9 -r1.110.2.10 --- lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/service/IMonitoringService.java 12 Jan 2016 09:36:10 -0000 1.110.2.9 +++ lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/service/IMonitoringService.java 24 Feb 2016 12:35:15 -0000 1.110.2.10 @@ -60,10 +60,9 @@ * Intialise lesson without creating Learning Design copy, i.e. the original LD will be used. */ Lesson initializeLessonWithoutLDcopy(String lessonName, String lessonDescription, long learningDesignID, User user, - String customCSV, Boolean enableLessonIntro, Boolean displayDesignImage, Boolean learnerExportAvailable, - Boolean learnerPresenceAvailable, Boolean learnerImAvailable, Boolean liveEditEnabled, - Boolean enableLessonNotifications, Boolean learnerRestart, Integer scheduledNumberDaysToLessonFinish, - Lesson precedingLesson); + String customCSV, Boolean enableLessonIntro, Boolean displayDesignImage, Boolean learnerPresenceAvailable, + Boolean learnerImAvailable, Boolean liveEditEnabled, Boolean enableLessonNotifications, + Boolean learnerRestart, Integer scheduledNumberDaysToLessonFinish, Lesson precedingLesson); /** *

@@ -99,8 +98,6 @@ * display an intro page to the lesson * @param displayDesignImage * display the design image or not - * @param learnerExportAvailable - * should the export portfolio option be made available to the learner? * @param enableNotifications * enable "email notifications" link for the current lesson * @param numberDaysToLessonFinish @@ -110,9 +107,9 @@ */ Lesson initializeLesson(String lessonName, String lessonDescription, long learningDesignId, Integer organisationId, Integer userID, String customCSV, Boolean enableLessonIntro, Boolean displayDesignImage, - Boolean learnerExportAvailable, Boolean learnerPresenceAvailable, Boolean learnerImAvailable, - Boolean liveEditEnabled, Boolean enableNotifications, Boolean learnerRestart, - Integer numberDaysToLessonFinish, Long precedingLessonId); + Boolean learnerPresenceAvailable, Boolean learnerImAvailable, Boolean liveEditEnabled, + Boolean enableNotifications, Boolean learnerRestart, Integer numberDaysToLessonFinish, + Long precedingLessonId); /** * Initialize a new lesson so as to start the learning process for a normal or preview learning session. It needs to @@ -231,8 +228,8 @@ /** * Finish a lesson.A Finished lesson can be viewed on the monitoring interface. It should be an "inactive" lesson. A - * Finished lesson is listed on the learner interface but all the learner can do is view the progress bar and do an - * export portfolio - they cannot access any of the tool screens. + * Finished lesson is listed on the learner interface but all the learner can do is view the progress - they cannot + * access any of the tool screens. * * @param lessonId * @param userId @@ -243,32 +240,20 @@ void finishLesson(long lessonId, Integer userId) throws UserAccessDeniedException; /** - * Set whether or not the export portfolio button is available in learner. Sets it to FALSE if - * learnerExportAvailable is null. Checks that the user is a staff member of this lesson before updating. + * Set whether or not the learner presence button is available in monitor. Checks that the user is a staff member of + * this lesson before updating. * * @param lessonId * @param userId - * @param learnerExportAvailable - * @return new value for learnerExportAvailable. Normally will be same as input parameter, will only be different if - * the value cannot be updated for some reason. - */ - Boolean setLearnerPortfolioAvailable(long lessonId, Integer userId, Boolean learnerExportAvailable); - - /** - * Set whether or not the learner presence button is available in monitor. Sets it to FALSE if - * learnerExportAvailable is null. Checks that the user is a staff member of this lesson before updating. - * - * @param lessonId - * @param userId * @param learnerPresenceAvailable * @return new value for learnerPresenceAvailable. Normally will be same as input parameter, will only be different * if the value cannot be updated for some reason. */ Boolean setPresenceAvailable(long lessonId, Integer userId, Boolean learnerPresenceAvailable); /** - * Set whether or not the learner IM button is available in monitor. Sets it to FALSE if learnerExportAvailable is - * null. Checks that the user is a staff member of this lesson before updating. + * Set whether or not the learner IM button is available in monitor. Checks that the user is a staff member of this + * lesson before updating. * * @param lessonId * @param userId @@ -279,8 +264,8 @@ Boolean setPresenceImAvailable(long lessonId, Integer userId, Boolean learnerPresenceImAvailable); /** - * Set whether or not the live edit is available in monitor. Sets it to FALSE if learnerExportAvailable is null. - * Checks that the user is a staff member of this lesson before updating. + * Set whether or not the live edit is available in monitor. Checks that the user is a staff member of this lesson + * before updating. * * @param lessonId * @param userId Index: lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/service/MonitoringService.java =================================================================== RCS file: /usr/local/cvsroot/lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/service/MonitoringService.java,v diff -u -r1.195.2.21 -r1.195.2.22 --- lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/service/MonitoringService.java 12 Jan 2016 09:36:10 -0000 1.195.2.21 +++ lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/service/MonitoringService.java 24 Feb 2016 12:35:15 -0000 1.195.2.22 @@ -122,9 +122,6 @@ import org.quartz.Trigger; import org.quartz.TriggerBuilder; import org.quartz.TriggerKey; -import org.springframework.beans.BeansException; -import org.springframework.context.ApplicationContext; -import org.springframework.context.ApplicationContextAware; /** *

@@ -143,17 +140,13 @@ * @since 2/02/2005 * @version 1.1 */ -public class MonitoringService implements IMonitoringService, ApplicationContextAware { +public class MonitoringService implements IMonitoringService { // --------------------------------------------------------------------- // Instance variables // --------------------------------------------------------------------- private static Logger log = Logger.getLogger(MonitoringService.class); - private static final long numMilliSecondsInADay = 24 * 60 * 60 * 1000; - - private static final String AUDIT_LEARNER_PORTFOLIO_SET = "audit.learner.portfolio.set"; - private static final String AUDIT_LESSON_CREATED_KEY = "audit.lesson.created"; private ILessonDAO lessonDAO; @@ -188,8 +181,6 @@ private Scheduler scheduler; - private ApplicationContext applicationContext; - private MessageService messageService; private AuditService auditService; @@ -338,11 +329,6 @@ this.activityDAO = activityDAO; } - @Override - public void setApplicationContext(ApplicationContext applicationContext) throws BeansException { - this.applicationContext = applicationContext; - } - /** * @param scheduler * The scheduler to set. @@ -366,9 +352,9 @@ @Override public Lesson initializeLesson(String lessonName, String lessonDescription, long learningDesignId, Integer organisationId, Integer userID, String customCSV, Boolean enableLessonIntro, - Boolean displayDesignImage, Boolean learnerExportAvailable, Boolean learnerPresenceAvailable, - Boolean learnerImAvailable, Boolean liveEditEnabled, Boolean enableLessonNotifications, - Boolean learnerRestart, Integer scheduledNumberDaysToLessonFinish, Long precedingLessonId) { + Boolean displayDesignImage, Boolean learnerPresenceAvailable, Boolean learnerImAvailable, + Boolean liveEditEnabled, Boolean enableLessonNotifications, Boolean learnerRestart, + Integer scheduledNumberDaysToLessonFinish, Long precedingLessonId) { securityService.isGroupMonitor(organisationId, userID, "intializeLesson", true); @@ -405,8 +391,8 @@ User user = userID != null ? (User) baseDAO.find(User.class, userID) : null; Lesson initializedLesson = initializeLesson(lessonName, lessonDescription, originalLearningDesign, user, runSeqFolder, LearningDesign.COPY_TYPE_LESSON, customCSV, enableLessonIntro, displayDesignImage, - learnerExportAvailable, learnerPresenceAvailable, learnerImAvailable, liveEditEnabled, - enableLessonNotifications, learnerRestart, scheduledNumberDaysToLessonFinish, precedingLesson); + learnerPresenceAvailable, learnerImAvailable, liveEditEnabled, enableLessonNotifications, + learnerRestart, scheduledNumberDaysToLessonFinish, precedingLesson); Long initializedLearningDesignId = initializedLesson.getLearningDesign().getLearningDesignId(); logEventService.logEvent(LogEvent.TYPE_TEACHER_LESSON_CREATE, userID, initializedLearningDesignId, @@ -427,35 +413,34 @@ User user = userID != null ? (User) baseDAO.find(User.class, userID) : null; return initializeLesson(lessonName, lessonDescription, originalLearningDesign, user, null, - LearningDesign.COPY_TYPE_PREVIEW, customCSV, false, false, false, learnerPresenceAvailable, - learnerImAvailable, liveEditEnabled, true, false, null, null); + LearningDesign.COPY_TYPE_PREVIEW, customCSV, false, false, learnerPresenceAvailable, learnerImAvailable, + liveEditEnabled, true, false, null, null); } @Override public Lesson initializeLessonWithoutLDcopy(String lessonName, String lessonDescription, long learningDesignID, User user, String customCSV, Boolean enableLessonIntro, Boolean displayDesignImage, - Boolean learnerExportAvailable, Boolean learnerPresenceAvailable, Boolean learnerImAvailable, - Boolean liveEditEnabled, Boolean enableLessonNotifications, Boolean learnerRestart, - Integer scheduledNumberDaysToLessonFinish, Lesson precedingLesson) { + Boolean learnerPresenceAvailable, Boolean learnerImAvailable, Boolean liveEditEnabled, + Boolean enableLessonNotifications, Boolean learnerRestart, Integer scheduledNumberDaysToLessonFinish, + Lesson precedingLesson) { LearningDesign learningDesign = authoringService.getLearningDesign(learningDesignID); if (learningDesign == null) { throw new MonitoringServiceException( "Learning design for id=" + learningDesignID + " is missing. Unable to initialize lesson."); } Lesson lesson = createNewLesson(lessonName, lessonDescription, user, learningDesign, enableLessonIntro, - displayDesignImage, learnerExportAvailable, learnerPresenceAvailable, learnerImAvailable, - liveEditEnabled, enableLessonNotifications, learnerRestart, scheduledNumberDaysToLessonFinish, - precedingLesson); + displayDesignImage, learnerPresenceAvailable, learnerImAvailable, liveEditEnabled, + enableLessonNotifications, learnerRestart, scheduledNumberDaysToLessonFinish, precedingLesson); writeAuditLog(MonitoringService.AUDIT_LESSON_CREATED_KEY, - new Object[] { lessonName, learningDesign.getTitle(), learnerExportAvailable }); + new Object[] { lessonName, learningDesign.getTitle() }); return lesson; } private Lesson initializeLesson(String lessonName, String lessonDescription, LearningDesign originalLearningDesign, User user, WorkspaceFolder workspaceFolder, int copyType, String customCSV, Boolean enableLessonIntro, - Boolean displayDesignImage, Boolean learnerExportAvailable, Boolean learnerPresenceAvailable, - Boolean learnerImAvailable, Boolean liveEditEnabled, Boolean enableLessonNotifications, - Boolean learnerRestart, Integer scheduledNumberDaysToLessonFinish, Lesson precedingLesson) { + Boolean displayDesignImage, Boolean learnerPresenceAvailable, Boolean learnerImAvailable, + Boolean liveEditEnabled, Boolean enableLessonNotifications, Boolean learnerRestart, + Integer scheduledNumberDaysToLessonFinish, Lesson precedingLesson) { // copy the current learning design LearningDesign copiedLearningDesign = authoringService.copyLearningDesign(originalLearningDesign, new Integer(copyType), user, workspaceFolder, true, null, customCSV); @@ -470,11 +455,10 @@ } Lesson lesson = createNewLesson(title, lessonDescription, user, copiedLearningDesign, enableLessonIntro, - displayDesignImage, learnerExportAvailable, learnerPresenceAvailable, learnerImAvailable, - liveEditEnabled, enableLessonNotifications, learnerRestart, scheduledNumberDaysToLessonFinish, - precedingLesson); + displayDesignImage, learnerPresenceAvailable, learnerImAvailable, liveEditEnabled, + enableLessonNotifications, learnerRestart, scheduledNumberDaysToLessonFinish, precedingLesson); writeAuditLog(MonitoringService.AUDIT_LESSON_CREATED_KEY, - new Object[] { lessonName, copiedLearningDesign.getTitle(), learnerExportAvailable }); + new Object[] { lessonName, copiedLearningDesign.getTitle() }); return lesson; } @@ -498,8 +482,6 @@ table.get("enableLessonIntro")); Boolean displayDesignImage = WDDXProcessor.convertToBoolean("displayDesignImage", table.get("displayDesignImage")); - boolean learnerExportAvailable = WDDXProcessor.convertToBoolean("learnerExportPortfolio", - table.get("learnerExportPortfolio")); boolean learnerPresenceAvailable = WDDXProcessor.convertToBoolean("enablePresence", table.get("enablePresence")); boolean learnerImAvailable = WDDXProcessor.convertToBoolean("enableIm", table.get("enableIm")); @@ -519,9 +501,9 @@ learnerPresenceAvailable, learnerImAvailable, liveEditEnabled); } else { newLesson = initializeLesson(title, desc, ldId, organisationId, creatorUserId, customCSV, - enableLessonIntro, displayDesignImage, learnerExportAvailable, learnerPresenceAvailable, - learnerImAvailable, liveEditEnabled, enableLessonNotifications, false, - scheduledNumberDaysToLessonFinish, precedingLessonId); + enableLessonIntro, displayDesignImage, learnerPresenceAvailable, learnerImAvailable, + liveEditEnabled, enableLessonNotifications, false, scheduledNumberDaysToLessonFinish, + precedingLessonId); } if (newLesson != null) { @@ -1005,22 +987,6 @@ } @Override - public Boolean setLearnerPortfolioAvailable(long lessonId, Integer userId, Boolean isLearnerExportAvailable) { - securityService.isLessonMonitor(lessonId, userId, "set learner portfolio available", true); - - isLearnerExportAvailable = (isLearnerExportAvailable != null) ? isLearnerExportAvailable : Boolean.FALSE; - Lesson lesson = lessonDAO.getLesson(new Long(lessonId)); - lesson.setLearnerExportAvailable(isLearnerExportAvailable); - lessonDAO.updateLesson(lesson); - - // audit log enabling/disabling export portfolio - writeAuditLog(MonitoringService.AUDIT_LEARNER_PORTFOLIO_SET, - new Object[] { lesson.getLessonName(), lesson.getLearnerExportAvailable() }); - - return lesson.getLearnerExportAvailable(); - } - - @Override public Boolean setPresenceAvailable(long lessonId, Integer userId, Boolean presenceAvailable) { securityService.isLessonMonitor(lessonId, userId, "set presence available", true); Lesson requestedLesson = lessonDAO.getLesson(new Long(lessonId)); @@ -1974,8 +1940,6 @@ * the description of the lesson. * @param user * user the user who want to create this lesson. - * @param learnerExportAvailable - * should the export portfolio option be made available to the learner? * @param copiedLearningDesign * the copied learning design * @param enableLessonNotifications @@ -1986,13 +1950,12 @@ */ private Lesson createNewLesson(String lessonName, String lessonDescription, User user, LearningDesign copiedLearningDesign, Boolean enableLessonIntro, Boolean displayDesignImage, - Boolean learnerExportAvailable, Boolean learnerPresenceAvailable, Boolean learnerImAvailable, - Boolean liveEditEnabled, Boolean enableLessonNotifications, Boolean learnerRestart, - Integer scheduledNumberDaysToLessonFinish, Lesson precedingLesson) { + Boolean learnerPresenceAvailable, Boolean learnerImAvailable, Boolean liveEditEnabled, + Boolean enableLessonNotifications, Boolean learnerRestart, Integer scheduledNumberDaysToLessonFinish, + Lesson precedingLesson) { Lesson newLesson = Lesson.createNewLessonWithoutClass(lessonName, lessonDescription, user, copiedLearningDesign, - enableLessonIntro, displayDesignImage, learnerExportAvailable, learnerPresenceAvailable, - learnerImAvailable, liveEditEnabled, enableLessonNotifications, learnerRestart, - scheduledNumberDaysToLessonFinish); + enableLessonIntro, displayDesignImage, learnerPresenceAvailable, learnerImAvailable, liveEditEnabled, + enableLessonNotifications, learnerRestart, scheduledNumberDaysToLessonFinish); if (precedingLesson != null) { HashSet precedingLessons = new HashSet(); precedingLessons.add(precedingLesson); @@ -2500,9 +2463,9 @@ lesson.getLessonDescription(), lesson.getLearningDesign().getLearningDesignId(), group.getOrganisationId(), userDto.getUserID(), null, lesson.isEnableLessonIntro(), lesson.isDisplayDesignImage(), - lesson.getLearnerExportAvailable(), lesson.getLearnerPresenceAvailable(), - lesson.getLearnerImAvailable(), lesson.getLiveEditEnabled(), - lesson.getEnableLessonNotifications(), lesson.getLearnerRestart(), null, null); + lesson.getLearnerPresenceAvailable(), lesson.getLearnerImAvailable(), + lesson.getLiveEditEnabled(), lesson.getEnableLessonNotifications(), + lesson.getLearnerRestart(), null, null); // save LessonClasses newLesson = this.createLessonClassForLesson(newLesson.getLessonId(), group, Index: lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/BranchingAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/BranchingAction.java,v diff -u -r1.4.2.1 -r1.4.2.2 --- lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/BranchingAction.java 23 Nov 2015 11:49:32 -0000 1.4.2.1 +++ lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/BranchingAction.java 24 Feb 2016 12:35:15 -0000 1.4.2.2 @@ -56,153 +56,135 @@ import org.lamsfoundation.lams.web.util.AttributeNames; /** -* The action servlet that provides the support for the -* -*

    -*
  • View only screen for Group Based and Tool Based branching
  • -*
  • Class export portfolio page for all branching types -*
-* -* Due to how XDoclet works, we have to have a separate subclass of BranchingAction -* for each branching type, and include the XDoclet tags in the subclasses. -* -* @author Fiona Malikoff -*/ + * The action servlet that provides the support for the + * + *
    + *
  • View only screen for Group Based and Tool Based branching
  • + *
+ * + * Due to how XDoclet works, we have to have a separate subclass of BranchingAction for each branching type, and include + * the XDoclet tags in the subclasses. + * + * @author Fiona Malikoff + */ public class BranchingAction extends LamsDispatchAction { //--------------------------------------------------------------------- - protected static final String VIEW_BRANCHES_SCREEN = "viewBranches"; - protected static final String CHOSEN_SELECTION_SCREEN = "chosenSelection"; - public static final String PARAM_BRANCHING_DTO = "branching"; - public static final String PARAM_SHOW_GROUP_NAME = "showGroupName"; - /** If localFiles = true will be written to a local file for export portfolio */ - public static final String PARAM_LOCAL_FILES= "localFiles"; - public static final String PARAM_MAY_DELETE = "mayDelete"; - public static final String PARAM_MODULE_LANGUAGE_XML = "languageXML"; - protected static final String PARAM_VIEW_MODE = "viewMode"; - - /** - * Export Portfolio Page - */ - public ActionForward exportPortfolio(ActionMapping mapping, - ActionForm form, - HttpServletRequest request, - HttpServletResponse response) throws IOException, - ServletException - { - long lessonId = WebUtil.readLongParam(request,AttributeNames.PARAM_LESSON_ID); - long activityId = WebUtil.readLongParam(request, AttributeNames.PARAM_ACTIVITY_ID); + protected static final String VIEW_BRANCHES_SCREEN = "viewBranches"; + protected static final String CHOSEN_SELECTION_SCREEN = "chosenSelection"; + public static final String PARAM_BRANCHING_DTO = "branching"; + public static final String PARAM_SHOW_GROUP_NAME = "showGroupName"; + public static final String PARAM_LOCAL_FILES = "localFiles"; + public static final String PARAM_MAY_DELETE = "mayDelete"; + public static final String PARAM_MODULE_LANGUAGE_XML = "languageXML"; + protected static final String PARAM_VIEW_MODE = "viewMode"; - IMonitoringService monitoringService = MonitoringServiceProxy.getMonitoringService(getServlet().getServletContext()); - BranchingActivity activity = (BranchingActivity) monitoringService.getActivityById(activityId, BranchingActivity.class); - return viewBranching(activity, lessonId, true, mapping, request, monitoringService); - } - /** * Display the view screen, irrespective of the branching type. */ - public ActionForward viewBranching(ActionMapping mapping, - ActionForm form, - HttpServletRequest request, - HttpServletResponse response) throws IOException, - ServletException - { - long lessonId = WebUtil.readLongParam(request,AttributeNames.PARAM_LESSON_ID); - long activityId = WebUtil.readLongParam(request, AttributeNames.PARAM_ACTIVITY_ID); + public ActionForward viewBranching(ActionMapping mapping, ActionForm form, HttpServletRequest request, + HttpServletResponse response) throws IOException, ServletException { + long lessonId = WebUtil.readLongParam(request, AttributeNames.PARAM_LESSON_ID); + long activityId = WebUtil.readLongParam(request, AttributeNames.PARAM_ACTIVITY_ID); - IMonitoringService monitoringService = MonitoringServiceProxy.getMonitoringService(getServlet().getServletContext()); - BranchingActivity activity = (BranchingActivity) monitoringService.getActivityById(activityId, BranchingActivity.class); - return viewBranching(activity, lessonId, false, mapping, request, monitoringService); + IMonitoringService monitoringService = MonitoringServiceProxy + .getMonitoringService(getServlet().getServletContext()); + BranchingActivity activity = (BranchingActivity) monitoringService.getActivityById(activityId, + BranchingActivity.class); + return viewBranching(activity, lessonId, false, mapping, request, monitoringService); } - protected ActionForward viewBranching(BranchingActivity activity, Long lessonId, boolean useLocalFiles, - ActionMapping mapping, HttpServletRequest request, IMonitoringService monitoringService) throws IOException, ServletException { + protected ActionForward viewBranching(BranchingActivity activity, Long lessonId, boolean useLocalFiles, + ActionMapping mapping, HttpServletRequest request, IMonitoringService monitoringService) + throws IOException, ServletException { - // in general the progress engine expects the activity and lesson id to be in the request, - // so follow that standard. - request.setAttribute(AttributeNames.PARAM_ACTIVITY_ID, activity.getActivityId()); - request.setAttribute(AttributeNames.PARAM_LESSON_ID, lessonId); - request.setAttribute(AttributeNames.PARAM_TITLE, activity.getTitle()); - request.setAttribute(PARAM_LOCAL_FILES, useLocalFiles); - request.setAttribute(PARAM_MODULE_LANGUAGE_XML, getLanguageXML()); - request.setAttribute(PARAM_MAY_DELETE, Boolean.FALSE); - request.setAttribute(PARAM_VIEW_MODE, Boolean.TRUE); - - // only show the group names if this is a group based branching activity - the names - // are meaningless for chosen and tool based branching - BranchingDTO dto = getBranchingDTO(activity, monitoringService); - request.setAttribute(PARAM_BRANCHING_DTO, dto); - request.setAttribute(PARAM_SHOW_GROUP_NAME, activity.isGroupBranchingActivity()); - if ( log.isDebugEnabled() ) { - log.debug("viewBranching: Branching activity "+dto); - } - return mapping.findForward(CHOSEN_SELECTION_SCREEN); + // in general the progress engine expects the activity and lesson id to be in the request, + // so follow that standard. + request.setAttribute(AttributeNames.PARAM_ACTIVITY_ID, activity.getActivityId()); + request.setAttribute(AttributeNames.PARAM_LESSON_ID, lessonId); + request.setAttribute(AttributeNames.PARAM_TITLE, activity.getTitle()); + request.setAttribute(PARAM_LOCAL_FILES, useLocalFiles); + request.setAttribute(PARAM_MODULE_LANGUAGE_XML, getLanguageXML()); + request.setAttribute(PARAM_MAY_DELETE, Boolean.FALSE); + request.setAttribute(PARAM_VIEW_MODE, Boolean.TRUE); + + // only show the group names if this is a group based branching activity - the names + // are meaningless for chosen and tool based branching + BranchingDTO dto = getBranchingDTO(activity, monitoringService); + request.setAttribute(PARAM_BRANCHING_DTO, dto); + request.setAttribute(PARAM_SHOW_GROUP_NAME, activity.isGroupBranchingActivity()); + if (log.isDebugEnabled()) { + log.debug("viewBranching: Branching activity " + dto); } - - // Can't do this in BranchingDTO (although that's where it should be) as we have - // to get the SequenceActivities via the getActivityById to get around Hibernate - // not allowing us to cast the cglib classes. - private BranchingDTO getBranchingDTO(BranchingActivity activity, IMonitoringService monitoringService) { - BranchingDTO dto = new BranchingDTO(); - - dto.setBranchActivityId(activity.getActivityId()); - dto.setBranchActivityName(activity.getTitle()); - - TreeSet branches = new TreeSet(); - Iterator iter = activity.getActivities().iterator(); - while (iter.hasNext()) { - Activity childActivity = iter.next(); - SequenceActivity branch = (SequenceActivity) monitoringService.getActivityById(childActivity.getActivityId(), SequenceActivity.class); - Set mappingEntries = branch.getBranchEntries(); - - // If it is a grouped based or teacher chosen branching, the users will be in groups. - // If not get the user based on the progress engine and create a dummy group. - // Can't use tool session as sequence activities don't have a tool session! - SortedSet groups = new TreeSet(); - if ( activity.isChosenBranchingActivity() || activity.isGroupBranchingActivity() ) { - for ( BranchActivityEntry entry : mappingEntries ) { - Group group = entry.getGroup(); - groups.add(group); - } - } else { - Group group = new Group(); - if ( group.getUsers() == null ) { - group.setUsers(new HashSet()); - } - List learners = monitoringService.getLearnersAttemptedOrCompletedActivity(branch); - group.getUsers().addAll(learners); - groups.add(group); - } - branches.add(new BranchDTO(branch, groups)); + return mapping.findForward(CHOSEN_SELECTION_SCREEN); + } + + // Can't do this in BranchingDTO (although that's where it should be) as we have + // to get the SequenceActivities via the getActivityById to get around Hibernate + // not allowing us to cast the cglib classes. + private BranchingDTO getBranchingDTO(BranchingActivity activity, IMonitoringService monitoringService) { + BranchingDTO dto = new BranchingDTO(); + + dto.setBranchActivityId(activity.getActivityId()); + dto.setBranchActivityName(activity.getTitle()); + + TreeSet branches = new TreeSet(); + Iterator iter = activity.getActivities().iterator(); + while (iter.hasNext()) { + Activity childActivity = iter.next(); + SequenceActivity branch = (SequenceActivity) monitoringService + .getActivityById(childActivity.getActivityId(), SequenceActivity.class); + Set mappingEntries = branch.getBranchEntries(); + + // If it is a grouped based or teacher chosen branching, the users will be in groups. + // If not get the user based on the progress engine and create a dummy group. + // Can't use tool session as sequence activities don't have a tool session! + SortedSet groups = new TreeSet(); + if (activity.isChosenBranchingActivity() || activity.isGroupBranchingActivity()) { + for (BranchActivityEntry entry : mappingEntries) { + Group group = entry.getGroup(); + groups.add(group); } - dto.setBranches(branches); - return dto; - } - - /** - * @return String of xml with all needed language elements - */ - protected String getLanguageXML(){ - IMonitoringService monitoringService = MonitoringServiceProxy.getMonitoringService(getServlet().getServletContext()); - MessageService messageService = monitoringService.getMessageService(); - ArrayList languageCollection = new ArrayList(); - languageCollection.add(new String("button.finished")); - languageCollection.add(new String("label.branching.non.allocated.users.heading")); - languageCollection.add(new String("label.grouping.status")); - languageCollection.add(new String("label.grouping.learners")); - languageCollection.add(new String("error.title")); - languageCollection.add(new String("label.branching.popup.drag.selection.message")); - - String languageOutput = ""; - - for(int i = 0; i < languageCollection.size(); i++){ - languageOutput += "" + messageService.getMessage(languageCollection.get(i)) + ""; + } else { + Group group = new Group(); + if (group.getUsers() == null) { + group.setUsers(new HashSet()); } - - languageOutput += ""; - - return languageOutput; + List learners = monitoringService.getLearnersAttemptedOrCompletedActivity(branch); + group.getUsers().addAll(learners); + groups.add(group); + } + branches.add(new BranchDTO(branch, groups)); } + dto.setBranches(branches); + return dto; + } - } + /** + * @return String of xml with all needed language elements + */ + protected String getLanguageXML() { + IMonitoringService monitoringService = MonitoringServiceProxy + .getMonitoringService(getServlet().getServletContext()); + MessageService messageService = monitoringService.getMessageService(); + ArrayList languageCollection = new ArrayList(); + languageCollection.add(new String("button.finished")); + languageCollection.add(new String("label.branching.non.allocated.users.heading")); + languageCollection.add(new String("label.grouping.status")); + languageCollection.add(new String("label.grouping.learners")); + languageCollection.add(new String("error.title")); + languageCollection.add(new String("label.branching.popup.drag.selection.message")); + + String languageOutput = ""; + + for (int i = 0; i < languageCollection.size(); i++) { + languageOutput += "" + + messageService.getMessage(languageCollection.get(i)) + ""; + } + + languageOutput += ""; + + return languageOutput; + } +} \ No newline at end of file Fisheye: Tag 1.3.2.1 refers to a dead (removed) revision in file `lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/BranchingExportPortfolioServlet.java'. Fisheye: No comparison available. Pass `N' to diff? Index: lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/GateAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/GateAction.java,v diff -u -r1.24.2.1 -r1.24.2.2 --- lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/GateAction.java 23 Nov 2015 11:49:32 -0000 1.24.2.1 +++ lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/GateAction.java 24 Feb 2016 12:35:15 -0000 1.24.2.2 @@ -81,9 +81,7 @@ * @struts:action-forward name="viewSynchGate" path=".viewSynchGate" * @struts:action-forward name="viewPermissionGate" path=".viewPermissionGate" * @struts:action-forward name="viewScheduleGate" path=".viewScheduleGate" - * @struts:action-forward name="viewConditionGate" path=".viewConditionGate" ----------------XDoclet - * Tags-------------------- - * + * @struts:action-forward name="viewConditionGate" path=".viewConditionGate" */ public class GateAction extends LamsDispatchAction { // --------------------------------------------------------------------- @@ -105,8 +103,6 @@ // Gate Form fields private static final String ACTIVITY_FORM_FIELD = "activityId"; private static final String TOTAL_LEARNERS_FORM_FIELD = "totalLearners"; - public static final String READ_ONLY = "readOnly"; - public static final String LOCAL_FILES = "localFiles"; private static final String USER_ID = "userId"; // --------------------------------------------------------------------- @@ -164,7 +160,6 @@ } gateForm.set(GateAction.ACTIVITY_FORM_FIELD, gateIdLong); - gateForm.set(GateAction.LOCAL_FILES, Boolean.FALSE); return findViewByGateType(mapping, gateForm, gate); } @@ -226,18 +221,6 @@ return findViewByGateType(mapping, gateForm, gate); } - /** - * Export Portfolio Page - */ - public ActionForward exportPortfolio(ActionMapping mapping, ActionForm form, HttpServletRequest request, - HttpServletResponse response) throws IOException, ServletException { - DynaActionForm gateForm = (DynaActionForm) form; - ActionForward forward = viewGate(mapping, form, request, response); - gateForm.set(GateAction.READ_ONLY, Boolean.TRUE); - gateForm.set(GateAction.LOCAL_FILES, Boolean.TRUE); - return forward; - } - // --------------------------------------------------------------------- // Helper Methods // --------------------------------------------------------------------- @@ -258,7 +241,6 @@ lessonService = MonitoringServiceProxy.getLessonService(getServlet().getServletContext()); // reset all the other fields, so that the following code only has to set up its own values (LDEV-1237) - gateForm.set(GateAction.READ_ONLY, Boolean.FALSE); gateForm.set("gate", null); gateForm.set("waitingLearnerList", null); gateForm.set("allowedToPassLearnerList", null); Fisheye: Tag 1.3.2.1 refers to a dead (removed) revision in file `lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/GateExportPortfolioServlet.java'. Fisheye: No comparison available. Pass `N' to diff? Index: lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/MonitoringAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/MonitoringAction.java,v diff -u -r1.118.2.31 -r1.118.2.32 --- lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/MonitoringAction.java 12 Jan 2016 09:36:10 -0000 1.118.2.31 +++ lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/MonitoringAction.java 24 Feb 2016 12:35:15 -0000 1.118.2.32 @@ -176,15 +176,6 @@ } } - private FlashMessage handleCriticalError(String methodKey, String messageKey) { - String message = getMonitoringService().getMessageService().getMessage(messageKey); - LamsDispatchAction.log.error("Error occured " + methodKey + " error "); - MonitoringAction.auditService = getAuditService(); - MonitoringAction.auditService.log(MonitoringAction.class.getName() + ":" + methodKey, message); - - return new FlashMessage(methodKey, message, FlashMessage.CRITICAL_ERROR); - } - private ActionForward redirectToURL(ActionMapping mapping, HttpServletResponse response, String url) throws IOException { if (url != null) { @@ -217,7 +208,6 @@ long ldId = WebUtil.readLongParam(request, AttributeNames.PARAM_LEARNINGDESIGN_ID); Integer copyType = WebUtil.readIntParam(request, "copyType", true); String customCSV = request.getParameter("customCSV"); - Boolean learnerExportAvailable = WebUtil.readBooleanParam(request, "learnerExportPortfolio", false); Boolean learnerPresenceAvailable = WebUtil.readBooleanParam(request, "learnerPresenceAvailable", false); Boolean learnerImAvailable = WebUtil.readBooleanParam(request, "learnerImAvailable", false); Boolean liveEditEnabled = WebUtil.readBooleanParam(request, "liveEditEnabled", false); @@ -230,8 +220,8 @@ } else { try { newLesson = getMonitoringService().initializeLesson(title, desc, ldId, organisationId, getUserId(), - customCSV, false, false, learnerExportAvailable, learnerPresenceAvailable, learnerImAvailable, - liveEditEnabled, false, learnerRestart, null, null); + customCSV, false, false, learnerPresenceAvailable, learnerImAvailable, liveEditEnabled, false, + learnerRestart, null, null); } catch (SecurityException e) { response.sendError(HttpServletResponse.SC_FORBIDDEN, "User is not a monitor in the organisation"); return null; @@ -321,7 +311,6 @@ boolean startMonitor = WebUtil.readBooleanParam(request, "startMonitor", false); boolean enableLiveEdit = WebUtil.readBooleanParam(request, "liveEditEnable", false); boolean notificationsEnable = WebUtil.readBooleanParam(request, "notificationsEnable", false); - boolean portfolioEnable = WebUtil.readBooleanParam(request, "portfolioEnable", false); boolean presenceEnable = WebUtil.readBooleanParam(request, "presenceEnable", false); boolean imEnable = WebUtil.readBooleanParam(request, "imEnable", false); Integer splitNumberLessons = WebUtil.readIntParam(request, "splitNumberLessons", true); @@ -389,9 +378,8 @@ Lesson lesson = null; try { lesson = getMonitoringService().initializeLesson(lessonInstanceName, introDescription, ldId, - organisationId, userId, null, introEnable, introImage, portfolioEnable, presenceEnable, - imEnable, enableLiveEdit, notificationsEnable, learnerRestart, timeLimitIndividual, - precedingLessonId); + organisationId, userId, null, introEnable, introImage, presenceEnable, imEnable, enableLiveEdit, + notificationsEnable, learnerRestart, timeLimitIndividual, precedingLessonId); getMonitoringService().createLessonClassForLesson(lesson.getLessonId(), organisation, learnerGroupInstanceName, lessonInstanceLearners, staffGroupInstanceName, staff, userId); @@ -1042,7 +1030,6 @@ lessonDTO.getOrganisationID()); request.setAttribute("notificationsAvailable", organisation.getEnableCourseNotifications()); request.setAttribute("enableLiveEdit", organisation.getEnableLiveEdit()); - request.setAttribute("enableExportPortfolio", organisation.getEnableExportPortfolio()); request.setAttribute("lesson", lessonDTO); return mapping.findForward("monitorLesson"); @@ -1536,20 +1523,6 @@ return MonitoringAction.auditService; } - /** - * Get TimezoneService bean. - * - * @return - */ - private ITimezoneService getTimezoneService() { - if (MonitoringAction.timezoneService == null) { - WebApplicationContext ctx = WebApplicationContextUtils - .getRequiredWebApplicationContext(getServlet().getServletContext()); - MonitoringAction.timezoneService = (ITimezoneService) ctx.getBean("timezoneService"); - } - return MonitoringAction.timezoneService; - } - private ILessonService getLessonService() { if (MonitoringAction.lessonService == null) { WebApplicationContext ctx = WebApplicationContextUtils @@ -1587,23 +1560,6 @@ } /** - * Set whether or not the export portfolio button is available in learner. Expects parameters lessonID and - * learnerExportPortfolio. - */ - public ActionForward learnerExportPortfolioAvailable(ActionMapping mapping, ActionForm form, - HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { - Long lessonID = new Long(WebUtil.readLongParam(request, "lessonID")); - Integer userID = getUserId(); - Boolean learnerExportPortfolioAvailable = WebUtil.readBooleanParam(request, "learnerExportPortfolio", false); - try { - getMonitoringService().setLearnerPortfolioAvailable(lessonID, userID, learnerExportPortfolioAvailable); - } catch (SecurityException e) { - response.sendError(HttpServletResponse.SC_FORBIDDEN, "User is not a monitor in the lesson"); - } - return null; - } - - /** * Set whether or not the presence available button is available in learner. Expects parameters lessonID and * presenceAvailable. */ @@ -1674,8 +1630,6 @@ * Creates a list of users out of string with comma-delimited user IDs. */ private List parseUserList(HttpServletRequest request, String paramName, Collection users) { - IUserManagementService userManagementService = MonitoringServiceProxy - .getUserManagementService(getServlet().getServletContext()); String userIdList = request.getParameter(paramName); String[] userIdArray = userIdList.split(","); List result = new ArrayList(userIdArray.length); Index: lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/SequenceAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/SequenceAction.java,v diff -u -r1.2.12.1 -r1.2.12.2 --- lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/SequenceAction.java 23 Nov 2015 11:49:32 -0000 1.2.12.1 +++ lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/SequenceAction.java 24 Feb 2016 12:35:15 -0000 1.2.12.2 @@ -34,7 +34,6 @@ import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; -import org.lamsfoundation.lams.learningdesign.BranchingActivity; import org.lamsfoundation.lams.learningdesign.SequenceActivity; import org.lamsfoundation.lams.monitoring.service.IMonitoringService; import org.lamsfoundation.lams.monitoring.service.MonitoringServiceProxy; @@ -44,72 +43,51 @@ import org.lamsfoundation.lams.web.util.AttributeNames; /** -* The action servlet that provides the support for the Sequence activities. At present, this is -* only a basic view screen that lists the user's in the sequence. -* -* @struts:action path="/sequence" -* parameter="method" -* validate="false" -* @struts.action-forward name = "viewSequence" path = ".viewSequence" -* -* @author Fiona Malikoff -*/ + * The action servlet that provides the support for the Sequence activities. At present, this is only a basic view + * screen that lists the user's in the sequence. + * + * @struts:action path="/sequence" parameter="method" validate="false" + * @struts.action-forward name = "viewSequence" path = ".viewSequence" + * + * @author Fiona Malikoff + */ public class SequenceAction extends LamsDispatchAction { - public static final String VIEW_SEQUENCE = "viewSequence"; - public static final String PARAM_LEARNERS = "learners"; - /** If localFiles = true will be written to a local file for export portfolio */ - public static final String PARAM_LOCAL_FILES= "localFiles"; - - /** - * Export Portfolio Page - */ - public ActionForward exportPortfolio(ActionMapping mapping, - ActionForm form, - HttpServletRequest request, - HttpServletResponse response) throws IOException, - ServletException - { - long lessonId = WebUtil.readLongParam(request,AttributeNames.PARAM_LESSON_ID); - long activityId = WebUtil.readLongParam(request, AttributeNames.PARAM_ACTIVITY_ID); + public static final String VIEW_SEQUENCE = "viewSequence"; + public static final String PARAM_LEARNERS = "learners"; + public static final String PARAM_LOCAL_FILES = "localFiles"; - IMonitoringService monitoringService = MonitoringServiceProxy.getMonitoringService(getServlet().getServletContext()); - SequenceActivity activity = (SequenceActivity) monitoringService.getActivityById(activityId, SequenceActivity.class); - return viewSequence(activity, lessonId, true, mapping, request, monitoringService); - } - /** - * Display the view screen - to be used if we ever want direct access to the screen rather than export portfolio version. + * Display the view screen. */ - public ActionForward viewSequence(ActionMapping mapping, - ActionForm form, - HttpServletRequest request, - HttpServletResponse response) throws IOException, - ServletException - { - long lessonId = WebUtil.readLongParam(request,AttributeNames.PARAM_LESSON_ID); - long activityId = WebUtil.readLongParam(request, AttributeNames.PARAM_ACTIVITY_ID); + public ActionForward viewSequence(ActionMapping mapping, ActionForm form, HttpServletRequest request, + HttpServletResponse response) throws IOException, ServletException { + long lessonId = WebUtil.readLongParam(request, AttributeNames.PARAM_LESSON_ID); + long activityId = WebUtil.readLongParam(request, AttributeNames.PARAM_ACTIVITY_ID); - IMonitoringService monitoringService = MonitoringServiceProxy.getMonitoringService(getServlet().getServletContext()); - SequenceActivity activity = (SequenceActivity) monitoringService.getActivityById(activityId, SequenceActivity.class); - return viewSequence(activity, lessonId, false, mapping, request, monitoringService); + IMonitoringService monitoringService = MonitoringServiceProxy + .getMonitoringService(getServlet().getServletContext()); + SequenceActivity activity = (SequenceActivity) monitoringService.getActivityById(activityId, + SequenceActivity.class); + return viewSequence(activity, lessonId, false, mapping, request, monitoringService); } - protected ActionForward viewSequence(SequenceActivity activity, Long lessonId, boolean useLocalFiles, - ActionMapping mapping, HttpServletRequest request, IMonitoringService monitoringService) throws IOException, ServletException { + protected ActionForward viewSequence(SequenceActivity activity, Long lessonId, boolean useLocalFiles, + ActionMapping mapping, HttpServletRequest request, IMonitoringService monitoringService) + throws IOException, ServletException { - // in general the progress engine expects the activity and lesson id to be in the request, - // so follow that standard. - request.setAttribute(AttributeNames.PARAM_ACTIVITY_ID, activity.getActivityId()); - request.setAttribute(AttributeNames.PARAM_LESSON_ID, lessonId); - request.setAttribute(AttributeNames.PARAM_TITLE, activity.getTitle()); - request.setAttribute(PARAM_LOCAL_FILES, useLocalFiles); - - // only show the group names if this is a group based branching activity - the names - // are meaningless for chosen and tool based branching - List learners = monitoringService.getLearnersAttemptedOrCompletedActivity(activity); - request.setAttribute(PARAM_LEARNERS, learners); - return mapping.findForward(VIEW_SEQUENCE); - } + // in general the progress engine expects the activity and lesson id to be in the request, + // so follow that standard. + request.setAttribute(AttributeNames.PARAM_ACTIVITY_ID, activity.getActivityId()); + request.setAttribute(AttributeNames.PARAM_LESSON_ID, lessonId); + request.setAttribute(AttributeNames.PARAM_TITLE, activity.getTitle()); + request.setAttribute(SequenceAction.PARAM_LOCAL_FILES, useLocalFiles); - } + // only show the group names if this is a group based branching activity - the names + // are meaningless for chosen and tool based branching + List learners = monitoringService.getLearnersAttemptedOrCompletedActivity(activity); + request.setAttribute(SequenceAction.PARAM_LEARNERS, learners); + return mapping.findForward(SequenceAction.VIEW_SEQUENCE); + } + +} Fisheye: Tag 1.2.2.1 refers to a dead (removed) revision in file `lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/SequenceExportPortfolioServlet.java'. Fisheye: No comparison available. Pass `N' to diff? Index: lams_monitoring/web/monitor.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_monitoring/web/monitor.jsp,v diff -u -r1.27.2.20 -r1.27.2.21 --- lams_monitoring/web/monitor.jsp 9 Feb 2016 18:53:13 -0000 1.27.2.20 +++ lams_monitoring/web/monitor.jsp 24 Feb 2016 12:35:15 -0000 1.27.2.21 @@ -40,7 +40,6 @@ hasContentFrame = false, presenceEnabled = false, hasDialog = false, - enableExportPortfolio = ${enableExportPortfolio}, sequenceTabShowInfo = ${sequenceTabShowInfo eq true}, LAMS_URL = '', @@ -137,10 +136,6 @@ SUPPORT_ACTIVITY : '', PROGRESS_NOT_STARTED : '', - - EXPORT_PORTFOLIO : '', - - EXPORT_PORTFOLIO_LEARNER_TOOLTIP : '', TIME_CHART : '', @@ -340,16 +335,6 @@ - - - checked="checked" - - /> - -
- - checked="checked" @@ -420,13 +405,6 @@ href="#" onClick="javascript:refreshMonitor('sequence')"> - - - - - org.lamsfoundation.lams.monitoring.web.InitializeLessonServlet - - gateExportPortfolio - org.lamsfoundation.lams.monitoring.web.GateExportPortfolioServlet - - sequenceExportPortfolio - org.lamsfoundation.lams.monitoring.web.SequenceExportPortfolioServlet - - - - branchingExportPortfolio - org.lamsfoundation.lams.monitoring.web.BranchingExportPortfolioServlet - - - - action org.apache.struts.action.ActionServlet @@ -135,19 +120,7 @@ initializeLesson /initializeLesson - - gateExportPortfolio - /gateExportPortfolio - - - sequenceExportPortfolio - /sequenceExportPortfolio - - - branchingExportPortfolio - /branchingExportPortfolio - - + 500 /error.jsp Index: lams_monitoring/web/WEB-INF/tlds/lams/lams.tld =================================================================== RCS file: /usr/local/cvsroot/lams_monitoring/web/WEB-INF/tlds/lams/lams.tld,v diff -u -r1.3.2.1 -r1.3.2.2 --- lams_monitoring/web/WEB-INF/tlds/lams/lams.tld 4 Aug 2014 14:00:14 -0000 1.3.2.1 +++ lams_monitoring/web/WEB-INF/tlds/lams/lams.tld 24 Feb 2016 12:35:15 -0000 1.3.2.2 @@ -181,14 +181,6 @@ Output stylesheet based on the user preferences. - localLinkPath - false - - true - - - - Output stylesheet based on the user preferences. style false Index: lams_monitoring/web/gate/conditionGateContent.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_monitoring/web/gate/conditionGateContent.jsp,v diff -u -r1.3 -r1.3.2.1 --- lams_monitoring/web/gate/conditionGateContent.jsp 6 Apr 2014 20:23:50 -0000 1.3 +++ lams_monitoring/web/gate/conditionGateContent.jsp 24 Feb 2016 12:35:15 -0000 1.3.2.1 @@ -40,17 +40,15 @@

<%@ include file="gateInfo.jsp" %> - +


<%@ include file="gateStatus.jsp" %>
- -

-
+

@@ -61,22 +59,14 @@ - - - - - - - + + + + +
- - @@ -90,19 +80,17 @@
- " onclick="document.pressed='forbidden'"/> - - " onclick="document.pressed='waiting'"/> - -   -
+ " onclick="document.pressed='forbidden'"/> + + " onclick="document.pressed='waiting'"/> + +   +
Index: lams_monitoring/web/gate/gateInfo.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_monitoring/web/gate/gateInfo.jsp,v diff -u -r1.9.2.2 -r1.9.2.3 --- lams_monitoring/web/gate/gateInfo.jsp 23 Nov 2015 11:49:32 -0000 1.9.2.2 +++ lams_monitoring/web/gate/gateInfo.jsp 24 Feb 2016 12:35:15 -0000 1.9.2.3 @@ -18,30 +18,20 @@ http://www.gnu.org/licenses/gpl.txt --%> -<%@ taglib uri="tags-lams" prefix="lams" %> +<%@ taglib uri="tags-lams" prefix="lams"%> - -

+ +

+ +

- + -

- - - +

+ + + -

- - - <%-- set to read only if in export portfolio --%> - - - - -

-
-
-
- +

\ No newline at end of file Index: lams_monitoring/web/gate/permissionGateContent.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_monitoring/web/gate/permissionGateContent.jsp,v diff -u -r1.16.2.1 -r1.16.2.2 --- lams_monitoring/web/gate/permissionGateContent.jsp 23 Nov 2015 11:49:32 -0000 1.16.2.1 +++ lams_monitoring/web/gate/permissionGateContent.jsp 24 Feb 2016 12:35:15 -0000 1.16.2.2 @@ -43,16 +43,14 @@ <%@ include file="gateInfo.jsp" %> - +

<%@ include file="gateStatus.jsp" %>
- -

-
+

@@ -64,22 +62,14 @@ - - @@ -93,19 +83,17 @@ - - - - " onclick="document.pressed='forbidden'"/> - - - " onclick="document.pressed='waiting'"/> - - -   - - - + + + " onclick="document.pressed='forbidden'"/> + + + " onclick="document.pressed='waiting'"/> + + +   + +
Index: lams_monitoring/web/includes/javascript/monitorLesson.js =================================================================== RCS file: /usr/local/cvsroot/lams_monitoring/web/includes/javascript/monitorLesson.js,v diff -u -r1.44.2.25 -r1.44.2.26 --- lams_monitoring/web/includes/javascript/monitorLesson.js 1 Dec 2015 11:14:30 -0000 1.44.2.25 +++ lams_monitoring/web/includes/javascript/monitorLesson.js 24 Feb 2016 12:35:15 -0000 1.44.2.26 @@ -108,21 +108,6 @@ * Sets up lesson tab. */ function initLessonTab(){ - // sets export portfolio availability - $('#exportAvailableField').change(function(){ - var checked = $(this).is(':checked'); - $.ajax({ - dataType : 'xml', - url : LAMS_URL + 'monitoring/monitoring.do', - cache : false, - data : { - 'method' : 'learnerExportPortfolioAvailable', - 'learnerExportPortfolio' : checked, - 'lessonID' : lessonId - } - }); - }); - // sets presence availability $('#presenceAvailableField').change(function(){ var checked = $(this).is(':checked'); @@ -1733,16 +1718,6 @@ // fill the placeholder, after all required variables were initialised learnerProgressCellsTemplate = '
;11;
'; - - if (enableExportPortfolio) { - learnerProgressCellsTemplate += - '
' - + LABELS.EXPORT_PORTFOLIO - + ''; - } learnerProgressCellsTemplate += '' Index: lams_monitoring/web/template/template.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_monitoring/web/template/template.jsp,v diff -u -r1.17 -r1.17.12.1 --- lams_monitoring/web/template/template.jsp 17 Jul 2007 01:27:37 -0000 1.17 +++ lams_monitoring/web/template/template.jsp 24 Feb 2016 12:35:15 -0000 1.17.12.1 @@ -30,21 +30,8 @@ "http://www.w3.org/TR/html4/loose.dtd"> - - <%-- if localFiles == true then wanted for export portfolio and must run offline. Gates put the value in the form, branching in the request --%> - - - - - - - - - - - - - + + Index: lams_tool_assessment/conf/language/lams/ApplicationResources.properties =================================================================== RCS file: /usr/local/cvsroot/lams_tool_assessment/conf/language/lams/ApplicationResources.properties,v diff -u -r1.34.2.2 -r1.34.2.3 --- lams_tool_assessment/conf/language/lams/ApplicationResources.properties 10 Nov 2015 15:00:53 -0000 1.34.2.2 +++ lams_tool_assessment/conf/language/lams/ApplicationResources.properties 24 Feb 2016 12:35:16 -0000 1.34.2.3 @@ -181,14 +181,11 @@ label.monitoring.question.summary.average.mark =Average mark label.monitoring.question.summary.group =Group: label.monitoring.question.summary.ok =Ok -label.export.portfolio.activity.summary =Activity Summary -label.export.portfolio.question.summaries =Question summaries message.monitoring.edit.activity.not.editable =This Activity is no longer editable. output.desc.learner.total.score =User's total score output.desc.learner.time.taken =Time taken output.desc.learner.number.of.attempts =Number of attempts made by user output.user.score.for.question =User's score for the question: -export.title =Export portfolio of Assessment tool error.form.validation.error =You have 1 error in a form. It has been highlighted error.form.validation.errors =You have {0} errors in a form. They have been highlighted error.form.validation.hundred.score =One of the answers should have a grade of 100% so it is possible to get full marks for this question. Index: lams_tool_assessment/db/sql/tool_insert.sql =================================================================== RCS file: /usr/local/cvsroot/lams_tool_assessment/db/sql/tool_insert.sql,v diff -u -r1.5 -r1.5.2.1 --- lams_tool_assessment/db/sql/tool_insert.sql 5 May 2014 11:14:21 -0000 1.5 +++ lams_tool_assessment/db/sql/tool_insert.sql 24 Feb 2016 12:35:16 -0000 1.5.2.1 @@ -21,8 +21,6 @@ author_url, monitor_url, define_later_url, -export_pfolio_learner_url, -export_pfolio_class_url, help_url, language_file, create_date_time, @@ -48,8 +46,6 @@ 'tool/laasse10/authoring/start.do', 'tool/laasse10/monitoring/summary.do', 'tool/laasse10/definelater.do', -'tool/laasse10/exportPortfolio?mode=learner', -'tool/laasse10/exportPortfolio?mode=teacher', 'http://wiki.lamsfoundation.org/display/lamsdocs/laasse10', 'org.lamsfoundation.lams.tool.assessment.ApplicationResources', NOW(), Fisheye: Tag 1.8.2.1 refers to a dead (removed) revision in file `lams_tool_assessment/src/java/org/lamsfoundation/lams/tool/assessment/util/AssessmentBundler.java'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.10.2.2 refers to a dead (removed) revision in file `lams_tool_assessment/src/java/org/lamsfoundation/lams/tool/assessment/web/servlet/ExportServlet.java'. Fisheye: No comparison available. Pass `N' to diff? Index: lams_tool_assessment/web/WEB-INF/web.xml =================================================================== RCS file: /usr/local/cvsroot/lams_tool_assessment/web/WEB-INF/web.xml,v diff -u -r1.10.2.7 -r1.10.2.8 --- lams_tool_assessment/web/WEB-INF/web.xml 25 Nov 2014 09:37:35 -0000 1.10.2.7 +++ lams_tool_assessment/web/WEB-INF/web.xml 24 Feb 2016 12:35:17 -0000 1.10.2.8 @@ -71,16 +71,9 @@ LocaleFilter /* + - - - exportPortfolio - org.lamsfoundation.lams.tool.assessment.web.servlet.ExportServlet - - - populateMarks org.lamsfoundation.lams.tool.assessment.web.servlet.PopulateMarksServlet @@ -150,11 +143,6 @@ - exportPortfolio - /exportPortfolio - - - populateMarks /populateMarks Index: lams_tool_assessment/web/WEB-INF/tlds/lams/lams.tld =================================================================== RCS file: /usr/local/cvsroot/lams_tool_assessment/web/WEB-INF/tlds/lams/lams.tld,v diff -u -r1.7.2.1 -r1.7.2.2 --- lams_tool_assessment/web/WEB-INF/tlds/lams/lams.tld 4 Aug 2014 14:00:12 -0000 1.7.2.1 +++ lams_tool_assessment/web/WEB-INF/tlds/lams/lams.tld 24 Feb 2016 12:35:16 -0000 1.7.2.2 @@ -181,14 +181,6 @@ Output stylesheet based on the user preferences. - localLinkPath - false - - true - - - - Output stylesheet based on the user preferences. style false Fisheye: Tag 1.2.8.1 refers to a dead (removed) revision in file `lams_tool_assessment/web/pages/export/exportportfolio.jsp'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.9.2.2 refers to a dead (removed) revision in file `lams_tool_assessment/web/pages/export/parts/exportlearner.jsp'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.11.2.2 refers to a dead (removed) revision in file `lams_tool_assessment/web/pages/export/parts/exportteacher.jsp'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.4.2.1 refers to a dead (removed) revision in file `lams_tool_assessment/web/pages/export/parts/userresponse.jsp'. Fisheye: No comparison available. Pass `N' to diff? Index: lams_tool_bbb/conf/language/lams/ApplicationResources.properties =================================================================== RCS file: /usr/local/cvsroot/lams_tool_bbb/conf/language/lams/ApplicationResources.properties,v diff -u -r1.8 -r1.8.2.1 --- lams_tool_bbb/conf/language/lams/ApplicationResources.properties 26 Feb 2014 18:51:04 -0000 1.8 +++ lams_tool_bbb/conf/language/lams/ApplicationResources.properties 24 Feb 2016 12:35:24 -0000 1.8.2.1 @@ -66,7 +66,6 @@ config.securitySalt.notice =Note that "Security Salt" is required. This Security Salt is a keyword that is used to ensure that web conference rooms can only be created from this website. config.securitySalt.notice2 =IMPORTANT: DO NOT ALLOW END USERS TO KNOW YOUR SECURITY SALT OR ELSE YOUR SECURITY WILL BE COMPROMISED. See BigBlueButton website for details config.securitySalt =Security Salt -export.toolExportNotSupported =This tool does not support export portfolio. message.unableToStartLesson =Unable to join meeting. Please see your instructor. button.submit =Finish Index: lams_tool_bbb/db/sql/tool_insert.sql =================================================================== RCS file: /usr/local/cvsroot/lams_tool_bbb/db/sql/tool_insert.sql,v diff -u -r1.2 -r1.2.2.1 --- lams_tool_bbb/db/sql/tool_insert.sql 5 May 2014 11:14:49 -0000 1.2 +++ lams_tool_bbb/db/sql/tool_insert.sql 24 Feb 2016 12:35:24 -0000 1.2.2.1 @@ -19,8 +19,6 @@ author_url, monitor_url, define_later_url, -export_pfolio_learner_url, -export_pfolio_class_url, help_url, admin_url, language_file, @@ -46,8 +44,6 @@ 'tool/labbb10/authoring.do', 'tool/labbb10/monitoring.do', 'tool/labbb10/authoring.do?mode=teacher', -'tool/labbb10/exportPortfolio?mode=learner', -'tool/labbb10/exportPortfolio?mode=teacher', 'http://wiki.lamsfoundation.org/display/lamsdocs/labbb10', 'tool/labbb10/admin/view.do', 'org.lamsfoundation.lams.tool.bbb.ApplicationResources', Fisheye: Tag 1.3.2.1 refers to a dead (removed) revision in file `lams_tool_bbb/src/java/org/lamsfoundation/lams/tool/bbb/web/servlets/ExportServlet.java'. Fisheye: No comparison available. Pass `N' to diff? Index: lams_tool_bbb/web/WEB-INF/web.xml =================================================================== RCS file: /usr/local/cvsroot/lams_tool_bbb/web/WEB-INF/Attic/web.xml,v diff -u -r1.3.2.4 -r1.3.2.5 --- lams_tool_bbb/web/WEB-INF/web.xml 25 Nov 2014 09:37:21 -0000 1.3.2.4 +++ lams_tool_bbb/web/WEB-INF/web.xml 24 Feb 2016 12:35:24 -0000 1.3.2.5 @@ -114,10 +114,6 @@ 3 - - exportPortfolio - org.lamsfoundation.lams.tool.bbb.web.servlets.ExportServlet - action @@ -134,12 +130,8 @@ download /download/* - - - exportPortfolio - /exportPortfolio - + 500 /error.jsp Index: lams_tool_bbb/web/WEB-INF/tlds/lams/lams.tld =================================================================== RCS file: /usr/local/cvsroot/lams_tool_bbb/web/WEB-INF/tlds/lams/lams.tld,v diff -u -r1.3.2.1 -r1.3.2.2 --- lams_tool_bbb/web/WEB-INF/tlds/lams/lams.tld 4 Aug 2014 14:00:39 -0000 1.3.2.1 +++ lams_tool_bbb/web/WEB-INF/tlds/lams/lams.tld 24 Feb 2016 12:35:24 -0000 1.3.2.2 @@ -181,14 +181,6 @@ Output stylesheet based on the user preferences. - localLinkPath - false - - true - - - - Output stylesheet based on the user preferences. style false Fisheye: Tag 1.2.2.1 refers to a dead (removed) revision in file `lams_tool_bbb/web/pages/export/exportPortfolio.jsp'. Fisheye: No comparison available. Pass `N' to diff? Index: lams_tool_chat/conf/language/lams/ApplicationResources.properties =================================================================== RCS file: /usr/local/cvsroot/lams_tool_chat/conf/language/lams/ApplicationResources.properties,v diff -u -r1.30 -r1.30.2.1 --- lams_tool_chat/conf/language/lams/ApplicationResources.properties 26 Feb 2014 18:38:10 -0000 1.30 +++ lams_tool_chat/conf/language/lams/ApplicationResources.properties 24 Feb 2016 12:36:23 -0000 1.30.2.1 @@ -36,7 +36,6 @@ titleHeading.instructions =Instructions titleHeading.statistics =Statistics titleHeading.editActivity =Edit Activity -titleHeading.exportPortfolio =Export Portfolio heading.group =Group {0}: heading.totalLearners =Number of Learners: heading.totalLearnersInGroup =Total Number of Learners in Group: Index: lams_tool_chat/db/sql/tool_insert.sql =================================================================== RCS file: /usr/local/cvsroot/lams_tool_chat/db/sql/tool_insert.sql,v diff -u -r1.12 -r1.12.2.1 --- lams_tool_chat/db/sql/tool_insert.sql 5 May 2014 11:14:47 -0000 1.12 +++ lams_tool_chat/db/sql/tool_insert.sql 24 Feb 2016 12:36:24 -0000 1.12.2.1 @@ -19,8 +19,6 @@ author_url, monitor_url, define_later_url, -export_pfolio_learner_url, -export_pfolio_class_url, pedagogical_planner_url, help_url, language_file, @@ -47,8 +45,6 @@ 'tool/lachat11/authoring.do', 'tool/lachat11/monitoring.do', 'tool/lachat11/authoring.do?mode=teacher', -'tool/lachat11/exportPortfolio?mode=learner', -'tool/lachat11/exportPortfolio?mode=teacher', 'tool/lachat11/pedagogicalPlanner.do', 'http://wiki.lamsfoundation.org/display/lamsdocs/lachat11', 'org.lamsfoundation.lams.tool.chat.ApplicationResources', Fisheye: Tag 1.11.2.2 refers to a dead (removed) revision in file `lams_tool_chat/src/java/org/lamsfoundation/lams/tool/chat/web/servlets/ExportServlet.java'. Fisheye: No comparison available. Pass `N' to diff? Index: lams_tool_chat/web/WEB-INF/web.xml =================================================================== RCS file: /usr/local/cvsroot/lams_tool_chat/web/WEB-INF/Attic/web.xml,v diff -u -r1.22.2.4 -r1.22.2.5 --- lams_tool_chat/web/WEB-INF/web.xml 25 Nov 2014 09:37:26 -0000 1.22.2.4 +++ lams_tool_chat/web/WEB-INF/web.xml 24 Feb 2016 12:36:24 -0000 1.22.2.5 @@ -114,10 +114,6 @@ 3 - - exportPortfolio - org.lamsfoundation.lams.tool.chat.web.servlets.ExportServlet - action @@ -135,16 +131,6 @@ /download/* - - - Jabber HTTP Binding Servlet - /JHB/ - - - - exportPortfolio - /exportPortfolio - 500 Index: lams_tool_chat/web/WEB-INF/tlds/lams/lams.tld =================================================================== RCS file: /usr/local/cvsroot/lams_tool_chat/web/WEB-INF/tlds/lams/lams.tld,v diff -u -r1.3.2.2 -r1.3.2.3 --- lams_tool_chat/web/WEB-INF/tlds/lams/lams.tld 24 Feb 2016 02:48:16 -0000 1.3.2.2 +++ lams_tool_chat/web/WEB-INF/tlds/lams/lams.tld 24 Feb 2016 12:36:24 -0000 1.3.2.3 @@ -181,14 +181,6 @@ Output stylesheet based on the user preferences. - localLinkPath - false - - true - - - - Output stylesheet based on the user preferences. style false Fisheye: Tag 1.14.2.1 refers to a dead (removed) revision in file `lams_tool_chat/web/pages/export/exportPortfolio.jsp'. Fisheye: No comparison available. Pass `N' to diff? Index: lams_tool_daco/conf/language/lams/ApplicationResources.properties =================================================================== RCS file: /usr/local/cvsroot/lams_tool_daco/conf/language/lams/ApplicationResources.properties,v diff -u -r1.24.2.1 -r1.24.2.2 --- lams_tool_daco/conf/language/lams/ApplicationResources.properties 26 Jan 2016 23:40:45 -0000 1.24.2.1 +++ lams_tool_daco/conf/language/lams/ApplicationResources.properties 24 Feb 2016 12:35:52 -0000 1.24.2.2 @@ -180,7 +180,6 @@ message.monitoring.edit.activity.not.editable =This Activity is no longer editable message.monitoring.summary.no.session =No learners have accessed this activity. message.monitoring.summary.no.question.for.group =No question available for this group. -label.export.title =Export portfolio of Data Collection label.export.reflection.heading =Notebook entry error.question.desc.blank =Description can not be blank error.question.file.blank =File can not be blank. Index: lams_tool_daco/db/sql/tool_insert.sql =================================================================== RCS file: /usr/local/cvsroot/lams_tool_daco/db/sql/tool_insert.sql,v diff -u -r1.6 -r1.6.2.1 --- lams_tool_daco/db/sql/tool_insert.sql 5 May 2014 11:14:25 -0000 1.6 +++ lams_tool_daco/db/sql/tool_insert.sql 24 Feb 2016 12:35:52 -0000 1.6.2.1 @@ -21,8 +21,6 @@ author_url, monitor_url, define_later_url, -export_pfolio_learner_url, -export_pfolio_class_url, help_url, language_file, create_date_time, @@ -48,8 +46,6 @@ 'tool/ladaco10/authoring/start.do', 'tool/ladaco10/monitoring/summary.do', 'tool/ladaco10/definelater.do', -'tool/ladaco10/exportPortfolio?mode=learner', -'tool/ladaco10/exportPortfolio?mode=teacher', 'http://wiki.lamsfoundation.org/display/lamsdocs/ladaco10', 'org.lamsfoundation.lams.tool.daco.ApplicationResources', NOW(), Index: lams_tool_daco/src/java/org/lamsfoundation/lams/tool/daco/service/DacoServiceImpl.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_daco/src/java/org/lamsfoundation/lams/tool/daco/service/DacoServiceImpl.java,v diff -u -r1.21.2.5 -r1.21.2.6 --- lams_tool_daco/src/java/org/lamsfoundation/lams/tool/daco/service/DacoServiceImpl.java 26 Jan 2016 23:38:15 -0000 1.21.2.5 +++ lams_tool_daco/src/java/org/lamsfoundation/lams/tool/daco/service/DacoServiceImpl.java 24 Feb 2016 12:35:52 -0000 1.21.2.6 @@ -451,51 +451,54 @@ } @Override - public List getUsersForTablesorter(final Long sessionId, int page, int size, int sorting, + public List getUsersForTablesorter(final Long sessionId, int page, int size, int sorting, String searchString, boolean getNotebookEntries) { - return dacoUserDao.getUsersForTablesorter(sessionId, page, size, sorting, searchString, - getNotebookEntries, coreNotebookService); + return dacoUserDao.getUsersForTablesorter(sessionId, page, size, sorting, searchString, getNotebookEntries, + coreNotebookService); } - public int getCountUsersBySession(final Long sessionId, String searchString) { - return dacoUserDao.getCountUsersBySession( sessionId, searchString); + @Override + public int getCountUsersBySession(final Long sessionId, String searchString) { + return dacoUserDao.getCountUsersBySession(sessionId, searchString); } + @Override public List getSessionStatistics(Long toolContentUid) { - return dacoSessionDao.statistics(toolContentUid); + return dacoSessionDao.statistics(toolContentUid); } - - public MonitoringSummarySessionDTO getAnswersAsRecords(final Long sessionId, final Long userId, int sorting) - { + + @Override + public MonitoringSummarySessionDTO getAnswersAsRecords(final Long sessionId, final Long userId, int sorting) { DacoSession session = dacoSessionDao.getSessionBySessionId(sessionId); - MonitoringSummarySessionDTO monitoringRecordList = new MonitoringSummarySessionDTO(session.getSessionId(), session.getSessionName()); - + MonitoringSummarySessionDTO monitoringRecordList = new MonitoringSummarySessionDTO(session.getSessionId(), + session.getSessionName()); + List monitoringUsers = new ArrayList(); - if ( userId == null ) { + if (userId == null) { List users = dacoUserDao.getBySessionId(sessionId, sorting); - for ( DacoUser user : users ) { - monitoringUsers.add(getAnswersAsRecordsForUser(user)); + for (DacoUser user : users) { + monitoringUsers.add(getAnswersAsRecordsForUser(user)); } } else { monitoringUsers.add(getAnswersAsRecordsForUser(getUserByUserIdAndSessionId(userId, sessionId))); } - + monitoringRecordList.setUsers(monitoringUsers); return monitoringRecordList; } - + // called by getAnswersAsRecords private MonitoringSummaryUserDTO getAnswersAsRecordsForUser(DacoUser user) { MonitoringSummaryUserDTO monitoringUser = new MonitoringSummaryUserDTO(user.getUid(), - user.getUserId().intValue(), user.getFullName(), - user.getLoginName()); + user.getUserId().intValue(), user.getFullName(), user.getLoginName()); List> records = getDacoAnswersByUser(user); monitoringUser.setRecords(records); monitoringUser.setRecordCount(records.size()); return monitoringUser; } - - public List getExportPortfolioSummary(Long contentId, Long userUid) { + + @Override + public List getSummaryForExport(Long contentId, Long userUid) { List sessions = dacoSessionDao.getByContentId(contentId); List result = new ArrayList(sessions.size()); Daco daco = getDacoByContentId(contentId); @@ -507,8 +510,7 @@ List monitoringUsers = new ArrayList(users.size()); for (DacoUser user : users) { MonitoringSummaryUserDTO monitoringUser = new MonitoringSummaryUserDTO(user.getUid(), - user.getUserId().intValue(), user.getFullName(), - user.getLoginName()); + user.getUserId().intValue(), user.getFullName(), user.getLoginName()); List> records = getDacoAnswersByUser(user); /* * If the user provided as "userUid" matches current user UID, the summary is filled with additional Index: lams_tool_daco/src/java/org/lamsfoundation/lams/tool/daco/service/IDacoService.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_daco/src/java/org/lamsfoundation/lams/tool/daco/service/IDacoService.java,v diff -u -r1.12.2.1 -r1.12.2.2 --- lams_tool_daco/src/java/org/lamsfoundation/lams/tool/daco/service/IDacoService.java 26 Jan 2016 23:38:15 -0000 1.12.2.1 +++ lams_tool_daco/src/java/org/lamsfoundation/lams/tool/daco/service/IDacoService.java 24 Feb 2016 12:35:52 -0000 1.12.2.2 @@ -292,7 +292,7 @@ MonitoringSummarySessionDTO getAnswersAsRecords(final Long sessionId, final Long userId, int sorting); /** - * Creates summary that is later used in the export portfolio. + * Creates summary that is later used in the export. * * @param contentId * ID of Daco for which the summary should be created @@ -302,7 +302,7 @@ * created for noone * @return list of monitoring summaries, one for each session */ - List getExportPortfolioSummary(Long contentId, Long userUid); + List getSummaryForExport(Long contentId, Long userUid); /** Get a paged user list for monitoring */ List getUsersForTablesorter(final Long sessionId, int page, int size, int sorting, Index: lams_tool_daco/src/java/org/lamsfoundation/lams/tool/daco/web/action/MonitoringAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_daco/src/java/org/lamsfoundation/lams/tool/daco/web/action/MonitoringAction.java,v diff -u -r1.13.2.2 -r1.13.2.3 --- lams_tool_daco/src/java/org/lamsfoundation/lams/tool/daco/web/action/MonitoringAction.java 27 Jan 2016 11:51:42 -0000 1.13.2.2 +++ lams_tool_daco/src/java/org/lamsfoundation/lams/tool/daco/web/action/MonitoringAction.java 24 Feb 2016 12:35:52 -0000 1.13.2.3 @@ -334,7 +334,7 @@ List rows = new LinkedList(); // We get all sessions with all users with all their records from the given Daco content - List monitoringSummary = service.getExportPortfolioSummary(daco.getContentId(), null); + List monitoringSummary = service.getSummaryForExport(daco.getContentId(), null); // Get current user's locale to format numbers properly Locale monitoringUserLocale = null; HttpSession ss = SessionManager.getSession(); Fisheye: Tag 1.5.2.2 refers to a dead (removed) revision in file `lams_tool_daco/src/java/org/lamsfoundation/lams/tool/daco/web/servlet/ExportServlet.java'. Fisheye: No comparison available. Pass `N' to diff? Index: lams_tool_daco/web/WEB-INF/web.xml =================================================================== RCS file: /usr/local/cvsroot/lams_tool_daco/web/WEB-INF/web.xml,v diff -u -r1.9.2.6 -r1.9.2.7 --- lams_tool_daco/web/WEB-INF/web.xml 25 Nov 2014 09:37:34 -0000 1.9.2.6 +++ lams_tool_daco/web/WEB-INF/web.xml 24 Feb 2016 12:35:52 -0000 1.9.2.7 @@ -72,15 +72,8 @@ /* - - exportPortfolio - org.lamsfoundation.lams.tool.daco.web.servlet.ExportServlet - - - action org.apache.struts.action.ActionServlet @@ -144,10 +137,6 @@ /download/* - - exportPortfolio - /exportPortfolio - Index: lams_tool_daco/web/WEB-INF/tlds/lams/lams.tld =================================================================== RCS file: /usr/local/cvsroot/lams_tool_daco/web/WEB-INF/tlds/lams/lams.tld,v diff -u -r1.6.2.1 -r1.6.2.2 --- lams_tool_daco/web/WEB-INF/tlds/lams/lams.tld 4 Aug 2014 14:00:19 -0000 1.6.2.1 +++ lams_tool_daco/web/WEB-INF/tlds/lams/lams.tld 24 Feb 2016 12:35:52 -0000 1.6.2.2 @@ -181,14 +181,6 @@ Output stylesheet based on the user preferences. - localLinkPath - false - - true - - - - Output stylesheet based on the user preferences. style false Fisheye: Tag 1.5.2.1 refers to a dead (removed) revision in file `lams_tool_daco/web/pages/export/exportportfolio.jsp'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.1.2.3 refers to a dead (removed) revision in file `lams_tool_daco/web/pages/export/listRecords.jsp'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.3.2.1 refers to a dead (removed) revision in file `lams_tool_daco/web/pages/export/listRecordsTemplate.jsp'. Fisheye: No comparison available. Pass `N' to diff? Index: lams_tool_daco/web/pages/learning/listRecords.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_daco/web/pages/learning/listRecords.jsp,v diff -u -r1.11.2.2 -r1.11.2.3 --- lams_tool_daco/web/pages/learning/listRecords.jsp 28 Jan 2016 08:59:47 -0000 1.11.2.2 +++ lams_tool_daco/web/pages/learning/listRecords.jsp 24 Feb 2016 12:35:52 -0000 1.11.2.3 @@ -65,20 +65,11 @@

- - <%-- Indenting is different depending on the page this page is included to. --%> - -

- : ${fn:length(recordList)} -

-
- -

- : ${fn:length(recordList)} -

-
-
+

+ : ${fn:length(recordList)} +

+ <%-- Horizontal view creates a table with question list and one large cell where iframe with records is displayed --%> @@ -230,16 +221,7 @@ - - <%-- The file can be downloaded back from the server. - It is done differently in learning and export portfolio modes. --%> - -
${answer.fileName} - - - ${answer.fileName} - -
+ ${answer.fileName}
Index: lams_tool_daco/web/pages/learning/listRecordsHorizontalPart.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_daco/web/pages/learning/listRecordsHorizontalPart.jsp,v diff -u -r1.9.2.2 -r1.9.2.3 --- lams_tool_daco/web/pages/learning/listRecordsHorizontalPart.jsp 10 Feb 2016 10:01:44 -0000 1.9.2.2 +++ lams_tool_daco/web/pages/learning/listRecordsHorizontalPart.jsp 24 Feb 2016 12:35:52 -0000 1.9.2.3 @@ -171,14 +171,7 @@ - - - ${answer.fileName} - - - ${answer.fileName} - - + ${answer.fileName}
Index: lams_tool_daco/web/pages/monitoring/notebook.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_daco/web/pages/monitoring/notebook.jsp,v diff -u -r1.4 -r1.4.2.1 --- lams_tool_daco/web/pages/monitoring/notebook.jsp 27 Mar 2014 14:21:45 -0000 1.4 +++ lams_tool_daco/web/pages/monitoring/notebook.jsp 24 Feb 2016 12:35:52 -0000 1.4.2.1 @@ -11,9 +11,6 @@ - - - <%@ include file="/common/header.jsp"%> <fmt:message key="label.learning.title" /> Index: lams_tool_eadventure/conf/language/lams/ApplicationResources.properties =================================================================== RCS file: /usr/local/cvsroot/lams_tool_eadventure/conf/language/lams/ApplicationResources.properties,v diff -u -r1.10 -r1.10.2.1 --- lams_tool_eadventure/conf/language/lams/ApplicationResources.properties 26 Feb 2014 18:50:20 -0000 1.10 +++ lams_tool_eadventure/conf/language/lams/ApplicationResources.properties 24 Feb 2016 12:36:21 -0000 1.10.2.1 @@ -72,7 +72,6 @@ label.monitoring.edit.activity.edit =Edit message.monitoring.edit.activity.not.editable =This Activity is no longer editable export.label.no.learning.object =No offline package available -export.title =Export portfolio of eAdventure activity error.valueReqd =Value Required error.inputFileTooLarge =Input File size is too large! error.uploading =error uploading Index: lams_tool_eadventure/db/sql/tool_insert.sql =================================================================== RCS file: /usr/local/cvsroot/lams_tool_eadventure/db/sql/tool_insert.sql,v diff -u -r1.4 -r1.4.2.1 Binary files differ Index: lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dto/Summary.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dto/Summary.java,v diff -u -r1.3 -r1.3.2.1 --- lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dto/Summary.java 11 Dec 2011 21:30:29 -0000 1.3 +++ lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/dto/Summary.java 24 Feb 2016 12:36:21 -0000 1.3.2.1 @@ -24,21 +24,22 @@ /* $Id$ */ package org.eucm.lams.tool.eadventure.dto; -import java.util.ArrayList; import java.util.List; -import java.util.Set; - import org.eucm.lams.tool.eadventure.model.Eadventure; import org.eucm.lams.tool.eadventure.model.EadventureUser; -import org.eucm.lams.tool.eadventure.util.EadventureWebUtils; /** * List contains following element:
* - *
  • session_id
  • session_name
  • EadventureItem.uid
  • - * EadventureItem.item_type
  • EadventureItem.create_by_author
  • - * EadventureItem.is_hide
  • EadventureItem.title
  • User.login_name
  • + *
  • session_id
  • + *
  • session_name
  • + *
  • EadventureItem.uid
  • + *
  • EadventureItem.item_type
  • + *
  • EadventureItem.create_by_author
  • + *
  • EadventureItem.is_hide
  • + *
  • EadventureItem.title
  • + *
  • User.login_name
  • *
  • count(eadventure_item_uid)
  • * * @author Steve.Ni @@ -60,19 +61,12 @@ //TODO ver que pasa con itemHide private boolean itemHide; private String itemTitle; - //TODO ver que pasa con item instructions - // private List itemInstructions = new ArrayList(); + //TODO ver que pasa con item instructions + // private List itemInstructions = new ArrayList(); private String username; //TODO Cuidado, = viewNumber y numberOfLearners.... private int viewNumber; - // following is used for export portfolio programs: - private String url; - private Long fileUuid; - private Long fileVersionId; - private String fileName; - private String attachmentLocalUrl; - // true: initial group item, false, belong to some group. private boolean isInitGroup; @@ -88,57 +82,18 @@ * @param item * @param isInitGroup */ - public Summary(Long sessionId, String sessionName, Eadventure ead) { + public Summary(Long sessionId, String sessionName, Eadventure ead) { this.sessionId = sessionId; this.sessionName = sessionName; if (ead != null) { this.eadventureUid = ead.getUid(); - //this.itemType = ead.getType(); - // this.itemCreateByAuthor = ead.isCreatedByAuthor(); - - //TODO ver que pasa con hide - // this.itemHide = ead.isHide(); this.itemTitle = ead.getTitle(); this.username = ead.getCreatedBy() == null ? "" : ead.getCreatedBy().getLoginName(); - // this.url = ead.protocol(ead.getUrl()); - this.fileName = ead.getFileName(); - this.fileUuid = ead.getFileUuid(); - this.fileVersionId = ead.getFileVersionId(); - } else + } else { this.eadventureUid = new Long(-1); + } } - /** - * Contruction method for export profolio function. - * - * Don't not set sessionId and viewNumber fields - * - * @param sessionName - * @param item - * @param isInitGroup - */ - public Summary(Long sessionId, String sessionName, Eadventure ead, boolean isInitGroup) { - this.sessionId = sessionId; - this.sessionName = sessionName; - if (ead != null) { - this.eadventureUid = ead.getUid(); - //TODO ver que pasa con HIDE - //this.itemHide = ead.isHide(); - this.itemTitle = ead.getTitle(); - this.username = ead.getCreatedBy() == null ? "" : ead.getCreatedBy().getLoginName(); - // this.url = EadventureWebUtils.protocol(item.getUrl()); - this.fileName = ead.getFileName(); - this.fileUuid = ead.getFileUuid(); - this.fileVersionId = ead.getFileVersionId(); - - - } else - this.eadventureUid = new Long(-1); - //this.isInitGroup = isInitGroup; - } - - - public boolean isItemHide() { return itemHide; } @@ -155,8 +110,6 @@ this.itemTitle = itemTitle; } - - public Long getItemUid() { return eadventureUid; } @@ -189,32 +142,6 @@ this.username = username; } - - - public Long getFileUuid() { - return fileUuid; - } - - public void setFileUuid(Long fileUuid) { - this.fileUuid = fileUuid; - } - - public Long getFileVersionId() { - return fileVersionId; - } - - public void setFileVersionId(Long fileVersionId) { - this.fileVersionId = fileVersionId; - } - - public String getUrl() { - return url; - } - - public void setUrl(String url) { - this.url = url; - } - public boolean isInitGroup() { return isInitGroup; } @@ -223,70 +150,52 @@ this.isInitGroup = isInitGroup; } - public String getAttachmentLocalUrl() { - return attachmentLocalUrl; - } - - public void setAttachmentLocalUrl(String attachmentLocalUrl) { - this.attachmentLocalUrl = attachmentLocalUrl; - } - - public String getFileName() { - return fileName; - } - - public void setFileName(String fileName) { - this.fileName = fileName; - } - public int getViewNumber() { - return viewNumber; + return viewNumber; } public void setViewNumber(int viewNumber) { - this.viewNumber = viewNumber; + this.viewNumber = viewNumber; } public boolean[] getExistList() { - return existList; + return existList; } public void setExistList(boolean[] existList) { - this.existList = existList; + this.existList = existList; } public List getUsers() { - return users; + return users; } public void setUsers(List users) { - this.users = users; + this.users = users; } public int getNumberOfLearners() { - return numberOfLearners; + return numberOfLearners; } public void setNumberOfLearners(int numberOfLearners) { - this.numberOfLearners = numberOfLearners; + this.numberOfLearners = numberOfLearners; } public int getNumberOfFinishedLearners() { - return numberOfFinishedLearners; + return numberOfFinishedLearners; } public void setNumberOfFinishedLearners(int numberOfFinishedLearners) { - this.numberOfFinishedLearners = numberOfFinishedLearners; + this.numberOfFinishedLearners = numberOfFinishedLearners; } public String[] getReportList() { - return reportList; + return reportList; } public void setReportList(String[] reportList) { - this.reportList = reportList; + this.reportList = reportList; } - - } Index: lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/service/EadventureServiceImpl.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/service/EadventureServiceImpl.java,v diff -u -r1.13.2.5 -r1.13.2.6 --- lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/service/EadventureServiceImpl.java 18 Feb 2016 15:45:02 -0000 1.13.2.5 +++ lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/service/EadventureServiceImpl.java 24 Feb 2016 12:36:21 -0000 1.13.2.6 @@ -341,98 +341,7 @@ } - // TODO revisar!!!!!! Monitoring @Override - public List exportBySessionId(Long sessionId, Long userId) { - EadventureSession session = eadventureSessionDao.getSessionBySessionId(sessionId); - if (session == null) { - EadventureServiceImpl.log.error("Failed get EadventureSession by ID [" + sessionId + "]"); - return null; - } - // initial eadventure items list - List itemList = new ArrayList(); - Eadventure ead = session.getEadventure(); - Summary sum = new Summary(session.getSessionId(), session.getSessionName(), ead, false); - - // List userList = getUserListBySessionItem(session.getSessionId(), ead.getUid()); - boolean[] existList = new boolean[1]; - String[] reportList = new String[1]; - - EadventureUser eadUser = eadventureUserDao.getUserByUserIDAndSessionID(userId, sessionId); - // TODO doble acceso a vistit log... (aqui y en getUserListBySessionItem) - EadventureItemVisitLog log = getEadventureItemLog(ead.getUid(), userId); - eadUser.setAccessDate(log.getAccessDate()); - EadventureVars var = getEadventureVars(log.getUid(), EadventureConstants.VAR_NAME_REPORT); - - if (var != null) { - existList[0] = true; - reportList[0] = var.getValue(); - } else { - existList[0] = false; - reportList[0] = null; - } - - ArrayList userList = new ArrayList(); - userList.add(eadUser); - sum.setUsers(userList); - sum.setExistList(existList); - sum.setReportList(reportList); - - // TODO ver si tiene sentido que sea una lista - ArrayList list = new ArrayList(); - list.add(sum); - - return list; - } - - // TODO revisar!!!!!! Monitoring - @Override - public List exportByContentId(Long contentId) { - Eadventure eadventure = eadventureDao.getByContentId(contentId); - List groupList = new ArrayList(); - - // session by session - List sessionList = eadventureSessionDao.getByContentId(contentId); - for (EadventureSession session : sessionList) { - - Summary sum = new Summary(session.getSessionId(), session.getSessionName(), session.getEadventure(), false); - - List userList = getUserListBySessionItem(session.getSessionId(), eadventure.getUid()); - boolean[] existList = new boolean[userList.size()]; - String[] reportList = new String[userList.size()]; - int numberOfFinishedLearners = 0; - int i = 0; - for (EadventureUser eadUser : userList) { - // TODO doble acceso a vistit log... (aqui y en getUserListBySessionItem) - EadventureItemVisitLog log = getEadventureItemLog(eadventure.getUid(), eadUser.getUserId()); - - EadventureVars var = getEadventureVars(log.getUid(), EadventureConstants.VAR_NAME_REPORT); - - if (log.isComplete()) { - numberOfFinishedLearners++; - } - - if (var != null) { - existList[i] = true; - reportList[i] = var.getValue(); - } else { - existList[i] = false; - reportList[i] = null; - } - i++; - - } - sum.setUsers(userList); - sum.setExistList(existList); - sum.setReportList(reportList); - - groupList.add(sum); - } - - return groupList; - } - - @Override public Eadventure getEadventureBySessionId(Long sessionId) { EadventureSession session = eadventureSessionDao.getSessionBySessionId(sessionId); // to skip CGLib problem @@ -940,7 +849,7 @@ // TODO revisar exportContentService.registerFileClassForImport(Eadventure.class.getName(), "fileUuid", "fileVersionId", - "fileName", "fileType", null, "initialItem"); + "fileName", "fileType", "initialItem"); Object toolPOJO = exportContentService.importToolContent(toolContentPath, eadventureToolContentHandler, fromVersion, toVersion); Index: lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/service/IEadventureService.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/service/IEadventureService.java,v diff -u -r1.4 -r1.4.2.1 --- lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/service/IEadventureService.java 17 Jan 2014 21:42:40 -0000 1.4 +++ lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/service/IEadventureService.java 24 Feb 2016 12:36:21 -0000 1.4.2.1 @@ -253,15 +253,6 @@ void setItemVisible(Long itemUid, boolean visible); /** - * Get eadventure item Summary list according to sessionId - * - * @return - */ - public List exportBySessionId(Long sessionId, Long userId); - - public List exportByContentId(Long contentId); - - /** * Create refection entry into notebook tool. * * @param sessionId Fisheye: Tag 1.6.2.1 refers to a dead (removed) revision in file `lams_tool_eadventure/src/java/org/eucm/lams/tool/eadventure/web/servlet/ExportServlet.java'. Fisheye: No comparison available. Pass `N' to diff? Index: lams_tool_eadventure/web/WEB-INF/web.xml =================================================================== RCS file: /usr/local/cvsroot/lams_tool_eadventure/web/WEB-INF/web.xml,v diff -u -r1.7.2.6 -r1.7.2.7 --- lams_tool_eadventure/web/WEB-INF/web.xml 25 Nov 2014 09:37:31 -0000 1.7.2.6 +++ lams_tool_eadventure/web/WEB-INF/web.xml 24 Feb 2016 12:36:21 -0000 1.7.2.7 @@ -72,15 +72,8 @@ /* - - exportPortfolio - org.eucm.lams.tool.eadventure.web.servlet.ExportServlet - - - completeItem org.eucm.lams.tool.eadventure.web.servlet.CompleteItemServlet @@ -157,11 +150,6 @@ - exportPortfolio - /exportPortfolio - - - completeItem /learning/completeItem Index: lams_tool_eadventure/web/WEB-INF/tlds/lams/lams.tld =================================================================== RCS file: /usr/local/cvsroot/lams_tool_eadventure/web/WEB-INF/tlds/lams/lams.tld,v diff -u -r1.7.2.1 -r1.7.2.2 --- lams_tool_eadventure/web/WEB-INF/tlds/lams/lams.tld 4 Aug 2014 14:00:40 -0000 1.7.2.1 +++ lams_tool_eadventure/web/WEB-INF/tlds/lams/lams.tld 24 Feb 2016 12:36:21 -0000 1.7.2.2 @@ -181,14 +181,6 @@ Output stylesheet based on the user preferences. - localLinkPath - false - - true - - - - Output stylesheet based on the user preferences. style false Fisheye: Tag 1.4.2.1 refers to a dead (removed) revision in file `lams_tool_eadventure/web/pages/export/exportportfolio.jsp'. Fisheye: No comparison available. Pass `N' to diff? Index: lams_tool_forum/db/sql/tool_insert.sql =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/db/sql/tool_insert.sql,v diff -u -r1.29 -r1.29.2.1 --- lams_tool_forum/db/sql/tool_insert.sql 5 May 2014 11:15:01 -0000 1.29 +++ lams_tool_forum/db/sql/tool_insert.sql 24 Feb 2016 12:35:48 -0000 1.29.2.1 @@ -19,8 +19,6 @@ author_url, monitor_url, define_later_url, -export_pfolio_learner_url, -export_pfolio_class_url, pedagogical_planner_url, help_url, language_file, @@ -47,8 +45,6 @@ 'tool/lafrum11/authoring.do', 'tool/lafrum11/monitoring.do', 'tool/lafrum11/defineLater.do', -'tool/lafrum11/exportPortfolio?mode=learner', -'tool/lafrum11/exportPortfolio?mode=teacher', 'tool/lafrum11/authoring/initPedagogicalPlannerForm.do', 'http://wiki.lamsfoundation.org/display/lamsdocs/lafrum11', 'org.lamsfoundation.lams.tool.forum.ApplicationResources', Index: lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/dto/MessageDTO.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/dto/MessageDTO.java,v diff -u -r1.20.2.1 -r1.20.2.2 --- lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/dto/MessageDTO.java 19 Jan 2015 21:34:30 -0000 1.20.2.1 +++ lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/dto/MessageDTO.java 24 Feb 2016 12:35:48 -0000 1.20.2.2 @@ -21,215 +21,211 @@ * **************************************************************** */ -/* $$Id$$ */ +/* $$Id$$ */ package org.lamsfoundation.lams.tool.forum.dto; import java.util.ArrayList; -import java.util.Date; import java.util.Iterator; import java.util.List; import org.lamsfoundation.lams.tool.forum.persistence.ForumReport; import org.lamsfoundation.lams.tool.forum.persistence.Message; - public class MessageDTO { - private Message message; - private String author; - private boolean hasAttachment; - private short level; - private int threadNum; - private boolean isAuthor; - private Float mark; - private String comment; - private boolean released; - - //rating fields - private String averageRating; - private String numberOfVotes; - - // number of posts the learner has made in this topic. - // used when this message is a root topic. - private int numOfPosts; - - //2 fields use for export portfolio function - private String attachmentName; - private String attachmentLocalUrl; - - private int newPostingsNum; - - /** - * Get a MessageDTO instance from a given Message. - * - * @param msg - * @return - */ - public static MessageDTO getMessageDTO(Message msg){ - if(msg == null) - return null; - - MessageDTO dto = new MessageDTO(); - dto.setMessage(msg); - if(msg.getCreatedBy() != null) - dto.setAuthor(msg.getCreatedBy().getFirstName()+" "+msg.getCreatedBy().getLastName()); - if(msg.getAttachments() == null || msg.getAttachments().isEmpty()) - dto.setHasAttachment(false); - else - dto.setHasAttachment(true); - - ForumReport report = msg.getReport(); - if(report != null && report.getMark() != null){ - dto.mark = report.getMark(); - dto.comment = report.getComment(); - dto.released = report.getDateMarksReleased() == null?false:true; - } - - return dto; - } + private Message message; + private String author; + private boolean hasAttachment; + private short level; + private int threadNum; + private boolean isAuthor; + private Float mark; + private String comment; + private boolean released; - /** - * Get a list of MessageDTO according to given list of Message. - * @param msgList - * @return - */ - public static List getMessageDTO(List msgList){ - List retSet = new ArrayList(); - if(msgList == null || msgList.isEmpty()) - return retSet; - - Iterator iter = msgList.iterator(); - while(iter.hasNext()){ - Message msg = iter.next(); - MessageDTO msgDto = new MessageDTO(); - msgDto.setMessage(msg); - if(msg.getCreatedBy() != null) - msgDto.setAuthor(msg.getCreatedBy().getFirstName()+" "+msg.getCreatedBy().getLastName()); - - if(msg.getAttachments() == null || msg.getAttachments().isEmpty()) - msgDto.setHasAttachment(false); - else - msgDto.setHasAttachment(true); - ForumReport report = msg.getReport(); - if(report != null && report.getMark() != null){ - msgDto.mark = report.getMark(); - msgDto.comment = report.getComment(); - msgDto.released = report.getDateMarksReleased() == null?false:true; - } + //rating fields + private String averageRating; + private String numberOfVotes; - retSet.add(msgDto); - } - return retSet; - } - //-------------------------------DTO get/set method------------------------------ - public String getAuthor() { - return author; - } - public void setAuthor(String author) { - this.author = author; - } - public boolean getHasAttachment() { - return hasAttachment; - } - public void setHasAttachment(boolean isAttachment) { - this.hasAttachment = isAttachment; - } - public Message getMessage() { - return message; - } - public void setMessage(Message message) { - this.message = message; - } - public short getLevel() { - return level; - } - public void setLevel(short level) { - this.level = level; - } - public int getThreadNum() { - return threadNum; - } - public void setThreadNum(int threadNum) { - this.threadNum = threadNum; - } + // number of posts the learner has made in this topic. + // used when this message is a root topic. + private int numOfPosts; - public boolean getIsAuthor() { - return isAuthor; - } + private int newPostingsNum; - public void setAuthor(boolean isAuthor) { - this.isAuthor = isAuthor; + /** + * Get a MessageDTO instance from a given Message. + * + * @param msg + * @return + */ + public static MessageDTO getMessageDTO(Message msg) { + if (msg == null) { + return null; } - - public Float getMark() { - return mark; - } - public void setMark(Float mark) { - this.mark = mark; + MessageDTO dto = new MessageDTO(); + dto.setMessage(msg); + if (msg.getCreatedBy() != null) { + dto.setAuthor(msg.getCreatedBy().getFirstName() + " " + msg.getCreatedBy().getLastName()); } - public String getComment() { - return comment; + if ((msg.getAttachments() == null) || msg.getAttachments().isEmpty()) { + dto.setHasAttachment(false); + } else { + dto.setHasAttachment(true); } - public void setComment(String comment) { - this.comment = comment; + ForumReport report = msg.getReport(); + if ((report != null) && (report.getMark() != null)) { + dto.mark = report.getMark(); + dto.comment = report.getComment(); + dto.released = report.getDateMarksReleased() == null ? false : true; } - public boolean isReleased() { - return released; - } + return dto; + } - public void setReleased(boolean isReleased) { - this.released = isReleased; + /** + * Get a list of MessageDTO according to given list of Message. + * + * @param msgList + * @return + */ + public static List getMessageDTO(List msgList) { + List retSet = new ArrayList(); + if ((msgList == null) || msgList.isEmpty()) { + return retSet; } - - public String getAverageRating() { - return averageRating; - } - - public void setAverageRating(String averageRating) { - this.averageRating = averageRating; - } - - public String getNumberOfVotes() { - return numberOfVotes; - } - - public void setNumberOfVotes(String numberOfVotes) { - this.numberOfVotes = numberOfVotes; - } - public String getAttachmentLocalUrl() { - return attachmentLocalUrl; - } + Iterator iter = msgList.iterator(); + while (iter.hasNext()) { + Message msg = iter.next(); + MessageDTO msgDto = new MessageDTO(); + msgDto.setMessage(msg); + if (msg.getCreatedBy() != null) { + msgDto.setAuthor(msg.getCreatedBy().getFirstName() + " " + msg.getCreatedBy().getLastName()); + } - public void setAttachmentLocalUrl(String attachmentLocalUrl) { - this.attachmentLocalUrl = attachmentLocalUrl; - } + if ((msg.getAttachments() == null) || msg.getAttachments().isEmpty()) { + msgDto.setHasAttachment(false); + } else { + msgDto.setHasAttachment(true); + } + ForumReport report = msg.getReport(); + if ((report != null) && (report.getMark() != null)) { + msgDto.mark = report.getMark(); + msgDto.comment = report.getComment(); + msgDto.released = report.getDateMarksReleased() == null ? false : true; + } - public String getAttachmentName() { - return attachmentName; + retSet.add(msgDto); } + return retSet; + } - public void setAttachmentName(String attachmentName) { - this.attachmentName = attachmentName; - } + //-------------------------------DTO get/set method------------------------------ + public String getAuthor() { + return author; + } - public int getNumOfPosts() { - return numOfPosts; - } + public void setAuthor(String author) { + this.author = author; + } - public void setNumOfPosts(int numOfPosts) { - this.numOfPosts = numOfPosts; - } + public boolean getHasAttachment() { + return hasAttachment; + } - public void setNewPostingsNum(int newPostingsNum) { - this.newPostingsNum = newPostingsNum; - } + public void setHasAttachment(boolean isAttachment) { + this.hasAttachment = isAttachment; + } - public int getNewPostingsNum() { - return newPostingsNum; - } + public Message getMessage() { + return message; + } + + public void setMessage(Message message) { + this.message = message; + } + + public short getLevel() { + return level; + } + + public void setLevel(short level) { + this.level = level; + } + + public int getThreadNum() { + return threadNum; + } + + public void setThreadNum(int threadNum) { + this.threadNum = threadNum; + } + + public boolean getIsAuthor() { + return isAuthor; + } + + public void setAuthor(boolean isAuthor) { + this.isAuthor = isAuthor; + } + + public Float getMark() { + return mark; + } + + public void setMark(Float mark) { + this.mark = mark; + } + + public String getComment() { + return comment; + } + + public void setComment(String comment) { + this.comment = comment; + } + + public boolean isReleased() { + return released; + } + + public void setReleased(boolean isReleased) { + this.released = isReleased; + } + + public String getAverageRating() { + return averageRating; + } + + public void setAverageRating(String averageRating) { + this.averageRating = averageRating; + } + + public String getNumberOfVotes() { + return numberOfVotes; + } + + public void setNumberOfVotes(String numberOfVotes) { + this.numberOfVotes = numberOfVotes; + } + + public int getNumOfPosts() { + return numOfPosts; + } + + public void setNumOfPosts(int numOfPosts) { + this.numOfPosts = numOfPosts; + } + + public void setNewPostingsNum(int newPostingsNum) { + this.newPostingsNum = newPostingsNum; + } + + public int getNewPostingsNum() { + return newPostingsNum; + } } Index: lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/service/ForumService.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/service/ForumService.java,v diff -u -r1.126.2.17 -r1.126.2.18 --- lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/service/ForumService.java 18 Feb 2016 15:45:12 -0000 1.126.2.17 +++ lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/service/ForumService.java 24 Feb 2016 12:35:48 -0000 1.126.2.18 @@ -1002,7 +1002,7 @@ exportContentService.registerImportVersionFilterClass(ForumImportContentVersionFilter.class); exportContentService.registerFileClassForImport(Attachment.class.getName(), "fileUuid", "fileVersionId", - "fileName", "fileType", null, null); + "fileName", "fileType", null); Object toolPOJO = exportContentService.importToolContent(toolContentPath, forumToolContentHandler, fromVersion, toVersion); Fisheye: Tag 1.4.2.1 refers to a dead (removed) revision in file `lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/util/ForumBundler.java'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.19.2.1 refers to a dead (removed) revision in file `lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/web/actions/ExportServlet.java'. Fisheye: No comparison available. Pass `N' to diff? Index: lams_tool_forum/web/WEB-INF/web.xml =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/web/WEB-INF/Attic/web.xml,v diff -u -r1.36.2.5 -r1.36.2.6 --- lams_tool_forum/web/WEB-INF/web.xml 1 Dec 2014 14:48:15 -0000 1.36.2.5 +++ lams_tool_forum/web/WEB-INF/web.xml 24 Feb 2016 12:35:48 -0000 1.36.2.6 @@ -82,10 +82,6 @@ - - exportPortfolio - org.lamsfoundation.lams.tool.forum.web.actions.ExportServlet - action @@ -151,10 +147,6 @@ /download/* - - exportPortfolio - /exportPortfolio - 500 Index: lams_tool_forum/web/WEB-INF/tlds/lams/lams.tld =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/web/WEB-INF/tlds/lams/lams.tld,v diff -u -r1.3.2.1 -r1.3.2.2 --- lams_tool_forum/web/WEB-INF/tlds/lams/lams.tld 4 Aug 2014 14:00:28 -0000 1.3.2.1 +++ lams_tool_forum/web/WEB-INF/tlds/lams/lams.tld 24 Feb 2016 12:35:48 -0000 1.3.2.2 @@ -181,14 +181,6 @@ Output stylesheet based on the user preferences. - localLinkPath - false - - true - - - - Output stylesheet based on the user preferences. style false Index: lams_tool_forum/web/common/header.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/web/common/header.jsp,v diff -u -r1.13.2.1 -r1.13.2.2 --- lams_tool_forum/web/common/header.jsp 30 Dec 2014 09:44:07 -0000 1.13.2.1 +++ lams_tool_forum/web/common/header.jsp 24 Feb 2016 12:35:48 -0000 1.13.2.2 @@ -7,15 +7,7 @@ - - - - - - - - - + Index: lams_tool_forum/web/common/tabbedheader.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/web/common/tabbedheader.jsp,v diff -u -r1.6.2.1 -r1.6.2.2 --- lams_tool_forum/web/common/tabbedheader.jsp 10 Feb 2016 10:01:53 -0000 1.6.2.1 +++ lams_tool_forum/web/common/tabbedheader.jsp 24 Feb 2016 12:35:48 -0000 1.6.2.2 @@ -16,15 +16,7 @@ - - - - - - - - - + Index: lams_tool_forum/web/includes/learnerLayout.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/web/includes/learnerLayout.jsp,v diff -u -r1.6.12.2 -r1.6.12.3 --- lams_tool_forum/web/includes/learnerLayout.jsp 9 Feb 2016 18:53:29 -0000 1.6.12.2 +++ lams_tool_forum/web/includes/learnerLayout.jsp 24 Feb 2016 12:35:48 -0000 1.6.12.3 @@ -11,14 +11,8 @@ <fmt:message key="activity.title" /> - - - - - - - - + +