use of org.obiba.mica.access.NoSuchDataAccessRequestException in project mica2 by obiba.
the class DataAccessRequestResource method delete.
@DELETE
public Response delete(@PathParam("id") String id) {
subjectAclService.checkPermission("/data-access-request", "DELETE", id);
try {
dataAccessRequestService.delete(id);
// remove associated comments
commentsService.delete(DataAccessRequest.class.getSimpleName(), id);
eventBus.post(new ResourceDeletedEvent("/data-access-request", id));
eventBus.post(new ResourceDeletedEvent("/data-access-request/" + id, "_status"));
} catch (NoSuchDataAccessRequestException e) {
// ignore
}
return Response.noContent().build();
}
Aggregations