You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by "Kimpton,C (Chris)" <Ki...@rabo-bank.com> on 2001/05/11 16:50:06 UTC

Are there Hooks into the document checkin process?

Hi,

We want to link together lucene and slide for our project - such that
documents checked in through slide are indexed.

Are there any standard hooks in the slide API to allow this?


I can see the following options - 
. subclass webdavservlet and add our extra processing
. do a custom version of webdavservlet with our extra processing
. do a custom/extended store that has our extra processing.

Where the extra processing involves taking the metatags of the document and
sticking that into a lucene document to get the document indexed based on
its tags.

Thanks in advance for any suggestions/recommendations,
Chris

================================================================================================
This electronic message (email) and any attachments to it are subject to copyright and are sent for the personal attention of the addressee. Although you may be the named recipient, it may become apparent that this email and its contents are not intended for you and an addressing error has been made. This email may include information that is legally privileged and exempt from disclosure. If you have received this email in error, please advise us immediately and delete this email and any attachments from your computer system.Rabobank International is the trading name of Coöperatieve Centrale Raiffeisen-Boerenleenbank B.A. which is incorporated in the Netherlands. Registered with the Registrar of Companies for England & Wales No. BR002630 and regulated by the SFA for the conduct of investment business in the UK.

The presence of this footnote also confirms that this email has been automatically checked by Rabobank International for the presence of computer viruses prior to it being sent, however, no guarantee is given or implied that this email is virus free upon delivery.



Re: Are there Hooks into the document checkin process?

Posted by Remy Maucherat <re...@apache.org>.
> Hi,
>
> We want to link together lucene and slide for our project - such that
> documents checked in through slide are indexed.
>
> Are there any standard hooks in the slide API to allow this?
>
>
> I can see the following options -
> . subclass webdavservlet and add our extra processing
> . do a custom version of webdavservlet with our extra processing
> . do a custom/extended store that has our extra processing.
>
> Where the extra processing involves taking the metatags of the document
and
> sticking that into a lucene document to get the document indexed based on
> its tags.

You can use the ContentInterceptor class. Extend it, and register the
interceptor by adding a <content-interceptor class="Foo"/> in the namespace
configuration element in Domain.xml.

It allows to easily access all the metadata.
I think here you would like to use the postStoreContent call and look at
what is in the RevisionDescriptor.

Remy