Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 15487 invoked from network); 28 Jan 2009 10:40:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Jan 2009 10:40:11 -0000 Received: (qmail 25514 invoked by uid 500); 28 Jan 2009 10:40:09 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 25489 invoked by uid 500); 28 Jan 2009 10:40:09 -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 25478 invoked by uid 99); 28 Jan 2009 10:40:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Jan 2009 02:40:08 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [62.149.128.201] (HELO smtp1.aruba.it) (62.149.128.201) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 28 Jan 2009 10:40:01 +0000 Received: (qmail 31285 invoked by uid 89); 28 Jan 2009 10:39:38 -0000 Received: from unknown (HELO webmaildh4.aruba.it) (alessandro.cosenza@itkey.it@10.10.10.98) by smtp1.aruba.it with SMTP; 28 Jan 2009 10:39:38 -0000 Received: from 88.59.97.249 by HTTP Sender: alessandro.cosenza@itkey.it From: "Alessandro Cosenza" To: users@jackrabbit.apache.org Subject: Re: CND file and Node.addMixin questions X-Mailer: Quality Web Email v3.1s X-Originating-IP: 88.59.97.249 Date: Wed, 28 Jan 2009 11:39:38 +0100 Message-id: <498035ea.27.708e.199821409@webmaildh4.aruba.it> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: smtp1.aruba.it 1.6.2 0/1000/N X-Virus-Checked: Checked by ClamAV on apache.org ok thanks, i thought that due to these mandatory but not autocreated properties in mix:versionable somewhere i had to initialize these properties. thanks. ----- Original Message ----- Da : Alexander Klimetschek A : users@jackrabbit.apache.org Oggetto : Re: CND file and Node.addMixin questions Data : Wed, 28 Jan 2009 11:34:59 +0100 > On Wed, Jan 28, 2009 at 10:58 AM, Alessandro Cosenza > wrote: > > thanks stefan. > > but now > > i have > > [dms:document] > mix:accessControl > > + dms:content (dms:resource) > > > > ... > > > > [dms:resource] > mix:versionable > > > > > > when i create a node with dms:document type, > > i have to initialize the mandatory properties inherited > > from mix:accessControl, otherwise it throws an > > exception. i see that mix:versionable has also some > > mandatory properties not autocreated > > such as jcr:versionHistory and jcr:baseVersion, but when > > i create the > > dms:content child node i don't initialize them and it > > doesnt't throw any exception! it's strange. > > do you understand? please help me. > > mix:versionable is kind of a "marker" type that is handled > automatically by the repository, therefore you don't have > to manually handle with jcr:versionHistory and co (Version > and VersionHistory interfaces are built-in to the JCR > API). > > mix:accessControl on the other hand is not automatically > handled by the repository, so you have to add the > properties / child nodes for it manually. > > Regards, > Alex > > -- > Alexander Klimetschek > alexander.klimetschek@day.com