Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 24343 invoked from network); 5 Aug 2005 14:07:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Aug 2005 14:07:20 -0000 Received: (qmail 54235 invoked by uid 500); 5 Aug 2005 14:07:19 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 54195 invoked by uid 500); 5 Aug 2005 14:07:18 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 54182 invoked by uid 99); 5 Aug 2005 14:07:18 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Aug 2005 07:07:18 -0700 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=DNS_FROM_RFC_POST,FROM_ENDS_IN_NUMS,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of aok123@bellsouth.net designates 205.152.59.64 as permitted sender) Received: from [205.152.59.64] (HELO imf16aec.mail.bellsouth.net) (205.152.59.64) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Aug 2005 07:07:09 -0700 Received: from ibm56aec.bellsouth.net ([65.80.200.112]) by imf16aec.mail.bellsouth.net with ESMTP id <20050805140717.FAEW16961.imf16aec.mail.bellsouth.net@ibm56aec.bellsouth.net> for ; Fri, 5 Aug 2005 10:07:17 -0400 Received: from [172.16.1.39] (really [65.80.200.112]) by ibm56aec.bellsouth.net with ESMTP id <20050805140716.SWRE8550.ibm56aec.bellsouth.net@[172.16.1.39]> for ; Fri, 5 Aug 2005 10:07:16 -0400 Message-ID: <42F37293.4020200@bellsouth.net> Date: Fri, 05 Aug 2005 10:07:15 -0400 From: Alex Karasulu User-Agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Apache Directory Developers List Subject: Re: searchable java context implementation References: <42F22DA9.2090308@cornell.edu> <1123184322.29117.6.camel@wkslx01.iktek.com> In-Reply-To: <1123184322.29117.6.camel@wkslx01.iktek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Aaron, I'm not sure why you want to do this with LDAP search filters. Can you=20 clarify what you want to do here essentially abstracting it from your=20 specific application. Meaning what additional feature are you expecting = from a search filter? Thanks, Alex Emmanuel Lecharny wrote: >On Thu, 2005-08-04 at 11:00 -0400, Aaron Hamid wrote: > =20 > >>Hi, >> >> I am intending to write a small service which maintains a list of "ta= sk" entries which can be submitted, acknowledged, and searched. The entr= ies are going to be a fairly simple flat data structure with things like = 'submittor', 'recipient', 'submission date', 'message', etc. Although I = could write a search API which searches on individual fields, or perhaps = a slightly more robust API that searches on a union of fields with implic= it AND/OR semantics, I think it would be much more elegant to provide som= ething like rfc 2254 ldap search s-expressions. My question is: does any= body know of a searchable Java context implementation? I have tried Mirr= orCtx, and although it does have the nice feature of persistence, it does= not implement a searchable API (DirContext). Actually I think there are= several shallow "java" context implementations (ubiquitously seen in app= lications like Tomcat, etc.), but I have not found any that provide searc= h functionality. I'm thinking something=20 >> =20 >> > s > =20 > >>imple like commons-beanutils property syntax, or OGNL property syntax. >> >>e.g. dirctx.bind(name, bean, ...); dirctx.search("java:/", "(|(&(color=3D= red)(price>2)))(shape=3Dround)(name=3D*foo*)))"); >> >>It seems like a searchable java context implementation would be useful = in many areas. >> =20 >> > >Don't know if it's really related to a LDAP filter as described in RFC >2254, but if you think that it is, you may look here : > >http://svn.apache.org/viewcvs.cgi/directory/shared/ldap/trunk/common/src= /antlr > >where you will find the Filter parser and here : > >http://svn.apache.org/viewcvs.cgi/directory/shared/ldap/trunk/common/ > >if you want to generate the java files and compile it. > >You may use it as a basis for what you want to do. > >However, I'm not sure that is what you want (was it you on IRC >yesturday?). Let us know ! > >Emmanuel L=C3=A9charny > > > > > =20 >