Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 60406 invoked from network); 28 Sep 2010 21:39:39 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 Sep 2010 21:39:39 -0000 Received: (qmail 66909 invoked by uid 500); 28 Sep 2010 21:39:38 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 66866 invoked by uid 500); 28 Sep 2010 21:39:38 -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 66852 invoked by uid 99); 28 Sep 2010 21:39:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Sep 2010 21:39:38 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of justinedelson@gmail.com designates 209.85.216.177 as permitted sender) Received: from [209.85.216.177] (HELO mail-qy0-f177.google.com) (209.85.216.177) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Sep 2010 21:39:29 +0000 Received: by qyk34 with SMTP id 34so194909qyk.1 for ; Tue, 28 Sep 2010 14:39:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=v1ktlGSTpo/2eQ68Js0gSrQxMdckmPrAxqKQ60g0Vjw=; b=uEN0dKj3otMyOsV/lM7eWS5+QyPIw2RjIbHCkCekOCMfGhXaXQzK/HMX7epQZ2d5n1 EPwQjp+Nc2bBX0I0CpYkAEc6ap/I4sjRvSTgNdwqtwHn/Vo9pxV6BqkKwHocgpnGXw93 VUiS/YS3etuJroT5lXI77HO8YWyuuH50iYKhs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=iegxCR9cfwyjywTeD9y7eo25ORamhOTr4Lk0XkyjjlW47hPtRQIGnrphjGqFtyqIbW LerDRsWuNCnbW4v8vNxXM3teWA/ZocQxBp2IqC9PnpnQuV8J+w+6GhOy4K3QYH7MwQuY +IOgEHVPy49yYvSsjBpl39wU3WHay2yeoJn3g= Received: by 10.224.72.37 with SMTP id k37mr373839qaj.398.1285709948008; Tue, 28 Sep 2010 14:39:08 -0700 (PDT) Received: from Justin-Edelsons-iMac.local (ool-44c6554e.dyn.optonline.net [68.198.85.78]) by mx.google.com with ESMTPS id t18sm8515241qco.44.2010.09.28.14.39.06 (version=SSLv3 cipher=RC4-MD5); Tue, 28 Sep 2010 14:39:07 -0700 (PDT) Message-ID: <4CA2607A.5070707@gmail.com> Date: Tue, 28 Sep 2010 17:39:06 -0400 From: Justin Edelson Reply-To: justin@justinedelson.com User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 MIME-Version: 1.0 To: users@jackrabbit.apache.org Subject: Re: Question about updating node types References: <9DA7B188-961B-492F-BC4F-8F115306C143@yahoo.com> <4CA24F9C.70505@gmail.com> <7628C037-93BB-490A-ACF2-E7E4EBC7EBEF@yahoo.com> In-Reply-To: <7628C037-93BB-490A-ACF2-E7E4EBC7EBEF@yahoo.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org This is the easiest method: http://jackrabbit.apache.org/api/2.1/org/apache/jackrabbit/commons/cnd/CndImporter.html#registerNodeTypes(java.io.Reader, java.lang.String, javax.jcr.nodetype.NodeTypeManager, javax.jcr.NamespaceRegistry, javax.jcr.ValueFactory, boolean) Pass true as the last parameter. I should point out that this only works with Jackrabbit 2.0 and above. Justin On 9/28/10 5:04 PM, Zoltan Farkas wrote: > Cool, how can I achieve that? Can you point me to the API, or a sample? > > Thank you > > --zoly > > On Sep 28, 2010, at 4:27 PM, Justin Edelson wrote: > >> Yes, although not if the property is mandatory. >> >> On 9/28/10 4:01 PM, Zoltan Farkas wrote: >>> Can a node type be updated ? (add a property) >>> >>> --zoly >>