Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 51632 invoked from network); 13 Nov 2009 22:06:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Nov 2009 22:06:36 -0000 Received: (qmail 96251 invoked by uid 500); 13 Nov 2009 22:06:35 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 96188 invoked by uid 500); 13 Nov 2009 22:06:35 -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 96174 invoked by uid 99); 13 Nov 2009 22:06:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Nov 2009 22:06:35 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mrduguo@gmail.com designates 209.85.218.214 as permitted sender) Received: from [209.85.218.214] (HELO mail-bw0-f214.google.com) (209.85.218.214) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Nov 2009 22:06:27 +0000 Received: by bwz6 with SMTP id 6so4031962bwz.11 for ; Fri, 13 Nov 2009 14:06:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=8mJgX7ZqNM5QYd0ihc1p1+uEH+Pq9YT8bOBusAs0sT0=; b=qspJyhul+N+ULqgkRk7NyvgdGKB1ODMw4gmJhTI7HroY3AppR3BRpisQjgujdtCtTT 37Jg6VfK/V40CCPqmpAeuZTf7iM+SKM567U+YSLPxeQ/o3zMiGus1mRxDWaOqjJ64qse 45hQoqo7NI5z14Av3tFnG/pFz5OZlu25GL8hI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=JzywqOF0+i+/9HEwG52+1AO86PStta/qk8w0EuiHvYBff0Wzm2ItXngvH6Jmy5TZka EFacLwyVTzqhQM9bmnVsVPyzYtcUwI934ywgN1kaj1OkBzBNEJrbLKyuwkv0KIJyBfnW ITyaLa4rdN0qTPzGH1L3ddOjjd9qN9axKCO4k= MIME-Version: 1.0 Received: by 10.103.87.27 with SMTP id p27mr2185277mul.125.1258149967283; Fri, 13 Nov 2009 14:06:07 -0800 (PST) In-Reply-To: References: Date: Fri, 13 Nov 2009 22:06:07 +0000 Message-ID: Subject: Re: David's Model question : nt:unstructured and SNS From: Guo Du To: users@jackrabbit.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 2009/11/13 Fran=E7ois Cassistat : > Is there an easy way to disallow SNS other than defining a new node type = and setting all new nodes in this type, so I can get ItemExistException on = save to prevent SNS from happening? The nt:folder doesn't allow SNS. If your application doesn't like nt:folder, you may create a custom node type like following sample. It's the same as nt:unstructured except the SNS validation. nt:base As this node type could be interesting for some people, it might be good to provide by default. -Guo