use of org.olat.modules.assessment.Role in project OpenOLAT by OpenOLAT.
the class GTAAbstractController method doUpdateAttempts.
protected void doUpdateAttempts() {
Role by = getDoer();
if (businessGroupTask) {
List<Identity> identities = businessGroupService.getMembers(assessedGroup, GroupRoles.participant.name());
ICourse course = CourseFactory.loadCourse(courseEnv.getCourseGroupManager().getCourseEntry());
for (Identity identity : identities) {
UserCourseEnvironment uce = AssessmentHelper.createAndInitUserCourseEnvironment(identity, course);
gtaNode.incrementUserAttempts(uce, by);
}
} else {
UserCourseEnvironment assessedUserCourseEnv = getAssessedUserCourseEnvironment();
gtaNode.incrementUserAttempts(assessedUserCourseEnv, by);
}
}
use of org.olat.modules.assessment.Role in project openolat by klemens.
the class GTAAbstractController method doUpdateAttempts.
protected void doUpdateAttempts() {
Role by = getDoer();
if (businessGroupTask) {
List<Identity> identities = businessGroupService.getMembers(assessedGroup, GroupRoles.participant.name());
ICourse course = CourseFactory.loadCourse(courseEnv.getCourseGroupManager().getCourseEntry());
for (Identity identity : identities) {
UserCourseEnvironment uce = AssessmentHelper.createAndInitUserCourseEnvironment(identity, course);
gtaNode.incrementUserAttempts(uce, by);
}
} else {
UserCourseEnvironment assessedUserCourseEnv = getAssessedUserCourseEnvironment();
gtaNode.incrementUserAttempts(assessedUserCourseEnv, by);
}
}
Aggregations