One more modification I did in order to have extension on the stored datastream 
files: there is a MIME to filename mapping file under the installed 
$FEDORA_HOME/server/config directory, which is used by 
fedora.server.rest.DatastreamFilenameHelper. In order to reuse this class and 
the mapping file, I need change the private static method "getExtension" to be 
public access. Would it be OK to make the core code change (in future 
releases), so I won't have to repeat this change when upgrade?

Thanks,
-Jerry

________________________________
From: Pan, Jerry Yun
Sent: Wednesday, September 29, 2010 10:41 AM
To: 'fedora-commons-users@lists.sourceforge.net'
Subject: FW: Low-level storage change questions

Hi,
I have a project under development to use Fedora to store NASA's Earth Science 
data sets, One use case at hand is call to support FTP and other data handling 
server to let user see and download all the files in Fedora repository.

I experimented an approach in which I installed a custom PathAlgorithm and a 
ILowlevelStorage to change the default timestamp based path algorithm, into 
using a PID namespace algorithm, and also changed code in 
DefaultDOManager.java, ILowLevelStorage.java to allow MIME type be used in the 
file name if MIME type is given.  The changed code and fedora server appear to 
work for me fine.  It would also seem to be minimally intrusive to the base 
code, for the added code, although DefaultDOManager.java change is somewhat 
intrusive.

I am not sure the consequence of this change to the integrity to the system (I 
am aware the obvious security by-pass).  Is there any unit test I need to setup 
and run against, to ensure nothing is broken?  Anything else I need to watch 
out for?

A related question is on Akubra, which I saw from the code and heard from other 
people/presentations, how is that related to what I do? There are parallel 
classes named Akubra** to the LowlevelStorage.java and 
LowlevelStorageModule.java, I am not sure how Akubra is or should be used for 
my case.

Thanks for any help

-Jerry


=======================
Jerry Yun Pan, Ph.D
ORNL DAAC
Environmental Science Division
Oak Ridge National Laboratory
Oak Ridge, TN 37831
phone: 678-770-3721

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to