use of org.obiba.mica.access.domain.DataAccessFeasibility in project mica2 by obiba.
the class DataAccessFeasibilityResource method getFeasibility.
@GET
@Timed
public Mica.DataAccessRequestDto getFeasibility() {
subjectAclService.checkPermission(getParentResourcePath(), "VIEW", parentId);
DataAccessFeasibility feasibility = dataAccessFeasibilityService.findById(id);
return dtos.asFeasibilityDto(feasibility);
}
use of org.obiba.mica.access.domain.DataAccessFeasibility in project mica2 by obiba.
the class DataAccessFeasibilityResource method setVariablesSet.
@PUT
@Path("/variables")
public Response setVariablesSet() {
subjectAclService.checkPermission(getResourcePath(), "EDIT", id);
DataAccessFeasibility feasibility = getService().findById(id);
feasibility.setVariablesSet(createOrUpdateVariablesSet(feasibility));
dataAccessFeasibilityService.save(feasibility);
return Response.noContent().build();
}
Aggregations