Search in sources :

Example 26 with EfficiencyStatement

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;
}
Also used : UserEfficiencyStatement(org.olat.course.assessment.UserEfficiencyStatement) CertificateAndEfficiencyStatementController(org.olat.course.certificate.ui.CertificateAndEfficiencyStatementController) RepositoryEntry(org.olat.repository.RepositoryEntry) EfficiencyStatement(org.olat.course.assessment.EfficiencyStatement) UserEfficiencyStatement(org.olat.course.assessment.UserEfficiencyStatement)

Aggregations

EfficiencyStatement (org.olat.course.assessment.EfficiencyStatement)26 UserEfficiencyStatement (org.olat.course.assessment.UserEfficiencyStatement)8 UserEfficiencyStatementImpl (org.olat.course.assessment.model.UserEfficiencyStatementImpl)6 CertificateAndEfficiencyStatementController (org.olat.course.certificate.ui.CertificateAndEfficiencyStatementController)6 CertificateAndEfficiencyStatement (org.olat.course.certificate.ui.CertificateAndEfficiencyStatementListModel.CertificateAndEfficiencyStatement)6 RepositoryEntry (org.olat.repository.RepositoryEntry)6 Date (java.util.Date)4 ArrayList (java.util.ArrayList)2 Map (java.util.Map)2 Consumes (javax.ws.rs.Consumes)2 PUT (javax.ws.rs.PUT)2 Path (javax.ws.rs.Path)2 Produces (javax.ws.rs.Produces)2 BaseSecurity (org.olat.basesecurity.BaseSecurity)2 LayoutMain3ColsController (org.olat.core.commons.fullWebApp.LayoutMain3ColsController)2 CloseableModalController (org.olat.core.gui.control.generic.closablewrapper.CloseableModalController)2 Identity (org.olat.core.id.Identity)2 OLATResourceable (org.olat.core.id.OLATResourceable)2 VFSContainer (org.olat.core.util.vfs.VFSContainer)2 AssessmentChangedEvent (org.olat.course.assessment.AssessmentChangedEvent)2