From users-return-8333-apmail-jackrabbit-users-archive=jackrabbit.apache.org@jackrabbit.apache.org Fri Jul 18 19:54:51 2008 Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 44329 invoked from network); 18 Jul 2008 19:54:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Jul 2008 19:54:51 -0000 Received: (qmail 34870 invoked by uid 500); 18 Jul 2008 19:54:49 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 34845 invoked by uid 500); 18 Jul 2008 19:54:49 -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 34834 invoked by uid 99); 18 Jul 2008 19:54:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jul 2008 12:54:49 -0700 X-ASF-Spam-Status: No, hits=4.5 required=10.0 tests=HTML_MESSAGE,PLING_QUERY,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.200.175] (HELO wf-out-1314.google.com) (209.85.200.175) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jul 2008 19:53:43 +0000 Received: by wf-out-1314.google.com with SMTP id 26so356798wfd.13 for ; Fri, 18 Jul 2008 12:53:48 -0700 (PDT) Received: by 10.142.81.7 with SMTP id e7mr178604wfb.320.1216410827899; Fri, 18 Jul 2008 12:53:47 -0700 (PDT) Received: by 10.142.246.2 with HTTP; Fri, 18 Jul 2008 12:53:47 -0700 (PDT) Message-ID: <272c2bf60807181253l1e42ba41nab7904b38127bd74@mail.gmail.com> Date: Fri, 18 Jul 2008 15:53:47 -0400 From: "Nick Stuart" To: users@jackrabbit.apache.org Subject: Re: Incremental node type update?!? In-Reply-To: <272c2bf60807181252n37c5e161r900e53ece047d93c@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_41719_16619198.1216410827895" References: <272c2bf60807080733y6e25fe96jbc85666908236960@mail.gmail.com> <272c2bf60807081248q2a1bbf2dn399cea1ee4224c4f@mail.gmail.com> <90a8d1c00807180828v7d233b40hcfcf6066cec5c607@mail.gmail.com> <272c2bf60807181252n37c5e161r900e53ece047d93c@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_41719_16619198.1216410827895 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Blah, nevermind I see the allowUpdate flag on there now....yeah for reading.... On Fri, Jul 18, 2008 at 3:52 PM, Nick Stuart wrote: > Ok, the NodeTypeDefDiff gets me part of the way there, but how do I go > about updating my existing data with that info? JCR-322 just talks about the > inability to perform Non-Trivial updates, which I'm not concerned with at > the moment. > > Will I still need to go through and unregister/register my NodeTypes, and > assume I will loose the data with those? > > Thanks for the links and references! > -Nick > > > >> >> >> trivial node type modifications are already supported. >> for more details see: >> >> http://jackrabbit.apache.org/api-1/org/apache/jackrabbit/core/nodetype/NodeTypeDefDiff.html >> http://issues.apache.org/jira/browse/JCR-322. >> >> here you'll find some sample code using node type definitions in CND/XML >> format: >> http://code.google.com/p/jackrabbit-jcr-demo/wiki/RegisterNodeTypes >> >> if you want to build the node type definition programmatically you can use >> >> http://jackrabbit.apache.org/api/1.4/org/apache/jackrabbit/core/nodetype/NodeTypeManagerImpl.html#registerNodeType(org.apache.jackrabbit.core.nodetype.jsr283.NodeTypeDefinition,%20boolean) >> >> BTW this method will probably be included in the JCR 2.0 API. >> >> cheers >> stefan >> >> >> >> >> regards, toby >> >> >> > >> > > ------=_Part_41719_16619198.1216410827895--