예제 #1
0
 /** Override this methods in order to secure it * */
 @Secured({"IM_GROUP_ADMIN"})
 @Override
 public Group update(@PathVariable("id") Long id, @RequestBody Group group) {
   try {
     return super.update(id, group);
   } catch (AlreadyExistingEntityException e) {
     throw new ExpectationFailedException(e.getMessage());
   }
 }
예제 #2
0
 /** Override this methods in order to secure it * */
 @Secured({"IM_GROUP_ADMIN"})
 @Override
 public Group create(@RequestBody Group group) {
   try {
     return super.create(group);
   } catch (AlreadyExistingEntityException e) {
     throw new ExpectationFailedException(e.getMessage());
   }
 }