Fetch limited number of document associations

cancel
Showing results for 
Search instead for 
Did you mean: 
kawin
Member II

Fetch limited number of document associations

How to get the limited number of document association for pagination purpose?

Is there way to get it using Java?

Screenshot from 2021-11-04 12-20-11.jpg

3 Replies
angelborroy
Alfresco Employee

Re: Fetch limited number of document associations

Please, don't duplicate your questions.

This was already replied in https://hub.alfresco.com/t5/alfresco-content-services-forum/get-the-count-of-association-for-a-docum...

Hyland Developer Evangelist
kawin
Member II

Re: Fetch limited number of document associations

https://hub.alfresco.com/t5/alfresco-content-services-forum/get-the-count-of-association-for-a-docum... 

This is to get the count of association of the document.

Here I need to get the the limited association list for pagination purpose. 

For ex, If there are 100 associations are there for a document, I need to get first 20 records, then next 20 and so on. 

Is there a way to get this using Java?

angelborroy
Alfresco Employee

Re: Fetch limited number of document associations

I guess you can use NodeService.getSourceAssocs(...) method:

http://dev.alfresco.com/resource/AlfrescoOne/5.0/PublicAPI/org/alfresco/service/cmr/repository/NodeS...

Hyland Developer Evangelist