Return-Path: X-Original-To: apmail-abdera-user-archive@www.apache.org Delivered-To: apmail-abdera-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9C1A09A2E for ; Mon, 26 Mar 2012 15:37:45 +0000 (UTC) Received: (qmail 49151 invoked by uid 500); 26 Mar 2012 15:37:45 -0000 Delivered-To: apmail-abdera-user-archive@abdera.apache.org Received: (qmail 49096 invoked by uid 500); 26 Mar 2012 15:37:45 -0000 Mailing-List: contact user-help@abdera.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@abdera.apache.org Delivered-To: mailing list user@abdera.apache.org Received: (qmail 49088 invoked by uid 99); 26 Mar 2012 15:37:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Mar 2012 15:37:45 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dventimi@gmail.com designates 209.85.220.170 as permitted sender) Received: from [209.85.220.170] (HELO mail-vx0-f170.google.com) (209.85.220.170) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Mar 2012 15:37:40 +0000 Received: by vcbfo14 with SMTP id fo14so4674139vcb.15 for ; Mon, 26 Mar 2012 08:37:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ROWgnly95pFF/OkMi4PgNLLGsyW4wMl8b+3GWlJ6JzM=; b=Izrs4pQ+zW7Ca6rhPbI5cdkZH7kRwDXcmQmUkRxMYHPSvoJFcjrHBIOssb9SaILO2e QCCUrNPjQT7XWsIJG6WzXdtHLg7FM78Qt3HpKBSqQVbeVuxCeORAKI+DkEBRBy4KGAZu vfonQN3XornTyeThGC6xvY1XyuyhZnoxZwY/8IsxHofnHItYlFyU48T2X+erdP1SkMJp ohPtkSNv64hh+Z80HRxQBcqNvtXvTu7mbSKSdZJYsvxuvKLf6NKI5TAXIwRjRc2vy+fB 1SBm0ZQBV6Z5oGtSB5ubUwXo3wDXi53E2lmYKvd3gFck9HRDeZkSqnhvo24TqIBoy/4Q vBqA== MIME-Version: 1.0 Received: by 10.220.152.205 with SMTP id h13mr5724109vcw.12.1332776239381; Mon, 26 Mar 2012 08:37:19 -0700 (PDT) Received: by 10.52.31.73 with HTTP; Mon, 26 Mar 2012 08:37:19 -0700 (PDT) Received: by 10.52.31.73 with HTTP; Mon, 26 Mar 2012 08:37:19 -0700 (PDT) In-Reply-To: <4F708BB5.9080104@squadratic.com> References: <4F708BB5.9080104@squadratic.com> Date: Mon, 26 Mar 2012 08:37:19 -0700 Message-ID: Subject: Re: Empty workspaces From: David Ventimiglia To: user@abdera.apache.org Content-Type: multipart/alternative; boundary=f46d043c7d0e503e0804bc272693 X-Virus-Checked: Checked by ClamAV on apache.org --f46d043c7d0e503e0804bc272693 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable But according to the Atom Pub spec a workspace may contain zero or more collections. How can an Abdera workspace contain zero collections if it throws a NullPointerException? On Mar 26, 2012 8:31 AM, "Christophe Dupriez" wrote: > I have a single Workspace so it is not empty! > I prefer to have multiple Abdera services for different information types= , > one workspace for services and many collections per workspace. > I follow (roughly) the OData convention + OpenSearch: > http://host/application/**service.svc/collection(record-**id)?opensearch<= http://host/application/service.svc/collection(record-id)?opensearch>parame= ters > > Most of the job is to have a correct Provider and to implement the > CollectionAdapter. > > Have a nice evening, > > Christophe > > Le 26/03/2012 17:15, David Ventimiglia a =E9crit : > >> Hi, >> >> If I create a DefaultProvider and add a SimpleWorkspaceInfo to it, but >> don't add a CollectionAdapter to that, I get a NullPointerException. Ho= w >> is an empty workspace, with no collections, to be represented? >> >> Thanks, David. >> >> > --f46d043c7d0e503e0804bc272693--