Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 98324 invoked from network); 24 Feb 2009 16:01:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Feb 2009 16:01:57 -0000 Received: (qmail 79594 invoked by uid 500); 24 Feb 2009 16:01:56 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 79342 invoked by uid 500); 24 Feb 2009 16:01:55 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 79331 invoked by uid 99); 24 Feb 2009 16:01:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Feb 2009 08:01:55 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of aklimets@day.com designates 207.126.148.183 as permitted sender) Received: from [207.126.148.183] (HELO eu3sys201aog003.obsmtp.com) (207.126.148.183) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 24 Feb 2009 16:01:45 +0000 Received: from source ([209.85.219.165]) by eu3sys201aob003.postini.com ([207.126.154.11]) with SMTP ID DSNKSaQZ09ILenCrSqeokuTDjs/SegVoFDeU@postini.com; Tue, 24 Feb 2009 16:01:25 UTC Received: by ewy9 with SMTP id 9so591954ewy.9 for ; Tue, 24 Feb 2009 08:01:23 -0800 (PST) MIME-Version: 1.0 Received: by 10.210.57.12 with SMTP id f12mr4506277eba.22.1235491283151; Tue, 24 Feb 2009 08:01:23 -0800 (PST) In-Reply-To: <980551.46618.qm@web65414.mail.ac4.yahoo.com> References: <980551.46618.qm@web65414.mail.ac4.yahoo.com> Date: Tue, 24 Feb 2009 17:01:23 +0100 Message-ID: Subject: Re: Retrieving Property Values From: Alexander Klimetschek To: users@jackrabbit.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Feb 24, 2009 at 4:10 PM, Fernando Cabredo wrote: > I would like to retrieve some property values such as File Size, Date Last Modified, etc. > > I was expecting to find in the above code the properties I was looking for but only found > two properties. These are the jcr:created and jcr:properties as shown in my sample output. The node type nt:file has a child node named "jcr:content", which is typically of type "nt:resource" and contains the actual file contents (in the binary jcr:data property) and also the mime type (jcr:mimeType) and last modified (jcr:lastModified) - if available. That depends on who created those nodes in the first place - are you using Jackrabbit's webdav? Have a look at the JCR spec [1], printing it out and reading it is mandatory ;-) The nt:file node type is specified in section 6.7.22.6 [2]. There are also shorter tutorials linked on the web [3] [1] http://jcp.org/en/jsr/detail?id=170 [2] http://www.day.com/specs/jcr/1.0/6.7.22.6_nt_file.html [3] http://wiki.apache.org/jackrabbit/JcrLinks Regards, Alex -- Alexander Klimetschek alexander.klimetschek@day.com