@RequestMapping(value = "/contacts/{contactId}/workplaces/{workplaceId}", method = DELETE) @PreAuthorize("hasPermission(#contactId, 'sample.Contact', 'DELETE')") public void deleteWorkplace(@PathVariable Long contactId, @PathVariable Long workplaceId) { contactService.deleteWorkplace(workplaceId); }