abdera-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James M Snell <jasn...@gmail.com>
Subject Re: Modeling Collections of Collections
Date Sun, 16 Sep 2007 01:34:52 GMT
We had this problem in the Lotus Connections Activities component.  Each
user has a collection of Activities. Each Activity is itself a
Collection.  There is a top level My Activities collection.  Each entry
represents an Activity.  Those entries contain an app:collection element
that points to the activity collection uri, e.g.

  <app:collection href="...">

This approach has worked very well for us.

- James

Dan Diephouse wrote:
> I am pondering how to model collections of collections with APP for more
> non-blogging oriented applications. For instance, lets say I have a
> collection of customers, which have a collection of purchase orders. I
> can easily model the customers as a collection. Each entry represents a
> customer.
> But then what do I do about the purchase orders? The best solution that
> I can come up with is that I have another collection for each customer.
> Each entry in the collection would then be a purchase order. However,
> this has two downsides:
> 1. There is no great way to go directly from the customer to the
> purchase order collection. The best solution I've come up with is
> something <link rel="purchase-orders"
> href="service/customer-foo/purchase-orders"/>. Not sure if thats a Good
> Thing or not.
> 2. Now my workspace has a gazillion customer/purchase order collections
> in it. I probably don't want to list those all out as that would take
> forever. The best solution that I've come up with here is to just not
> list them and make item #1 be the best way to find the collection.
> Thoughts?
> - Dan

View raw message