Search in sources :

Example 6 with Segment

use of org.olat.modules.coach.ui.UserDetailsController.Segment in project openolat by klemens.

the class CourseController method doSelectDetails.

private void doSelectDetails(UserRequest ureq, EfficiencyStatementEntry entry) {
    Segment selectedTool = null;
    if (statementCtrl != null) {
        selectedTool = statementCtrl.getSelectedSegment();
        removeAsListenerAndDispose(statementCtrl);
    }
    OLATResourceable ores = OresHelper.createOLATResourceableInstance(Identity.class, entry.getIdentityKey());
    WindowControl bwControl = addToHistory(ureq, ores, null);
    int entryIndex = model.getObjects().indexOf(entry) + 1;
    Identity assessedIdentity = securityManager.loadIdentityByKey(entry.getIdentityKey());
    String fullname = userManager.getUserDisplayName(assessedIdentity);
    String details = translate("students.details", new String[] { fullname, String.valueOf(entryIndex), String.valueOf(model.getRowCount()) });
    statementCtrl = new UserDetailsController(ureq, bwControl, stackPanel, entry, assessedIdentity, details, entryIndex, model.getRowCount(), selectedTool);
    listenTo(statementCtrl);
    stackPanel.popUpToController(this);
    stackPanel.pushController(fullname, statementCtrl);
}
Also used : OLATResourceable(org.olat.core.id.OLATResourceable) WindowControl(org.olat.core.gui.control.WindowControl) Identity(org.olat.core.id.Identity) Segment(org.olat.modules.coach.ui.UserDetailsController.Segment)

Aggregations

WindowControl (org.olat.core.gui.control.WindowControl)6 OLATResourceable (org.olat.core.id.OLATResourceable)6 Segment (org.olat.modules.coach.ui.UserDetailsController.Segment)6 Identity (org.olat.core.id.Identity)4