throw new NotFound(JobMetadata.class, jobId);
}
return new GetJobResponse(jobMetadata);
} finally {
tx.commit();
}
}
@PreAuthorize("hasPermission(#projectId, 'project', 'admin')")
@RequestMapping(value = "/projects/{projectId}/jobs", method = RequestMethod.GET)