...
Code Block | ||
---|---|---|
| ||
public class EnrollmentService { @Secure("principal.id == callerUserIduserId or hasRole('ADMIN') or " + "(hasRole('RESEARCHER') and hasOrgSponsoredStudy(studyId))") public PagedResourceList<EnrollmentDetail> getEnrollments(...) { } @Secure("principal.id == callerUserIduserId or hasRole('ADMIN') or " + "(hasRole('RESEARCHER') and hasOrgSponsoredStudy(studyId))") public Enrollment enroll(...) { } @Secure("principal.id == callerUserIduserId or hasRole('ADMIN') or " + "(hasRole('RESEARCHER') and hasOrgSponsoredStudy(studyId))") public void updateEnrollment(...) { } @Secure("principal.id == callerUserIduserId or hasRole('ADMIN') or " + "(hasRole('RESEARCHER') and hasOrgSponsoredStudy(studyId))") public Enrollment unenroll(...) { } } |
...