mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-10 19:43:10 +00:00
[DS-3024] Use GroupService.setName, not Group.setName, to implement logic against renaming permanent groups.
This commit is contained in:
@@ -313,7 +313,8 @@ public class CollectionServiceImpl extends DSpaceObjectServiceImpl<Collection> i
|
||||
Group g = groupService.create(context);
|
||||
context.restoreAuthSystemState();
|
||||
|
||||
g.setName(context, "COLLECTION_" + collection.getID() + "_WORKFLOW_STEP_" + step);
|
||||
groupService.setName(context, g,
|
||||
"COLLECTION_" + collection.getID() + "_WORKFLOW_STEP_" + step);
|
||||
groupService.update(context, g);
|
||||
setWorkflowGroup(collection, step, g);
|
||||
|
||||
@@ -390,7 +391,8 @@ public class CollectionServiceImpl extends DSpaceObjectServiceImpl<Collection> i
|
||||
submitters = groupService.create(context);
|
||||
context.restoreAuthSystemState();
|
||||
|
||||
submitters.setName(context, "COLLECTION_" + collection.getID() + "_SUBMIT");
|
||||
groupService.setName(context, submitters,
|
||||
"COLLECTION_" + collection.getID() + "_SUBMIT");
|
||||
groupService.update(context, submitters);
|
||||
}
|
||||
|
||||
@@ -430,7 +432,7 @@ public class CollectionServiceImpl extends DSpaceObjectServiceImpl<Collection> i
|
||||
admins = groupService.create(context);
|
||||
context.restoreAuthSystemState();
|
||||
|
||||
admins.setName(context, "COLLECTION_" + collection.getID() + "_ADMIN");
|
||||
groupService.setName(context, admins, "COLLECTION_" + collection.getID() + "_ADMIN");
|
||||
groupService.update(context, admins);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user