Return-Path: X-Original-To: apmail-jackrabbit-users-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8F84DD4A1 for ; Mon, 9 Jul 2012 15:48:28 +0000 (UTC) Received: (qmail 33296 invoked by uid 500); 9 Jul 2012 15:48:28 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 33223 invoked by uid 500); 9 Jul 2012 15:48:27 -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 Delivered-To: moderator for users@jackrabbit.apache.org Received: (qmail 29886 invoked by uid 99); 9 Jul 2012 15:46:57 -0000 X-ASF-Spam-Status: No, hits=4.7 required=5.0 tests=FREEMAIL_FORGED_REPLYTO,FSL_FREEMAIL_1,FSL_FREEMAIL_2,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 3595.39832.bm@omp1021.mail.ne1.yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1341848786; bh=a+s9LYBRhJn8dxRZ6pMUq9JhJVdrG3Bc8YGjr0ffOYs=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=TvSCtQz0JlWMwfRQZ8bmpaXdYU7eN+8292hKZ+xE4RqutykFw4Aqx/ltFhvbJV9/gt3wdyifhR5f7FI6rHzjyPWaBkp01BCqKGS88H7ojHQNWK451M4YogJXOhXQSiLGHUDqIRlL8QFa9JaruEE8wl7MFF9I5gaQEkrIRc6CUF4= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=WqUc+sQqAn22sF8kopkRipIda/l8eJWsyeRHoEVIdTsvJc02v3KT2oJoZJJUKyiwJyPHtae0i7+vmXmv0uNeogMzyLhFSMTod6FVSef+JKdCie9XH+lPI3l98Def8XPiGbo64Tcp2O3VX1CGpYHvgUAn3Wg7o9XUD/OLgUPFQLY=; X-YMail-OSG: .wFHL7wVM1lIiory8ROjSSF9AJ.GVPDWtBTDZP61ln37J4q cbJZDeBzog2oWswOKfjwmbGkjRnQyxoRqatPdD7tnxHTzuo8buzqlxlwfIkx UhRIctR9PBs6.yIlLc7MdhWOUUCxUd4mNsczNi7qiQkFvUBDK3oKf0CMm6VN lyKx5p.FyLvQYjsa58GOeakp7_LYxq54X5dXuUKIxUmvF9dhjJv5bCZRJGxM _QSBY3qq85eEyqKjUTVGV0t33xixzZ9DYqnNQQcPFh5HNXXRieA1WOAMQoVS Z8R9LbddcUSs59E9k4Xsh0GHP2.TzPBfSnuwxmrUhagPJampGvY_CwzxDbbN Tkbi2Bn26tcei.NpnZ5vYJBXwCPR1Rkefr_xXMwm0_js72f45Iu6_pXpFH9_ lvt6C_qKUpHcYvohA91Zy0E1Zkb5DhtxX X-Mailer: YahooMailWebService/0.8.120.356233 Message-ID: <1341848786.49005.YahooMailNeo@web125601.mail.ne1.yahoo.com> Date: Mon, 9 Jul 2012 08:46:26 -0700 (PDT) From: Dok Sander Reply-To: Dok Sander Subject: SQL -like triggers in JCR To: "users@jackrabbit.apache.org" MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="-1981468715-2098906661-1341848786=:49005" X-Virus-Checked: Checked by ClamAV on apache.org ---1981468715-2098906661-1341848786=:49005 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hello,=0A=0A=A0I'm working on a project that uses JCR and needs to perform = some actions on node add to evaluate the node's validity(This would be some= thing like: Check if this node's property date is within the required date = range). Using SQL I would do this by using triggers or foreign key constrai= nts but I have to yet to find a corresponding feature in JCR. I was first r= ooting for jcr.observation(And more precisely Jackrabbit SynchronousEventLi= stener) but it seems that the listener is not supposed to write to the repo= (At least not on the same session) and it wouldn't help anyway since I need= a way to _cancel_ the node add operation.=0A=0AI could of course override = NodeImpl, do the required validation on=A0 addNode and then call super.addN= ode, or perhaps do some checking on AccessManager. Still, it feels like thi= s functionality something that's missing in JCR. Am I working against the s= pecification here or have I just not found the corresponding features :) ?= =0A=0A-- vdox ---1981468715-2098906661-1341848786=:49005--