Search in sources :

Example 1 with UserStudyGrouped

use of com.odysseusinc.arachne.portal.model.UserStudyGrouped in project ArachneCentralAPI by OHDSI.

the class ArachnePermissionEvaluator method addPermissions.

public boolean addPermissions(ArachneUser user, Page<UserStudyGrouped> userStudyLinks) {
    for (UserStudyGrouped userStudyLink : userStudyLinks) {
        Study study = userStudyLink.getStudy();
        Set<ArachnePermission> allPermissions = getAllPermissions(study, user);
        study.setPermissions(allPermissions);
    }
    return true;
}
Also used : Study(com.odysseusinc.arachne.portal.model.Study) UserStudyGrouped(com.odysseusinc.arachne.portal.model.UserStudyGrouped) ArachnePermission(com.odysseusinc.arachne.portal.security.ArachnePermission)

Aggregations

Study (com.odysseusinc.arachne.portal.model.Study)1 UserStudyGrouped (com.odysseusinc.arachne.portal.model.UserStudyGrouped)1 ArachnePermission (com.odysseusinc.arachne.portal.security.ArachnePermission)1