Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 79866 invoked from network); 24 Feb 2009 15:10:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Feb 2009 15:10:57 -0000 Received: (qmail 862 invoked by uid 500); 24 Feb 2009 15:10:55 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 851 invoked by uid 500); 24 Feb 2009 15:10: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 840 invoked by uid 99); 24 Feb 2009 15:10:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Feb 2009 07:10:55 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [76.13.9.34] (HELO web65414.mail.ac4.yahoo.com) (76.13.9.34) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 24 Feb 2009 15:10:47 +0000 Received: (qmail 49684 invoked by uid 60001); 24 Feb 2009 15:10:24 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1235488223; bh=tiUrgcHzlSCzGGa6rtZuhj9fTPW+YKk8ldAEW55CwlU=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=SUoO/lANar/2yOIWxIaZp5MMky+CwI+jefd2Ws7Gp8hvu5pmiIR3nRjU8U1pYJF8NaYy+exLmkevIYSag/EadNPirY/rRawMUQiVx5afT1nQmU99fWdwubTZgnpyySDQxIJie2qHgUGuW27hC0w+9uHEEdm6whiJXNa3fWGw2U4= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=3iSGKPDmk+c4Oq6mJw7wcqMfWK7EIcpWWNNW8IR4qm2Z5JLy6cmEvJyKOIWX/vOwmzEnHHYD8/yGw/+sYOg8sWwe40k1rRj/ud9ofEZByhCV9ftvc1+Sug6mPA7FcixW4B76sYeK3NnwK7Cd3lOnritESzjWG7gRdWi97nV/bwo=; Message-ID: <980551.46618.qm@web65414.mail.ac4.yahoo.com> X-YMail-OSG: pww3pFAVM1kw4ZxqVBXUqQq7xMtvuQTm8REl.7XP6jnIPKQJUzDlsP530QCulpmVMh5dymZ9EY5cT_ecLYBHbOEuZBgPCm83JrpMKTWMwE7uxMqi95RRLb1nTWRxVrAUCxkq95UjuWoXdymBElwNYXnENM_b3o8JvKil8WkKUablqs8VjI6JOgDpFoLstw-- Received: from [121.96.235.18] by web65414.mail.ac4.yahoo.com via HTTP; Tue, 24 Feb 2009 07:10:23 PST X-Mailer: YahooMailRC/1156.82 YahooMailWebService/0.7.289.1 Date: Tue, 24 Feb 2009 07:10:23 -0800 (PST) From: Fernando Cabredo Subject: Retrieving Property Values To: users@jackrabbit.apache.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-2034170052-1235488223=:46618" X-Virus-Checked: Checked by ClamAV on apache.org --0-2034170052-1235488223=:46618 Content-Type: text/plain; charset=us-ascii Hi, I am a developer based here in the Philippines and I am new to Apache Jackrabbit. I would like to retrieve some property values such as File Size, Date Last Modified, etc. You may take a look at the following code fragments which I am using for retrieving the property values: PropertyIterator propIter = n.getProperties(); while(propIter.hasNext()){ Property prop = propIter.nextProperty(); NodeProperty nodeproperty = new NodeProperty(); nodeproperty.setPropertyname(prop.getName()); nodeproperty.setPropertyvalue(prop.getValue().getString()); System.out.println("Property Name --->"+nodeproperty.getPropertyname()); System.out.println("Property Value --->"+nodeproperty.getPropertyvalue()); aList.add(nodeproperty); } Output: Property Name --->jcr:created Property Value --->2009-02-24T19:51:44.765+08:00 Property Name --->jcr:primaryType Property Value --->nt:file 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. I hope somebody may help me on this. Thank you very much. Fernando Cabredo --0-2034170052-1235488223=:46618--