Esempio n. 1
0
 @Transactional(readOnly = false)
 public void deleteGroup(Long groupId, Long userId) {
   Group group = userRepository.loadGroupById(groupId);
   if (group.checkOwnership(userId)) {
     logger.info("Deleting " + group);
     userRepository.deleteGroup(group);
   }
 }
Esempio n. 2
0
 public Group getGroupById(Long groupId) {
   return userRepository.loadGroupById(groupId);
 }