You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by Joshy Augustine <jo...@gmail.com> on 2014/09/04 15:44:56 UTC

Is there a way to obtain Paginated Results via getDescendants call?

Hi,

I have a situation wherein I am trying to list contents of a given folder
in UI. For performance and UI consistency sake, I have a requirement to
display a paginated list(for example, list the first 10 results in the
first page, obtain the next 10 only when user clicks on the 'next' button)

I was originally imagining that it might be possible via the following API
Call, but can't quite get it to work the way I imagined.
folder.getDescendants(depth, treeOperationContext)

Does anyone know, using the Open CMIS APIs what is the best way to achieve
what I am after ?


Thanks,
Joshy

Re: Is there a way to obtain Paginated Results via getDescendants call?

Posted by Joshy Augustine <jo...@gmail.com>.
Thanks Florian.


On Thu, Sep 4, 2014 at 3:26 PM, Florian Müller <fm...@apache.org> wrote:

> Hi Joshy,
>
> getDescendants does not support paging. No CMIS operation that returns a
> tree
> supports paging.
> You have to use multiple getChildren calls here.
>
>
> - Florian
>
>
> > Hi,
> >
> > I have a situation wherein I am trying to list contents of a given folder
> > in UI. For performance and UI consistency sake, I have a requirement to
> > display a paginated list(for example, list the first 10 results in the
> > first page, obtain the next 10 only when user clicks on the 'next'
> button)
> >
> > I was originally imagining that it might be possible via the following
> API
> > Call, but can't quite get it to work the way I imagined.
> > folder.getDescendants(depth, treeOperationContext)
> >
> > Does anyone know, using the Open CMIS APIs what is the best way to
> achieve
> > what I am after ?
> >
> >
> > Thanks,
> > Joshy
>



-- 
Cheers,
Josh

Re: Is there a way to obtain Paginated Results via getDescendants call?

Posted by Florian Müller <fm...@apache.org>.
Hi Joshy,

getDescendants does not support paging. No CMIS operation that returns a tree
supports paging.
You have to use multiple getChildren calls here.


- Florian


> Hi,
> 
> I have a situation wherein I am trying to list contents of a given folder
> in UI. For performance and UI consistency sake, I have a requirement to
> display a paginated list(for example, list the first 10 results in the
> first page, obtain the next 10 only when user clicks on the 'next' button)
> 
> I was originally imagining that it might be possible via the following API
> Call, but can't quite get it to work the way I imagined.
> folder.getDescendants(depth, treeOperationContext)
> 
> Does anyone know, using the Open CMIS APIs what is the best way to achieve
> what I am after ?
> 
> 
> Thanks,
> Joshy