We're currently getting all child nodes using this java code:
NodeRef nodeRef = ...;
AlfrescoModelAssocList childAssocs = new AlfrescoModelAssocList(nodeService.getChildAssocs(nodeRef);
for (AlfrescoModelAssoc childAssoc : childAssocs) {
/*...*/
}
We're are looking up a way to get those children nodes, but using pagination.
Is there anyway to get it?
We're using 4.2.f version.
Thanks.
The only service API which provides pagination for child elements is the FileFolderService#list operation, which inherently restricts the potential child node types to regular cm:folder, cm:content and their sub-types, with the exclusion of cm:systemfolder and sub-types.
Hello,
You could try to encapsulate the call to getChildAssocs in a function that accept a PagingRequest parameter and return a PagingResults value.
You must handle yourself the creation of the object PagingResults in the new function.
Regards
Could you please provide any atraightforward helping code about how to get it.
Please, also remember I'm using 4.2.f java code.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.