353637383940414243
} } private Group createRegisteredUsersGroup() { Group group = new Group(REGISTERED_USERS_GROUP_NAME); groupRepository.create(group); return group; }
3435363738394041
@Override public Group modify(Group group) { em.find(Group.class, group.getGroupId()); Group mergedGroup = em.merge(group); return mergedGroup; }
4142434445464748
} @Override public void delete(Group group) { Group mergedGroup = em.merge(group); em.remove(mergedGroup); }
4849505152535455
} @Override public Group findById(String groupId) { Group group = em.find(Group.class, groupId); return group; }