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);
}
Aggregations