Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 10346 invoked from network); 17 Oct 2008 07:33:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Oct 2008 07:33:00 -0000 Received: (qmail 6399 invoked by uid 500); 17 Oct 2008 07:33:01 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 6368 invoked by uid 500); 17 Oct 2008 07:33:01 -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 6357 invoked by uid 99); 17 Oct 2008 07:33:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Oct 2008 00:33:01 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of christophe.lombart@gmail.com designates 209.85.198.229 as permitted sender) Received: from [209.85.198.229] (HELO rv-out-0506.google.com) (209.85.198.229) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Oct 2008 07:31:54 +0000 Received: by rv-out-0506.google.com with SMTP id k40so384255rvb.31 for ; Fri, 17 Oct 2008 00:32:32 -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:to :subject:in-reply-to:mime-version:content-type:references; bh=2M9gSJtfK1vFoBpZ6twIvWD8a/3bvGQ85+k0RpzVDrU=; b=ImsaDEX0GEBFTbJx/YFtFrXQC/Mwd23JRI3RbMbJzJgJOauDjRP3iw9PkCmMvBaptb 4HfDcEPCwbXwnap+FxVsr24M0BxPcFeLNYuOZfXxSP3G4iTVyDWjWQaPCXZzKqf+ZfSh Qt3CMMfHqYHWniLMoPnGoSER31HrxdMFKQw5A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=mhjovpEzCGVcf28/WGZMZxWmxwrZQQ9FIitOrjGpSgY2VTYfJ6I3Sv3pMwvAZu8Wid Zebo6kTEEsZ48Bgp3ujbBXvpju9DrdQoTkR6PNjOuthgjnoJeGfHOGEFxwqgzZWnFYzw 7B3V0K3jreUS/2goLvKftye/IcTARiuOx4Ym4= Received: by 10.142.223.4 with SMTP id v4mr1229471wfg.48.1224228752154; Fri, 17 Oct 2008 00:32:32 -0700 (PDT) Received: by 10.142.50.10 with HTTP; Fri, 17 Oct 2008 00:32:32 -0700 (PDT) Message-ID: <3b728ee90810170032r7f6adbaatddcab9f5c555818f@mail.gmail.com> Date: Fri, 17 Oct 2008 09:32:32 +0200 From: "Christophe Lombart" To: dev@jackrabbit.apache.org Subject: Re: OCM:Supporting nested properties for the FilterImpl In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_46090_14223137.1224228752125" References: <3b728ee90810162356j2f9aa41ocd48f8c449cfb9b0@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_46090_14223137.1224228752125 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline ok. Thanks for your help. Christophe On Fri, Oct 17, 2008 at 09:27, Boni Gopalan (BioImagene) < Boni.G@bioimagene.com> wrote: > The Mapping file gives a good handle on guessing what the equivalent > node or property name is. I think the current mapping file has all the > information needed to do an OGNL like traversing of the Nodes. Will try > out a testcase to understand the challenges. > > -----Original Message----- > From: Christophe Lombart [mailto:christophe.lombart@gmail.com] > Sent: 17 October 2008 12:26 > To: dev@jackrabbit.apache.org > Subject: Re: OCM:Supporting nested properties for the FilterImpl > > At present, this not possible but I think it should be nice to > implement > it. > > See the issue http://issues.apache.org/jira/browse/JCR-878 (see the > latest > point in this issue). We can split this issue into smaller ones . > > On Fri, Oct 17, 2008 at 08:01, Boni Gopalan (BioImagene) < > Boni.G@bioimagene.com> wrote: > > > The Filter is a nifty interface that allows hassle free construction > of > > JCR query strings through a Criterion() like methods. The default > > implementation does a remarkably accurate job of building queries that > > are one level deep. It would be great if the queries can be any level > > deep so that one can fetch back any specific 'Object' representation > of > > a node or a property. > > > > > > > > Eg. > > > > > > > > Foo{ > > > > String id; > > > > List myBar; > > > > } > > > > > > > > Bar{ > > > > String id; > > > > String name; > > > > } > > > > > > > > Filter(Foo.class); [Not exactly but you get the idea!] > > > > Filter.addEqualsTo("myBar[].name"," C&A's Pub Pub"); > > > > > > > > Ocm.getObjects(Filter) , fetches all the Foos with a nested property > > name="C&A's Pub" > > > > > > > > Any thoughts? Is it possible with the current API?, > > > > > > > > Thanks > > > > Boni > > > > > > > > > > > > > > > > Boni Gopalan > > Manager Engineering > > BioImagene, Pune > > > > +91-206-609-6579(O) > > +91-992-369-9356(C) > > > > > > > > > ------=_Part_46090_14223137.1224228752125--