Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 25594 invoked from network); 17 Aug 2005 15:43:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Aug 2005 15:43:10 -0000 Received: (qmail 90137 invoked by uid 500); 17 Aug 2005 15:43:07 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 90076 invoked by uid 500); 17 Aug 2005 15:43:07 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 90063 invoked by uid 99); 17 Aug 2005 15:43:06 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Aug 2005 08:43:06 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of ap-cocoon-dev@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Aug 2005 08:43:25 -0700 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1E5Q2O-0002lF-5L for dev@cocoon.apache.org; Wed, 17 Aug 2005 17:41:08 +0200 Received: from ip17-8-59-81.dyndsl.versatel.nl ([81.59.8.17]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Aug 2005 17:41:08 +0200 Received: from unico by ip17-8-59-81.dyndsl.versatel.nl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Aug 2005 17:41:08 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: dev@cocoon.apache.org From: Unico Hommes Subject: Re: [JCR Block] Viewing content of properties and last modified Date: Wed, 17 Aug 2005 17:39:52 +0200 Lines: 73 Message-ID: References: <42FDDA25.9060009@wyona.com> <42FF3C18.3070301@apache.org> <43010AF4.906@wyona.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: ip17-8-59-81.dyndsl.versatel.nl User-Agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317) X-Accept-Language: en-us, en In-Reply-To: X-Enigmail-Version: 0.91.0.0 OpenPGP: url=http://people.apache.org/~unico/KEY Sender: news X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Andreas Hartmann wrote: > Michael Wechner wrote: > >> Sylvain Wallez wrote: >> >>> Michael Wechner wrote: >>> >>>> Hi >>>> >>>> I have two questions re the JCR Block >>>> >>>> 1) How can one actually access the content of properties? >>> >>> >>> >>> >>> >>> You cannot access them directly with the JCRNodeSource, which is >>> meant to represent file-like abstractions which are mapped to >>> nodes. >> >> >> >> >> wouldn't it make sense to actually implement this for JCR source? I >> mean extend it to JCR properties. > > > In my sandbox, I implemented InspectableSource in JCRNodeSource (I > already posted a message some time ago). > > How do you imagine providing access to the properties? > > Property getProperty(...) { return getNode().getProperty(...); } > > doesn't add much value ... > > > >>> Now such a source, you can get the corresponding Node and then do >>> whatever you want with it. >> >> >> yes, I can list all nodes by using the TraversableGenerator, but I >> think it would make sense it the the JCR Source in combination with >> the "FileGenerator" would allow to get the content of a JCR >> property, e.g. >> >> .... > > > That could probably be implemented using an > "InspectableTraversableGenerator" or something like that ... Check out TraversableSourceDescriptionGenerator: http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/generation/TraversableSourceDescriptionGenerator.html Horrible name, I know :-( - -- Unico -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iD8DBQFDA1pHcuec8tVNKAwRAli6AKDP6I9QqDcQvQaIpPsN86ZqNVL5awCg2HoO rie8BlnrJ+MjVB6xvLPZwUM= =ChFN -----END PGP SIGNATURE-----