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:
Kevin Roast
2011-10-07 14:34:10 +00:00
parent a5e1994c86
commit 5b87277b9d

View File

@@ -699,10 +699,9 @@ public class WorkflowServiceImpl implements WorkflowService
// Expand authorities to include associated groups (and parent groups)
List<String> authorities = new ArrayList<String>();
authorities.add(authority);
Set<String> parents = authorityService.getContainingAuthoritiesInZone(AuthorityType.GROUP, authority,
AuthorityService.ZONE_APP_DEFAULT, null, -1);
Set<String> parents = authorityService.getContainingAuthorities(AuthorityType.GROUP, authority, false);
authorities.addAll(parents);
// Retrieve pooled tasks for authorities (from each of the registered
// task components)
List<WorkflowTask> tasks = new ArrayList<WorkflowTask>(10);