This project is read-only.


Queryable ContentManager.GetMany()


Closed Sep 5, 2014 at 11:32 PM by Piedone


sebastienros wrote May 30, 2012 at 9:06 PM

From Bertrand: " Can't you just count the ids ? "

Piedone wrote May 30, 2012 at 11:27 PM

Actually after re-reading the post I've written in that discussion it dawned on me what I wanted, though it's still stupid what I've written.

There are two places where I'd need such a functionality:
  • I've a service class that queries content items based on their ids (fetched from elsewhere). The code using the service can feed it a delegate that can alter the default query. Now this is only possible if the default query is filtering on ids with some ContentPartRecord. I've used CommonPartRecord, so the content types processable with this service should all have CommonPart attached... (BTW this is in the project I've sent you and Bertrand earlier.)
  • The second is related to the Search issue above (although that specifically can be solved otherwise). If you have a set of ids you can't check how many correspond to still existing and published content items without also fetching them. So that's not equal to counting the ids :-).

Piedone wrote Jul 23, 2012 at 11:56 AM

I've implemented this in a fork, see the discussion:

Piedone wrote Apr 13, 2013 at 9:53 PM

Fixed in changeset 56481aef00ec

sfmskywalker wrote Mar 28, 2014 at 1:28 AM

Fixed in changeset d773ce8c0ade157492c06ed414ff08551e431e22