lamsfoundation

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Added copyright statement to top of file. Instead of using getUserData method from learningWebUtil, it gets the userdto from the shared session once the portfolio is zipped up, it will return the relative file location to the exportWaitingPage.jsp

This class isnt used. But modified it so that it works with the new export service code. Will get the user information from the shared session.

download servlet triggers the download dialog to popup.

    • -0
    • +107
    ./lams/learning/export/web/action/ExportDownloadServlet.java
quite a few changes made this time around. the exportPortfolioFor* takes in IDs as parameter. Otherwise lazy initialisatione xception happens. removed some methods that are now not used.

new constants and added copyright statement at the top of the file

added userDAO, so that we could get the User object from the userId

changed exportservlet, so that it called export service directly, (doesnt use the httpUrlConnection) Created another method exportPortfolioForTeacher which takes in a lessonID as a parameter instead of Lesson object, as that triggers the lazy initialization exception

added lessonDAO, used to retireve the lesson inside export service.

export servlet, which calls the main export action. generates the main export page

retrieves the cookies and passes it into the export service method

added Cookie[] as a parameter to some of the methods, so that the Cookie can be passed along.

cleaned up the code a little bit. the method connectToToolViaExportUrl, now calls the HttpUrlConnectionUtil method instead.

removed toolSessionId, userId, exportContent, toolContentId, mainFileName, directoryName that arent being used

    • -94
    • +8
    ./lams/learning/export/Portfolio.java
added subdirectory constant

added some new methods, exportToolPortfolio which connects the tools export url via httpUrlConnection. Currently having problems getting this to work. may be due to the security stuff (it works on the older versions before the security changes and hibernate 3 changes) Will fix this!

added comments

added property activityDAO for exportService

MainExportServlet, similar the the tools export servlet, will call the other export url and save the main page to disk

    • -0
    • +186
    ./lams/learning/export/web/action/MainExportServlet.java
added struts action forward

added the properies mainFileName, toolLink and directoryName

    • -1
    • +43
    ./lams/learning/export/Portfolio.java
*** empty log message ***

    • -0
    • +24
    ./lams/learning/export/ExportPortfolioConstants.java
More changes to suit Hibernate 3

    • -5
    • +4
    ./lams/learning/web/util/ActivityMapping.java
  1. … 15 more files in changeset.
lams.war no longer exists so build task removed

  1. … 14 more files in changeset.
Removed ISOLATION_READ_COMMITTED from the transactions as it is not supported by the JTA transaction manager. We will have to rely on the database settings.

  1. … 7 more files in changeset.
added the copywrite statement on top of the files

    • -4
    • +22
    ./lams/learning/export/Portfolio.java
Export portfolio action class the path /exportPortfolio.do maps to this class.

the CustomStrutsExceptionHandler in org.lamsfoundation.lams.util in which is previously used no longer belongs there. The customStrutsExceptionHandler is now located in org.lamsfoundation.lams.learning.util

    • -1
    • +1
    ./lams/learning/web/action/GateAction.java
    • -1
    • +1
    ./lams/learning/web/action/GroupingAction.java
    • -1
    • +1
    ./lams/learning/web/action/LearnerAction.java
The customStrutsExceptionHandler was previously referenced from lams_common, however that was moved so i have created a this class inside lams_learning. And changed it so that it will handle all exceptions thrown within lams_learning

    • -0
    • +102
    ./lams/learning/util/CustomStrutsExceptionHandler.java
export portfolio service: currently most methods are public, but however will be changed to private later. I kept them public so i could test them using junit. should probable change those methods to protected instead.

    • -0
    • +430
    ./lams/learning/export/service/ExportPortfolioService.java
    • -0
    • +86
    ./lams/learning/export/service/IExportPortfolioService.java
*** empty log message ***