Exemple #1
0
 @RequestMapping(value = "/contacts/{contactId}", method = DELETE)
 @PreAuthorize("hasPermission(#contactId, 'sample.Contact', 'DELETE')")
 public void delete(@PathVariable Long contactId) {
   super.deleteAcl(contactId);
   contactService.deleteById(contactId);
 }
Exemple #2
0
 @RequestMapping(value = "/contacts/{contactId}/acls/{principalId}", method = DELETE)
 public void deleteAcl(@PathVariable Long contactId, @PathVariable Long principalId) {
   super.deleteAcl(contactId, principalId);
 }