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