Hi,
Is it possible to get the users from an Alfresco group as a paging result by using the AuthorityService in Java?
I have been looking at the methods of the AuthorityService but I cannot find an appropriate method to do this. The methods that come closest to what I need are these two:
public PagingResults<String> getAuthorities(AuthorityType type, String zoneName, String displayNameFilter, boolean sortByDisplayName, boolean sortAscending, PagingRequest pagingRequest);
and
public Set<String> getContainedAuthorities(AuthorityType type, String name, boolean immediate);
The former method can provide a paging result as needed, but not for a specific group only, and the latter can provide the users for a specific group but not as a paging result. Is there a way in which I can get the combined functionality of these two methods, i.e. get the users in a given group as a paging result?
Hello,
You could try to encapsulate the call to getContainedAuthorities 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