For the API, I'm not sure what the best way to access it is.  I made an
XMLRPC api for it, which is how i access it.  I can send those classes if
you're interested.  If you want to go for the Service approach, I'd be all
for seeing a prototype.  To be honest, I'm not sure which is more "correct".

As for the last mod time and the code you point out, the meta object is
constructed if it needs to be, and has its values set if they are missing.
Does that make sense?  In other words, if the meta object is already there
and properly initialized, the created and modified variables are unused.

However, it appears that the codebase no longer supports the metadata
implementation that I submitted.  See the commit comments
http://cvs.apache.org/viewcvs.cgi/xml-xindice/java/src/org/apache/xindice/co
re/Collection.java?rev=1.14&content-type=text/vnd.viewcvs-markup .  The
comments for putDocument now read 

 /**
    * This is the lowest-level method for storing a record into the backing
store.
    * It does not update non-inline metadata.
    */
   private void putDocument

Kevin and Gary, is there a reason why you disabled all non-inline metadata?


dave


-----Original Message-----
From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 29, 2003 12:01 PM
To: [EMAIL PROTECTED]
Subject: Re: Metadata [Was:RE: [PATCH] XTools adds user.dir to absolute
paths]


Viner, David wrote:

>let me know if my cut at metadata does not support what you need.
>

It does support what I need. I need to expose it via some API though. 
I'm thinking about adding MetaService - is there better way to do it?


>i'm happy
>to modify it or revamp it to fit the needs of the community.
>
>last modified time is there.  i only use it for documents, and haven't
>completely tested it, but it works for me (in my application).  let me know
>if it doesn't make sense.
>

I did not understand how it gets stored into/retrieved from the 
database. Everytime I ask for metadata I get current time. I think the 
problem is that the retreiving part of code is commented out (see lines 
633 - 640):

  
http://cvs.apache.org/viewcvs.cgi/xml-xindice/java/src/org/apache/xindice/co
re/Collection.java?annotate=1.22

And instead, current time is taken every time you get meta. How does it 
work for you?

Vadim


Reply via email to