ACS-5506 Add temporary logging

This commit is contained in:
MichalKinas
2024-02-06 20:36:42 +01:00
parent cfc0916c84
commit c537166f68
4 changed files with 5 additions and 3 deletions

View File

@@ -136,6 +136,7 @@ public class GroupsImpl implements Groups
public Group create(Group group, Parameters parameters) public Group create(Group group, Parameters parameters)
{ {
System.out.println("Create from impl called");
validateGroup(group, false); validateGroup(group, false);
// Create authority with default zones. // Create authority with default zones.
@@ -151,7 +152,7 @@ public class GroupsImpl implements Groups
{ {
props.put(ContentModel.PROP_DESCRIPTION, group.getDescription()); props.put(ContentModel.PROP_DESCRIPTION, group.getDescription());
} }
System.out.println("Before authority created");
String authority = authorityService.createAuthority(AuthorityType.GROUP, group.getId(), authorityDisplayName, authorityZones, props); String authority = authorityService.createAuthority(AuthorityType.GROUP, group.getId(), authorityDisplayName, authorityZones, props);
// Set a given child authority to be included by the given parent // Set a given child authority to be included by the given parent

View File

@@ -1426,6 +1426,7 @@ public class GroupsTest extends AbstractSingleNetworkSiteTest
Group group = generateGroup(); Group group = generateGroup();
group.setDescription("testDesc"); group.setDescription("testDesc");
System.out.println("" + otherParams);
Group createdGroup01 = groupsProxy.createGroup(group, otherParams, HttpServletResponse.SC_CREATED); Group createdGroup01 = groupsProxy.createGroup(group, otherParams, HttpServletResponse.SC_CREATED);
assertNotNull(createdGroup01); assertNotNull(createdGroup01);

View File

@@ -112,7 +112,7 @@ public class Group extends org.alfresco.rest.api.model.Group implements Serializ
Boolean hasSubgroups = (Boolean) jsonObject.get("hasSubgroups"); Boolean hasSubgroups = (Boolean) jsonObject.get("hasSubgroups");
List<String> parentIds = (List<String>) jsonObject.get("parentIds"); List<String> parentIds = (List<String>) jsonObject.get("parentIds");
List<String> zones = (List<String>) jsonObject.get("zones"); List<String> zones = (List<String>) jsonObject.get("zones");
System.out.println("Parse group: " + description + " " + displayName);
Group group = new Group(); Group group = new Group();
group.setId(id); group.setId(id);
group.setDisplayName(displayName); group.setDisplayName(displayName);

View File

@@ -668,7 +668,7 @@ public class AuthorityServiceImpl implements AuthorityService, InitializingBean
{ {
checkTypeIsMutable(type); checkTypeIsMutable(type);
String name = getName(type, shortName); String name = getName(type, shortName);
System.out.println("Before authority DAO created");
authorityDAO.createAuthority(name, authorityDisplayName, authorityZones, properties); authorityDAO.createAuthority(name, authorityDisplayName, authorityZones, properties);
return name; return name;