Return-Path: Delivered-To: apmail-incubator-abdera-dev-archive@locus.apache.org Received: (qmail 35728 invoked from network); 28 Apr 2008 22:48:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Apr 2008 22:48:44 -0000 Received: (qmail 51056 invoked by uid 500); 28 Apr 2008 22:48:46 -0000 Delivered-To: apmail-incubator-abdera-dev-archive@incubator.apache.org Received: (qmail 51028 invoked by uid 500); 28 Apr 2008 22:48:46 -0000 Mailing-List: contact abdera-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: abdera-dev@incubator.apache.org Delivered-To: mailing list abdera-dev@incubator.apache.org Received: (qmail 51017 invoked by uid 99); 28 Apr 2008 22:48:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Apr 2008 15:48:46 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [63.246.7.16] (HELO mail.mulesource.com) (63.246.7.16) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Apr 2008 22:47:59 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.mulesource.com (Postfix) with ESMTP id F398812F0001 for ; Mon, 28 Apr 2008 17:48:11 -0500 (CDT) X-Virus-Scanned: amavisd-new at X-Spam-Score: 0.086 X-Spam-Level: Received: from mail.mulesource.com ([127.0.0.1]) by localhost (mail.mulesource.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id msCWOGJzXUds for ; Mon, 28 Apr 2008 17:48:08 -0500 (CDT) Received: from [192.168.1.100] (adsl-71-141-131-212.dsl.snfc21.pacbell.net [71.141.131.212]) by mail.mulesource.com (Postfix) with ESMTP id D3E6829000B9 for ; Mon, 28 Apr 2008 17:48:07 -0500 (CDT) Message-ID: <48165424.1090204@mulesource.com> Date: Mon, 28 Apr 2008 15:48:04 -0700 From: Dan Diephouse User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: abdera-dev@incubator.apache.org Subject: Re: dynamic collections References: <20080428201336.740E.UCHIDA.HITOSHI@canon.co.jp> <842030.18018.qm@web39206.mail.mud.yahoo.com> <481634A7.4060305@gmail.com> <4816489D.1090005@mulesource.com> <48164C3C.2030606@gmail.com> In-Reply-To: <48164C3C.2030606@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Flag: NO X-Old-Spam-Status: No, score=0.086 tagged_above=-10 required=6.6 tests=[AWL=-0.867, BAYES_00=-2.599, FH_HOST_EQ_PACBELL_D=1.67, RCVD_IN_PBL=0.905, RCVD_IN_SORBS_DUL=0.877, RDNS_DYNAMIC=0.1] I think I'm suggesting that it makes sense to do this by default and have a sensible default implementation in AbstractCollectionAdapter. James M Snell wrote: > There's no reason that the getServiceDocument method couldn't be > overridden so that it defers to a Collection Adapter. > > - James > > Dan Diephouse wrote: >> What about >> 1. Let the CollectionAdapter itself write to the services document >> whatever it wants. >> 2. Add a switch to AbstractProvider which turns the service writing >> on/off >> Would that solve your problem? >> >> Dan >> >> David Primmer wrote: >>> But what about the issue of practicality of service docs for huge sets >>> of dynamic collections? >>> >>> davep >>> >>> On Mon, Apr 28, 2008 at 1:33 PM, James M Snell >>> wrote: >>> >>>> In the Lotus Connections blogs implementation, I subclassed the >>>> Provider and >>>> re-implemented the code that provided the service document. I have a >>>> EntityProvider implementation that writes out the service document. >>>> >>>> - James >>>> >>>> >>>> >>>> David Primmer wrote: >>>> >>>> >>>>> I also had this same issue when the collections are dynamic and would >>>>> generate a practically unusable service doc. >>>>> >>>>> /blabla/:collection/:entry >>>>> >>>>> There's now way that I know of to create a service doc for this feed >>>>> if :collection is one of a large number records in a database. Why >>>>> would anyone use the service doc it if it was more than just a >>>>> handful? Service docs need to contain real working links, not uri >>>>> templates. >>>>> >>>>> Abdera's method of creating service docs is to call getHref for each >>>>> adapter that is added to the workspace. However, when an adapter >>>>> handles getHref, it is generating one url, not generating all the >>>>> entries in a feed. It can only return one url and that's going to be >>>>> some form of template. Does it make sense to offer another >>>>> implementation of AbstractProvider.getServiceDocument? >>>>> >>>>> davep >>>>> >>>>> On Mon, Apr 28, 2008 at 11:28 AM, M Harris >>>>> wrote: >>>>> >>>>> >>>>>> How can one create dynamic collections with Abdera and create the >>>>>> >>>> service document? Perhaps, a hierarchy. Instead of having a single >>>> static >>>> collection defined, the user can create their own collections. How >>>> would >>>> one create a collection? Should they post a collection element or >>>> atom >>>> entry? >>>> >>>>>> >>>>>> >>>>>> --------------------------------- >>>>>> Be a better friend, newshound, and know-it-all with Yahoo! >>>>>> Mobile. Try >>>>>> >>>> it now. >>>> >>>>> >> >> -- Dan Diephouse MuleSource http://mulesource.com | http://netzooid.com