Page 1 of 2
Preserve timestamps whiile importing
PostPosted:Mon Nov 08, 2010 4:47 pm
by jmonin
Hello all,
I want to import a complete folder structure into my newly installed OpenKM. I did it via the Import Tool in the Administration Panel, but the timestamps of every file were set to the date of import. So, is it possible to import files and to preserve their original timestamp? If not, this is a really important feature for migrating users!
Thanks!
Re: Preserve timestamps whiile importing
PostPosted:Wed Nov 10, 2010 6:52 am
by jllort
Actually is not implemented but if you need we can make the changes for it. Contact with us in our website contact form
http://www.openkm.com/Contact
Re: Preserve timestamps whiile importing
PostPosted:Sun Apr 24, 2011 6:09 pm
by NickC
firstly i have to congratulate you on a good application which is getting better as far as I can see.
I think it is up to us, all the prospective users to pinpoint all important parameters that we want to see implemented so that solely by use, this application can compete with the big boys.
However the timestamp problem is one of the matters that does require attention. For example in our case we maintain our file archive under a linux server accessed by samba shares. If one is keen on using correct samba permissions one can attain a good hierarchical type of a database with one's file system stored files. However the advantages of a good DMS system easily surpass that of a simple file system structure except in the case of the timestamp where one can deduce material information on the validity update status and other information of a file simply on information as to when it was drafted and when modified. THerefore you can imagine what a handicap this become once this information is lost in transit to the DMS.
Re: Preserve timestamps whiile importing
PostPosted:Mon Apr 25, 2011 2:38 pm
by jllort
I've added in our issues trackin
http://issues.openkm.com/view.php?id=1626
That not means it'll be yet implemented, when will take some time will doing it. If it was a customer requirement it'll have high priority, otherside we evaluate all features to be implemented and we selecting on each release which will be implemented.
Re: Preserve timestamps whiile importing
PostPosted:Tue Apr 26, 2011 4:52 am
by NickC
OK thanks for the update
Re: Preserve timestamps whiile importing
PostPosted:Sun May 13, 2012 2:58 pm
by fxxxxx
Hi,
will this issue been solved in OpenKM 6.x?
I have had a quick look at the source code, and I think it should not be too difficult to implement for file last changed timestamp.
Changes need to be done in package com.openkm.util.impexp; and the fucntion private static ImpExpStats importDocumentsHelper should initialize the lastChanged property of the file which shall be written, I suppose.
I couldn't test it yet, as on my machine lots of dependencies are missing to compile OpenKm.
BR
F
Re: Preserve timestamps whiile importing
PostPosted:Tue May 15, 2012 6:24 am
by jllort
If you want to collaborate on it take a look at
http://wiki.openkm.com/index.php/Developer_Guide
Re: Preserve timestamps whiile importing
PostPosted:Tue May 15, 2012 6:33 am
by NickC
fxxxxx wrote:Hi,
will this issue been solved in OpenKM 6.x?
I have had a quick look at the source code, and I think it should not be too difficult to implement for file last changed timestamp.
Changes need to be done in package com.openkm.util.impexp; and the fucntion private static ImpExpStats importDocumentsHelper should initialize the lastChanged property of the file which shall be written, I suppose.
I couldn't test it yet, as on my machine lots of dependencies are missing to compile OpenKm.
BR
F
If you can help them please do. It is really a make or break feature as anyone with a serious file system archive will know only too well !
Re: Preserve timestamps whiile importing
PostPosted:Thu May 17, 2012 6:03 am
by jllort
Try configure developer IDE ( it's only reading and doing what's explained there ) and if you got some problem there we will try helping on it like other users. When you will get developer IDE, send a mail to us, with this forum link talking about the feature you want to implementing and we'll try helping you on it.
Re: Preserve timestamps whiile importing
PostPosted:Thu May 17, 2012 6:34 am
by NickC
come on fxxxxx , we are with you
Re: Preserve timestamps whiile importing
PostPosted:Thu May 17, 2012 11:54 pm
by okmuser
Hi Jllort
In the interim is it possible to create a popup dialog to set the time and date manually.
The final version I like to see is a dialog box when importing single documents where you can type the name you like to assign for the document (this can be different to the actual file name), the date and time captured automatically from the document but with possibility to change if required, set the keywords, notes, etc.
If this can be implemented with the current property groups with a single popup dialog, I am into it....
Cheers,
Re: Preserve timestamps whiile importing
PostPosted:Fri May 18, 2012 3:59 pm
by jllort
To talk about it okmuser it'll be better other post, because it's other kind of feature.
Re: Preserve timestamps whiile importing
PostPosted:Fri May 18, 2012 4:51 pm
by fxxxxx
Hi everybody,
so in general I have good news: I can import files to the repository and the last modified timestamp is preserved. Now, I will further refactor, so that it will also work with individual file uploading etc.
Also, I will check the file created timestamp, although I think it is not possible to set it on all OS. If there is a good way, still I am not sure to what it should be set, in general there are three possibilities:
. to the time when the uploaded file was generated initially
. to the time when the file is uploaded
. to the time when the uploaded file was last modified
fxxxxx
Re: Preserve timestamps whiile importing
PostPosted:Fri May 18, 2012 7:02 pm
by fxxxxx
seems like there is a jcr_created property, but it is read only according to this post
http://mail-archives.apache.org/mod_mbo ... ail.com%3E
Re: Preserve timestamps whiile importing
PostPosted:Fri May 18, 2012 9:21 pm
by jllort
To take full control is one of the reasons why in 6.x we take full control of repository, we have been working on own structure and also maintaining jcr compatibility.