ILearnerService.java

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
LDEV-4540 Introduce hooks in command websockets

When a command is added, the JSON can contain "hookTrigger" and

"hookParams" attributes.

hookTrigger is just a string which uniquely identifies a page. If this

page set the same commandWebsocketHookTrigger, then command is consumed

and function defined on this page as commandWebsocketHook is run with

parameters taken from hookParams from JSON.

This way back end can tell exact page on front end to run any code it

defines itself.

  1. … 35 more files in changeset.
LDEV-4407 Move shared classes from lams_learning to lams_common

This is done in order to eliminate the need for other projects to

depend on lams_learning.

  1. … 15 more files in changeset.
LDEV-4366 Introduce rubrics to Kumalive

  1. … 29 more files in changeset.
LDEV-4366 Add a working version of Kumalive

  1. … 14 more files in changeset.
LDEV-4366 Prototype Kumalive front and back ends

  1. … 18 more files in changeset.
LDEV-3765: Add command websockets in all tools. Run check less often (5s vs 2s) as the effect does not need to be immediate. Reorganise code. Add i18n support.

  1. … 44 more files in changeset.
LDEV-3765: Prototype of learner command websockets. Works only for Forum and force complete.

  1. … 9 more files in changeset.
LDEV-3776: Remove $Id CVS keyword.

  1. … 1074 more files in changeset.
LDEV-3776: Remove $Id CVS keyword.

  1. … 782 more files in changeset.
LDEV-3776: Clean up and format all LAMS Java code.

  1. … 2120 more files in changeset.
LDEV-3776: Clean up and format all LAMS Java code.

  1. … 1860 more files in changeset.
LDEV-3026: Add utilities for getting activity position. Make Tools position-aware and display different label if they are last in LD.

  1. … 182 more files in changeset.
LDEV-2374: Data flow between tools: framework and example for Q&A -> Vote.

  1. … 85 more files in changeset.
Updated address of FSF in copyright statement

  1. … 1392 more files in changeset.
Moving from a tool activity to a grouped tool activity was throwing an exception as the "create tool session" code (which calls the tool to create the tool session details) was being called within the tool context.

Moved the call to create the tool session into LoadToolActivityAction so that it will always be run within the lams-learning war context and hence all the tools' beans are available in the Spring context.

To try to stop this sort of problem occuring again (ie a tool calling code that relies on all tools' beans being in the context) the ILearnerService has been split into two interfaces. ILearnerService now only contains the one method that should be called by tools (to complete a tool session). All other calls are in ICoreLearnerService. Any of the core modules may use the ICoreLearnerService but only tools should use the ILearnerService.

  1. … 24 more files in changeset.
Removing learnerProgress from the user's shared session. This should allow preview and learner to run without interfering with each other.

  1. … 25 more files in changeset.
Preview changes: (1) when define later activity occurs don't tell the tool that it is define later but display a special screen before going to the next tool (2) for chosen grouping, schedule and permission gates show the normal page with an extra preview message then override the normal process and continue.

Also part A of a change to the Flash call to get the learner progress - it should take the lesson id not the progress id.

  1. … 14 more files in changeset.
Clean up grouping code so that the shared code is in lams.jar, and making it so that learner can't trigger the chosen grouping. I18N the grouping screen and added a wait page for the chosen grouping.

  1. … 10 more files in changeset.
Random grouping now working. Changed to make learner service changes to stop a hibernate lazy initialisation exception when grouping has just been run. Also reduced the amount of data needed to be cached in the session - only the lesson id is needed not the complete lesson.

  1. … 11 more files in changeset.
Changed calls to update lesson to use the lessonId rather than the lesson. Change allowed us to reduce the amount cached in the context. This fixed various issues with Optional and Parallel activities.

  1. … 14 more files in changeset.
Replaced getActiveLessons with getLesson, to suit the change from listing all the lessons in the learner client to just working with a single lesson.

Also moved the logic to cache the lesson learners into the lams.jar (in the LessonService).

  1. … 10 more files in changeset.
Implementing the gate screens for learner.

  1. … 13 more files in changeset.
Got the existing grouping and gate screens working from the learner interface. More work yet to be done on them.

  1. … 10 more files in changeset.
Added "exitted lesson" screen and I18N'd the text of the welcome screen. Made the Action more robust with respect to exceptions - most exceptions are now caught and a proper error message is sent back to Flash (rather than nothing being returned). Changed the LearnerActions to not forward to page when the wddx packet is returned. We now have a Flash interface so forwarding to a page (rather than letting Flash bring up the next bad) is now bad. Had to change the dummy learner screen to still forward temporarily otherwise the dummy screen won't display the tool pages.

  1. … 8 more files in changeset.
Updated copyright statement - only support GPL v 2.0

  1. … 66 more files in changeset.
Changed learning design activities and transition collections to use all-delete-orphan cascade management. This will ensure that the secondary records are created and removed as required.

This required fixing code that trigger cascade problems and also highlighted some session problems with the learner cache created by Jacky.

  1. … 38 more files in changeset.
Modified the "leaveToolSession" and related code to allow the tool to pass the userid (which it gets from UserDTO in the shared session) rather than pass User (which the tool doesn't have).

Rejigged the tool jars loaded on the classpath so suit the most "completed" tools.

  1. … 6 more files in changeset.
gate struts action implemented

  1. … 12 more files in changeset.
knock gate service implemented

  1. … 4 more files in changeset.
implemented complete activity for the completion of system driven activity. customized the Spring OpenSessionInViewFilter to resolve redundent hibernate session issue.

  1. … 14 more files in changeset.