mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fixed ALF-10540: Test disabled: ActivitiWorkflowRestApiTest/JBPMWorkflowRestApiTest testReviewPooledProcessFlow
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30887 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -19,7 +19,9 @@
|
||||
package org.alfresco.repo.security.person;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
import org.alfresco.service.cmr.repository.StoreRef;
|
||||
@@ -54,11 +56,13 @@ public class TestGroupManager
|
||||
public String createGroupIfNotExist(String groupShortName)
|
||||
{
|
||||
String fullName = authorityService.getName(AuthorityType.GROUP, groupShortName);
|
||||
if(groups.containsKey(groupShortName) == false)
|
||||
if (groups.containsKey(groupShortName) == false)
|
||||
{
|
||||
if (authorityService.authorityExists(fullName) == false)
|
||||
{
|
||||
fullName = authorityService.createAuthority(AuthorityType.GROUP, groupShortName, groupShortName, null);
|
||||
Set<String> zones = new HashSet<String>(2, 1.0f);
|
||||
zones.add(AuthorityService.ZONE_APP_DEFAULT);
|
||||
fullName = authorityService.createAuthority(AuthorityType.GROUP, groupShortName, groupShortName, zones);
|
||||
groups.put(groupShortName, findGroupNode(groupShortName));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user