Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 90499 invoked from network); 15 Aug 2005 21:36:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Aug 2005 21:36:54 -0000 Received: (qmail 67394 invoked by uid 500); 15 Aug 2005 21:36:51 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 67321 invoked by uid 500); 15 Aug 2005 21:36:51 -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 67307 invoked by uid 99); 15 Aug 2005 21:36:50 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Aug 2005 14:36:50 -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 michael.wechner@wyona.com designates 195.226.6.68 as permitted sender) Received: from [195.226.6.68] (HELO mx1.wyona.com) (195.226.6.68) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Aug 2005 14:37:09 -0700 Received: from 88.9.78.83.cust.bluewin.ch ([83.78.9.88] helo=[192.168.2.100]) by mx1.wyona.com with asmtp (Exim 3.35 #1 (Debian)) id 1E4mdS-0008JC-00 for ; Mon, 15 Aug 2005 23:36:46 +0200 Message-ID: <43010AF4.906@wyona.com> Date: Mon, 15 Aug 2005 23:36:52 +0200 From: Michael Wechner User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050319 X-Accept-Language: en-us, de, fr-ch, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: [JCR Block] Viewing content of properties and last modified References: <42FDDA25.9060009@wyona.com> <42FF3C18.3070301@apache.org> In-Reply-To: <42FF3C18.3070301@apache.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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. > 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. .... > >> 2) I don't fully understand how lastModified is being handled. >> From looking at the implementation it seems to me that only >> "content nodes" can have a lastModified, but I probably misunderstand >> something, right? > > > > The idea here is that the node holding the content also holds the > property that gives the last modification. The distinction between > file node and content node is more a point of view, and a given node > should be able to have both roles. nodes which don't have the content role, but maybe are just a "collection" should also have a last modified, because they might received a new child, right. It seems to me otherwise for instance the TraversableGenerator won't reread the node show the new children, or am I confusing something. Thanks Michi -- Michael Wechner Wyona - Open Source Content Management - Apache Lenya http://www.wyona.com http://lenya.apache.org michael.wechner@wyona.com michi@apache.org