cancel
Showing results for 
Search instead for 
Did you mean: 

Fetch limited number of document associations

kawin
Champ in-the-making
Champ in-the-making

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

Is there way to get it using Java?

image

3 REPLIES 3

angelborroy
Community Manager Community Manager
Community Manager

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
Champ in-the-making
Champ in-the-making

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
Community Manager Community Manager
Community Manager

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