Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 53397 invoked from network); 13 Jul 2006 09:40:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Jul 2006 09:40:34 -0000 Received: (qmail 13759 invoked by uid 500); 13 Jul 2006 09:40:32 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 13734 invoked by uid 500); 13 Jul 2006 09:40:32 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 13725 invoked by uid 99); 13 Jul 2006 09:40:32 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Jul 2006 02:40:32 -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 gcaj-jackrabbit-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; Thu, 13 Jul 2006 02:40:31 -0700 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1G0xg2-0003DF-Ck for dev@jackrabbit.apache.org; Thu, 13 Jul 2006 11:40:10 +0200 Received: from gateway.subshell.com ([212.79.22.193]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 Jul 2006 11:40:10 +0200 Received: from kiehl by gateway.subshell.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 Jul 2006 11:40:10 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: dev@jackrabbit.apache.org From: Christoph Kiehl Subject: Re: Modifying node types Date: Thu, 13 Jul 2006 11:42:24 +0200 Lines: 24 Message-ID: References: <90a8d1c00607130207v629730f3t57780e24a6c739d5@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: gateway.subshell.com User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) In-Reply-To: <90a8d1c00607130207v629730f3t57780e24a6c739d5@mail.gmail.com> Sender: news X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Stefan Guggisberg wrote: >> in our current system we are able to extend nodetypes by adding >> properties or >> nodes after the nodetype has been initially created. These >> properties/childnodes >> have to be non-mandatory. >> As of now Jackrabbit doesn't support this. Are there any reason >> besides 'it's >> just not implemented' why this is currently not possible? > > trivial changes are supported, i.e. adding non-mandatory properties for > example > should be fine. please take a look at the implementation of > NodeTypeRegistry.reregister() > and the javadoc of NodeTypeDefDiff. Very nice! Didn't know that. How am I supposed to use the NodeTypeRegistry? I could use Workspace.getNodeTypeManager() cast it to NodeTypeManagerImpl and call getNodeTypeRegistry. But is there a better way to get the NodeTypeRegistry without knowing about NodeTypeManagerImpl? Thanks, Christoph