From PTAGISWiki
MyFiles module – Design document
version 1, dated 8/22/07, by Marton Nagy
Introduction
The following document captures the planned design of the MyFiles module
The MyFiles module shall be a JSP replacement for a similar functionality provided by SiteScape.
Module Design
Functionality
lists the files currently stored on a user’s personal “MyFiles” area
allow uploading files
allow downloading a selected file
allow deleting a selected file
allow submitting an uploaded file to the my registered tags area (RFD confirms)
does not need to provide file renaming functionality (RFD confirms)
Details/Assumptions
no file version control is needed; disallow upload if a file with the same name already exists
no subfolders or folder management functions are needed
no search functions are needed
will put limits on filenames (no special characters, …)
will put limits on the allowed file extensions to upload (security precaution)
will put limits on the size of the files to be uploaded
Look and Feel
look and feel should be similar to MyReports or My Registered Tags
the list displays the names, sizes and last modification dates of the files
functions should be available via menu buttons
upload function opens a new page that displays a form with a browse and submit buttons; status page is displayed afterwards
rest of the functions require that a file is selected first, then can be invoked by pressing the appropriate button
Implementation Details
will be implemented under the ptagis web application
web pages will be placed under ptagis/home/myfiles
will use struts for file upload
file storage: one folder per user, folder is named after the userid, the location of the root folder is
read from a configuration parameter from ptagis.properties
logging is done via log4j
QUESTIONS
Do we need disk quota display/computation?
We should not make any design decisions that preclude the implementation of quota calculation and display,
but we don't need to implement quotas at this time.