Re: collection.getCollectionMeta().getLastModifiedTime()
Natalia Shilenkova <[email protected]>
| Newsgroups | gmane.text.xml.xindice.devel |
|---|---|
| Message-ID | <[email protected]> |
Well, my guess is that last modified time for collection works similarly to file system directory -- it gets updated whenever an entry added or deleted, but modifying existing file does not change directory last modified time. Interestingly enough, right now this behavior is inconsistent -- core.Collection has updateDocument() method that changes collection's last modified time. Can you use custom meta data for collection to track the changes? Regards, Natalia On Nov 30, 2009, at 7:39 AM, Ferenc Pápai wrote: > Hello, > > collection.getCollectionMeta().getLastModifiedTime() method returns the time instant when the last NEW entry has been added to a collection. > It does not cover case when the collection is updated (existent data is changed). > > As a user I'd be more interested when *anything* has been changed in a given collection. > > Is there a reason behind the current behavior? > > thanks, > Ferenc >