Search in sources :

Example 1 with SubjectAclResource

use of org.obiba.mica.security.rest.SubjectAclResource in project mica2 by obiba.

the class DraftCollectedDatasetResource method permissions.

@Path("/permissions")
public SubjectAclResource permissions() {
    SubjectAclResource subjectAclResource = applicationContext.getBean(SubjectAclResource.class);
    subjectAclResource.setResourceInstance("/draft/collected-dataset", id);
    subjectAclResource.setFileResourceInstance("/draft/file", "/collected-dataset/" + id);
    return subjectAclResource;
}
Also used : SubjectAclResource(org.obiba.mica.security.rest.SubjectAclResource)

Example 2 with SubjectAclResource

use of org.obiba.mica.security.rest.SubjectAclResource in project mica2 by obiba.

the class DraftProjectResource method permissions.

@Path("/permissions")
public SubjectAclResource permissions() {
    SubjectAclResource subjectAclResource = applicationContext.getBean(SubjectAclResource.class);
    subjectAclResource.setResourceInstance("/draft/project", id);
    subjectAclResource.setFileResourceInstance("/draft/file", "/project/" + id);
    return subjectAclResource;
}
Also used : SubjectAclResource(org.obiba.mica.security.rest.SubjectAclResource)

Example 3 with SubjectAclResource

use of org.obiba.mica.security.rest.SubjectAclResource in project mica2 by obiba.

the class DraftHarmonizationStudyResource method accesses.

@Path("/accesses")
public SubjectAclResource accesses() {
    SubjectAclResource subjectAclResource = applicationContext.getBean(SubjectAclResource.class);
    subjectAclResource.setResourceInstance("/harmonization-study", id);
    subjectAclResource.setFileResourceInstance("/file", "/harmonization-study/" + id);
    return subjectAclResource;
}
Also used : SubjectAclResource(org.obiba.mica.security.rest.SubjectAclResource) Path(javax.ws.rs.Path)

Example 4 with SubjectAclResource

use of org.obiba.mica.security.rest.SubjectAclResource in project mica2 by obiba.

the class DraftIndividualStudyResource method permissions.

@Path("/permissions")
public SubjectAclResource permissions() {
    SubjectAclResource subjectAclResource = applicationContext.getBean(SubjectAclResource.class);
    subjectAclResource.setResourceInstance("/draft/individual-study", id);
    subjectAclResource.setFileResourceInstance("/draft/file", "/individual-study/" + id);
    return subjectAclResource;
}
Also used : SubjectAclResource(org.obiba.mica.security.rest.SubjectAclResource) Path(javax.ws.rs.Path)

Example 5 with SubjectAclResource

use of org.obiba.mica.security.rest.SubjectAclResource in project mica2 by obiba.

the class DraftCollectedDatasetResource method accesses.

@Path("/accesses")
public SubjectAclResource accesses() {
    SubjectAclResource subjectAclResource = applicationContext.getBean(SubjectAclResource.class);
    subjectAclResource.setResourceInstance("/collected-dataset", id);
    subjectAclResource.setFileResourceInstance("/file", "/collected-dataset/" + id);
    return subjectAclResource;
}
Also used : SubjectAclResource(org.obiba.mica.security.rest.SubjectAclResource)

Aggregations

SubjectAclResource (org.obiba.mica.security.rest.SubjectAclResource)15 Path (javax.ws.rs.Path)9 RequiresRoles (org.apache.shiro.authz.annotation.RequiresRoles)3