use of org.olat.course.assessment.EfficiencyStatement in project openolat by klemens.
the class UserDetailsController method doOpenEfficiencyStatementController.
private CertificateAndEfficiencyStatementController doOpenEfficiencyStatementController(UserRequest ureq) {
if (statementCtrl == null || hasChanged) {
removeAsListenerAndDispose(statementCtrl);
RepositoryEntry entry = statementEntry.getCourse();
UserEfficiencyStatement statement = statementEntry.getUserEfficencyStatement();
EfficiencyStatement efficiencyStatement = null;
if (statement != null) {
RepositoryEntry re = statementEntry.getCourse();
efficiencyStatement = efficiencyStatementManager.getUserEfficiencyStatementByCourseRepositoryEntry(re, assessedIdentity);
}
statementCtrl = new CertificateAndEfficiencyStatementController(getWindowControl(), ureq, assessedIdentity, null, entry.getOlatResource().getKey(), entry, efficiencyStatement, true);
listenTo(statementCtrl);
hasChanged = false;
}
mainVC.put("segmentCmp", statementCtrl.getInitialComponent());
segmentView.select(efficiencyStatementLink);
return statementCtrl;
}
Aggregations