• last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
changed the copyFormValues..(), the deleteAttachment method now doesnt call this method, otherwise all fields will be blank.

instead of using hardcoded default content id, makes the call to getDefaultToolContentId

added comments to code

implemented to call to leaveToolSession, indicating that the learner has finished the activity

instead of using the constant for default content id, the service method is called

removed the TODO

added author tag

methods to return the toolSessionManager and ToolContentManager interface

implementation of the new function get default content id

in method copyToolSession and copyToolCOntent this method is used instead of the constant

added comments in the code

and also new method called getDefaultToolContentId which retrieves the default content id instead of hard coding it

use the JNDI tool-ds instead od jdbc connection

also added learnerService and ToolService

added comments in the code

added AUTHOR_PAGEV2

AND TOOL_SIGNATURE constants

used for the authoring page using DHTML

  1. … 10 more files in changeset.
removed BASIC and ADVANCED constants because they are not used.

removed the FORM constant as it isnt used in this Action class

a new instance of NBMonitoringForm is instantiated in the execute method to ensure that we are using a new form each time this starter action is called

instead placing the toolCotnentId in session scope, it is now stored in the session scope form bean

modified the validate method, the validate method doesnt check whether the title or content fields are empty, because the fckeditor buts in <br> tags even when there is no content

in cleanMonitoringSession, the session scope variable to hold the toolCotnentId is removed, as the session scope formbean now handles this instead

*** empty log message ***

  1. … 1 more file in changeset.
increased the filename field in attachment table to be varchar(255) instead of varchar(50).

  1. … 4 more files in changeset.
*** empty log message ***

added a new bean property attachments

modified the struts action "instructions": added code to initialise the attachment map, used to view the attachments that have been made with this specific tool content id

*** empty log message ***

  1. … 1 more file in changeset.
fixed the reset method (previously it wasnt defined correctly, and so it wasnt being called by the controller)

the validate method now checks the filesize of the uploaded files.

made some changes to the way the authoring screen is shown.

instead of having 3 separate jsp pages with 3 separate paths, combined these 3 authoring pages into the one page authorContent.jsp

works the same way as the monitoring environment.

removed the action forward nb_basic, nb_advanced and nb_instructions. the only forward path is now authoringContent

  1. … 3 more files in changeset.
removed the constants BASIC_PAGE, ADVANCED_PAGE AND INSTRUCTIONS_PAGE, since the three pages are now referenced through authorContent.jsp instead

when dealing with the same files being uploaded, the previous code, updated teh db with the new uuid, however, it wasnt updating instead new entries were being made. Now the code is changed so that if the file already exists (ie. has been uploaded already) then it will delete previously file from content repository, save it into content repository, delete the entry in the db, and create a new entry with the new uuid

the struts exception handles nullPointerExceptions (using customstrutshandler)