Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 65699 invoked from network); 19 Dec 2008 13:17:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Dec 2008 13:17:41 -0000 Received: (qmail 24682 invoked by uid 500); 19 Dec 2008 13:17:52 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 24657 invoked by uid 500); 19 Dec 2008 13:17:52 -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 24646 invoked by uid 99); 19 Dec 2008 13:17:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Dec 2008 05:17:52 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aklimets@day.com designates 207.126.148.181 as permitted sender) Received: from [207.126.148.181] (HELO eu3sys201aog001.obsmtp.com) (207.126.148.181) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 19 Dec 2008 13:17:31 +0000 Received: from source ([209.85.198.241]) by eu3sys201aob001.postini.com ([207.126.154.11]) with SMTP ID DSNKSUue1FvdX8LhjaIXXZ5ZRkfSIg6iAKMQ@postini.com; Fri, 19 Dec 2008 13:17:11 UTC Received: by rv-out-0708.google.com with SMTP id k29so1032246rvb.8 for ; Fri, 19 Dec 2008 05:17:07 -0800 (PST) Received: by 10.141.98.18 with SMTP id a18mr1563134rvm.194.1229692627517; Fri, 19 Dec 2008 05:17:07 -0800 (PST) Received: by 10.140.132.18 with HTTP; Fri, 19 Dec 2008 05:17:07 -0800 (PST) Message-ID: Date: Fri, 19 Dec 2008 14:17:07 +0100 From: "Alexander Klimetschek" To: users@jackrabbit.apache.org Subject: Re: non-hierarchical content In-Reply-To: <6c59d89a0812190454v2ba82d85qd39dd25b4833ba73@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6c59d89a0812110640h5a8a6c41g42ef20c6a24a2142@mail.gmail.com> <6c59d89a0812190454v2ba82d85qd39dd25b4833ba73@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org On Fri, Dec 19, 2008 at 1:54 PM, Torsten Curdt wrote: >> (standard property names for this purpose, will be >> included as mix:title mixin in JCR 2.0) for the tags. > > Why "mix:title"? Because it gives you mainly the jcr:title property and the additional, but probably less uses jcr:description property. See section 4.7.23.8 of the current JSR-283 preview. > So would advice against using the UUIDs in the multivalue field? You could and you can have referential integrity with it (using the REFERENCE property type) - to already answer your question about ref. integrity from below. But as JCR does not have something like a "On Delete Cascade", you will have to manually remove all the references to a target node before you can delete it. But why do you need referential integrity for tagging? It's not a critical thing. And imagine you have different rights for tags and content, ie. there is some content that a tagging administrator (aka the "librarian") cannot access (eg. the personal files of the boss). What if he wants to delete a tag (aka also delete all its references on the content)? He can't, so you need a solution for a smooth transition anyway (mark for delete and delete later when the content owner touches his content for example). > But that is awkward. You will end up with tags like this > > /tags/oldname/my:title = 'newname' > > That's confusing more than it helps. Why? The title could also be something that does not fit into the JCR node name constraints, eg. "Apple Pie". > While we are on that: As JCR quite a bit like filesystem - are there > native ways of doing a "symbolic link"? JCR 2.0 will introduce "shareable nodes" which can be seen as hard links. For symbolic links you have to resolve them yourself (but you can use the PATH property type to ensure the character constraints for JCR paths). > And if so - how does that work with versioned resources? Not sure, but I think it will always reference the current version of a target node. > Hm ... that's a lot of manual work :-/ > > I think I prefer the lazy show of tags and them prune on the next write maybe. > So the "weak reference" model. But lack of repository based > referential integrity assurance is quite a turn off. Have you looked at rule 5 of David's model: http://wiki.apache.org/jackrabbit/DavidsModel#head-ed794ec9f4f716b3e53548be6dd91b23e5dd3f3a It explains why in a JCR you should always try to avoid referential integrity, because it will always put stones in the way for all the other benefits you get by using JCR. Regards, Alex -- Alexander Klimetschek alexander.klimetschek@day.com