mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
More performance improvements relating to retrieving groups for workflow pooled tasks queries.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31047 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -699,10 +699,9 @@ public class WorkflowServiceImpl implements WorkflowService
|
|||||||
// Expand authorities to include associated groups (and parent groups)
|
// Expand authorities to include associated groups (and parent groups)
|
||||||
List<String> authorities = new ArrayList<String>();
|
List<String> authorities = new ArrayList<String>();
|
||||||
authorities.add(authority);
|
authorities.add(authority);
|
||||||
Set<String> parents = authorityService.getContainingAuthoritiesInZone(AuthorityType.GROUP, authority,
|
Set<String> parents = authorityService.getContainingAuthorities(AuthorityType.GROUP, authority, false);
|
||||||
AuthorityService.ZONE_APP_DEFAULT, null, -1);
|
|
||||||
authorities.addAll(parents);
|
authorities.addAll(parents);
|
||||||
|
|
||||||
// Retrieve pooled tasks for authorities (from each of the registered
|
// Retrieve pooled tasks for authorities (from each of the registered
|
||||||
// task components)
|
// task components)
|
||||||
List<WorkflowTask> tasks = new ArrayList<WorkflowTask>(10);
|
List<WorkflowTask> tasks = new ArrayList<WorkflowTask>(10);
|
||||||
|
Reference in New Issue
Block a user