Re: Pagination - let's finalize the collection design (ISSUE-42)

Hi Markus,

> I think, however, that is a semantically sound approach
> that has some nice advantages over the alternatives considered so far - not
> the least that the approach nicely generalizes to other use cases.

+1 A "view" seemed indeed to be the missing link.
Probably this was why we had so much trouble modeling this in the past.

A collection can indeed be viewed in multiple ways,
and one of them is a specific pagination.
This doesn't exclude anything else that can be done with the collection.

> Please note that the collection members are directly associated to the
> collection itself, not the view. This means that there's no need to
> separately tie back each member of the collection to the collection itself.

Very good.

> I deliberately didn't use "page" or "pagination" in the name of the type of
> this view (PartialCollectionView).

+1

> Is anything missing?

How do we say: the current page is part of / a page of this view?
I.e. the predicate for "is a(ny) page of" will be needed.

Best,

Ruben

Received on Sunday, 11 October 2015 22:27:18 UTC