Search in sources :

Example 11 with SubjectAclResource

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

the class DraftNetworkResource method accesses.

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

Example 12 with SubjectAclResource

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

the class DraftNetworkResource method permissions.

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

Example 13 with SubjectAclResource

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

the class DraftProjectResource method accesses.

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

Example 14 with SubjectAclResource

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

the class DraftHarmonizationStudyResource method permissions.

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

Example 15 with SubjectAclResource

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

the class DraftIndividualStudyResource method accesses.

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

Aggregations

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