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

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

*** empty log message ***

  1. … 2 more files in changeset.
the struts exception handles nullPointerExceptions (using customstrutshandler)

in the execute method, a new authoring form is instantiated, this overcomes the problem of accessing the previous form values that were in the session and ensures that you are using a new form instead of an old one

renamed the method copyInstructionFormProperty to copyAuthoringFormValuesIntoFormBean added the deleteAttachment struts action.

new method in service bean :removeAttachmentByUuid which called removeAttachment from DAO class

removeAttachment(Long uuid) hibernate implementation

ive added another method removeAttachment(Long uuid) which removes an object fromt he attachment table which has the corresponding uuid

*** empty log message ***

created a method to return the map key, which is formed by the filename + "-" + fileType

*** empty log message ***

  1. … 1 more file in changeset.
in the xdoclet, the input attribute for the attribute has been removed. this is so, because usually its called directly and the action wasnt triggered from any other page

includes code which setups the map of attchments which is displayed on the jsp instructions page

new bean properties onlineFile , offlineFile and attachments

new struts action called upload which uploads a file to content repository and also saves the file information on the database

retrieveAttachmentByFilename definition and implementation

implementation of retrieveAttachmentByFilename

new method retrieveAttachmentByFilename used in authoringaction to determine if there are files that exist in db with same filename

new bean definition toolContentHandler

added ATTACHMENT_LIST a session scope variable

added new constants TYPE_ONLINE and TYPE_OFFLINE also new method returnFileType() which is a helper method to determine whether its an online file or offline file

took out attachmentId from teh constructor as this is auto generated