Hi Mike, Is there an advantage to creating triggers directly instead of using CPF?
Thanks, Tim -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Michael Blakeley Sent: Wednesday, April 29, 2009 12:16 PM To: General Mark Logic Developer Discussion Subject: Re: [MarkLogic Dev General] How to get the size of a particularfilein marklogic server - reg., That's a good idea, Tim. You can also create triggers directly (http://developer.marklogic.com/pubs/4.0/apidocs/Triggers.html), but CPF is usually easier to work with (http://developer.marklogic.com/pubs/4.0/books/cpf.pdf). -- Mike On 2009-04-29 02:49, Tim Meagher wrote: > You can always create a pipeline with the content processing framework to > automatically update the document properties whenever a document is inserted > or updated. This results in creating triggers, eh? > > Respectfully, > > Tim Meagher - AAOM Consulting > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Geert Josten > Sent: Wednesday, April 29, 2009 1:55 AM > To: General Mark Logic Developer Discussion > Subject: RE: [MarkLogic Dev General] How to get the size of a particularfile > in marklogic server - reg., > > Hi Santhosh, > > That is a pity. I am afraid you will have to record it yourself. There is > the last login option, but that records global access, not per document. > > Recording it yourself is not that difficult though. You can add custom > properties to each document, but you will have to do so diligently, to make > sure the property is always available and up to date. I don't think it can > be automated using triggers either.. > > Kind regards, > Geert > >> -----Original Message----- >> From: [email protected] >> [mailto:[email protected]] On Behalf Of >> Santhosh Raj >> Sent: woensdag 29 april 2009 6:50 >> To: General Mark Logic Developer Discussion >> Subject: RE: [MarkLogic Dev General] How to get the size of a >> particular file in marklogic server - reg., >> >> >> Hi Geert, >> >> Thnaks for your reply. >> >> xdmp:document-properties('/path/to/doc') - This >> function by default has only last-modified time, It is not >> showing who has modified the document last. I think it is not >> stored by marklogic. Is there any way to get the >> last-modified user name. >> >> EG: xdmp:document-properties('test2.xml') >> >> --> <prop:properties xmlns:prop="http://marklogic.com/xdmp/property >> --> <http://marklogic.com/xdmp/property> "> >> <prop:last-modified>2009-03-27T12:34:22+05:30</prop:last-modified> >> </prop:properties> >> >> >> Thnaks& Regards, >> Santhosh Rajasekaran >> >> >> >> Geert Josten<[email protected]> >> Sent by: [email protected] >> >> 04/28/2009 08:19 PM >> Please respond to >> General Mark Logic Developer Discussion >> <[email protected]> >> >> To >> General Mark Logic Developer Discussion >> <[email protected]> >> cc >> Subject >> RE: [MarkLogic Dev General] How to get the size of a >> particular file in marklogic server - reg., >> >> >> >> >> >> >>> 1) How to get the size of a particular file in the >>> marklogic server. >> You could calculate the string-length of the serialized >> version of the file, but that will not match the size it >> occupies in the MarkLogic database. That can not be calculated. >> >> For the string-length, you could try to do something like: >> string-length(xdmp:quote(doc('/path/to/doc'))) >> >>> 2) How to get the lastModifiedby , LastModifiedTime >>> (metadata)and etc.. of a particular file in the Marklogic server. >> Lastmodified info should be part of the document-properties: >> >> xdmp:document-properties('/path/to/doc') >> >> Kind regards, >> Geert >> >> >> Drs. G.P.H. Josten >> Consultant >> >> >> http://www.daidalos.nl/<http://www.daidalos.nl/> >> Daidalos BV >> Source of Innovation >> Hoekeindsehof 1-4 >> 2665 JZ Bleiswijk >> Tel.: +31 (0) 10 850 1200 >> Fax: +31 (0) 10 850 1199 >> http://www.daidalos.nl/<http://www.daidalos.nl/> >> KvK 27164984 >> De informatie - verzonden in of met dit emailbericht - is >> afkomstig van Daidalos BV en is uitsluitend bestemd voor de >> geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen, >> verzoeken wij u het te verwijderen. Aan dit bericht kunnen >> geen rechten worden ontleend. >> >> >> >> _______________________________________________ >> General mailing list >> [email protected] >> http://xqzone.com/mailman/listinfo/general >> <http://xqzone.com/mailman/listinfo/general> >> >> ForwardSourceID:NT0000AC42 >> >> =====-----=====-----===== >> Notice: The information contained in this e-mail >> message and/or attachments to it may contain >> confidential or privileged information. If you are >> not the intended recipient, any dissemination, use, >> review, distribution, printing or copying of the >> information contained in this e-mail message >> and/or attachments to it are strictly prohibited. If >> you have received this communication in error, >> please notify us by reply e-mail or telephone and >> immediately and permanently delete the message >> and any attachments. Thank you >> >> >> _______________________________________________ > General mailing list > [email protected] > http://xqzone.com/mailman/listinfo/general > > > _______________________________________________ > General mailing list > [email protected] > http://xqzone.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
