From 5b87277b9d7de752c2b00c9954120976061777a3 Mon Sep 17 00:00:00 2001 From: Kevin Roast Date: Fri, 7 Oct 2011 14:34:10 +0000 Subject: [PATCH] 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 --- .../java/org/alfresco/repo/workflow/WorkflowServiceImpl.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/java/org/alfresco/repo/workflow/WorkflowServiceImpl.java b/source/java/org/alfresco/repo/workflow/WorkflowServiceImpl.java index e631fe9fe9..7427300770 100644 --- a/source/java/org/alfresco/repo/workflow/WorkflowServiceImpl.java +++ b/source/java/org/alfresco/repo/workflow/WorkflowServiceImpl.java @@ -699,10 +699,9 @@ public class WorkflowServiceImpl implements WorkflowService // Expand authorities to include associated groups (and parent groups) List authorities = new ArrayList(); authorities.add(authority); - Set parents = authorityService.getContainingAuthoritiesInZone(AuthorityType.GROUP, authority, - AuthorityService.ZONE_APP_DEFAULT, null, -1); + Set parents = authorityService.getContainingAuthorities(AuthorityType.GROUP, authority, false); authorities.addAll(parents); - + // Retrieve pooled tasks for authorities (from each of the registered // task components) List tasks = new ArrayList(10);