diff --git a/java/com.sap.sailing.server/src/com/sap/sailing/server/impl/RacingEventServiceImpl.java b/java/com.sap.sailing.server/src/com/sap/sailing/server/impl/RacingEventServiceImpl.java index 6ac8146031c..1460acce96f 100644 --- a/java/com.sap.sailing.server/src/com/sap/sailing/server/impl/RacingEventServiceImpl.java +++ b/java/com.sap.sailing.server/src/com/sap/sailing/server/impl/RacingEventServiceImpl.java @@ -3105,6 +3105,14 @@ public class RacingEventServiceImpl implements RacingEventService, ClearStateTes mongoObjectFactory.removeLeaderboardGroup(groupName); } + /** + * Renames the group with the name oldName to the newName.
+ * If there's no group with the name oldName or there's already a group with the name + * newName a {@link IllegalArgumentException} is thrown. + * + * @param oldName The old name of the group + * @param newName The new name of the group + */ private void renameLeaderboardGroup(String oldName, String newName) { LockUtil.lockForWrite(leaderboardGroupsByNameLock); try {