• last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
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

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

added struts action forward

added the properies mainFileName, toolLink and directoryName

*** empty log message ***

More changes to suit Hibernate 3

  1. … 15 more files in changeset.
lams.war no longer exists so build task removed

  1. … 15 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

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

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

*** empty log message ***

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.

Portfolio object holds details about a particular activity

the exportService bean generates an array of portfolio objects which are passed onto the web layer and the info displayed to user

    • -0
    • +145
    ./java/org/lamsfoundation/lams/learning/export/Portfolio.java
Exception class for ExportPortfolio

new error variables