use of org.olat.modules.coach.ui.UserDetailsController.Segment in project OpenOLAT by OpenOLAT.
the class GroupController method selectDetails.
private void selectDetails(UserRequest ureq, EfficiencyStatementEntry statementEntry) {
Segment selectedTool = null;
if (statementCtrl != null) {
selectedTool = statementCtrl.getSelectedSegment();
}
int entryIndex = model.getObjects().indexOf(statementEntry) + 1;
Identity assessedIdentity = securityManager.loadIdentityByKey(statementEntry.getIdentityKey());
OLATResourceable ores = OresHelper.createOLATResourceableInstance(Identity.class, statementEntry.getIdentityKey());
WindowControl bwControl = addToHistory(ureq, ores, null);
String fullname = userManager.getUserDisplayName(assessedIdentity);
String displayName = statementEntry.getCourseDisplayName();
String display = fullname + " (" + displayName + ")";
String details = translate("students.details", new String[] { display, String.valueOf(entryIndex), String.valueOf(model.getRowCount()) });
statementCtrl = new UserDetailsController(ureq, bwControl, stackPanel, statementEntry, assessedIdentity, details, entryIndex, model.getRowCount(), selectedTool);
listenTo(statementCtrl);
stackPanel.popUpToController(this);
stackPanel.pushController(display, statementCtrl);
}
use of org.olat.modules.coach.ui.UserDetailsController.Segment in project openolat by klemens.
the class StudentCoursesController method selectDetails.
private void selectDetails(UserRequest ureq, EfficiencyStatementEntry entry) {
Segment selectedTool = null;
if (statementCtrl != null) {
selectedTool = statementCtrl.getSelectedSegment();
}
OLATResourceable ores = OresHelper.createOLATResourceableInstance(RepositoryEntry.class, entry.getCourse().getKey());
WindowControl bwControl = addToHistory(ureq, ores, null);
String displayName = entry.getCourseDisplayName();
int entryIndex = model.getObjects().indexOf(entry);
String details = translate("students.details", new String[] { displayName, String.valueOf(entryIndex), String.valueOf(model.getRowCount()) });
statementCtrl = new UserDetailsController(ureq, bwControl, stackPanel, entry, student, details, entryIndex, model.getRowCount(), selectedTool);
listenTo(statementCtrl);
stackPanel.popUpToController(this);
stackPanel.pushController(displayName, statementCtrl);
}
use of org.olat.modules.coach.ui.UserDetailsController.Segment in project OpenOLAT by OpenOLAT.
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);
}
use of org.olat.modules.coach.ui.UserDetailsController.Segment in project OpenOLAT by OpenOLAT.
the class StudentCoursesController method selectDetails.
private void selectDetails(UserRequest ureq, EfficiencyStatementEntry entry) {
Segment selectedTool = null;
if (statementCtrl != null) {
selectedTool = statementCtrl.getSelectedSegment();
}
OLATResourceable ores = OresHelper.createOLATResourceableInstance(RepositoryEntry.class, entry.getCourse().getKey());
WindowControl bwControl = addToHistory(ureq, ores, null);
String displayName = entry.getCourseDisplayName();
int entryIndex = model.getObjects().indexOf(entry);
String details = translate("students.details", new String[] { displayName, String.valueOf(entryIndex), String.valueOf(model.getRowCount()) });
statementCtrl = new UserDetailsController(ureq, bwControl, stackPanel, entry, student, details, entryIndex, model.getRowCount(), selectedTool);
listenTo(statementCtrl);
stackPanel.popUpToController(this);
stackPanel.pushController(displayName, statementCtrl);
}
use of org.olat.modules.coach.ui.UserDetailsController.Segment in project openolat by klemens.
the class GroupController method selectDetails.
private void selectDetails(UserRequest ureq, EfficiencyStatementEntry statementEntry) {
Segment selectedTool = null;
if (statementCtrl != null) {
selectedTool = statementCtrl.getSelectedSegment();
}
int entryIndex = model.getObjects().indexOf(statementEntry) + 1;
Identity assessedIdentity = securityManager.loadIdentityByKey(statementEntry.getIdentityKey());
OLATResourceable ores = OresHelper.createOLATResourceableInstance(Identity.class, statementEntry.getIdentityKey());
WindowControl bwControl = addToHistory(ureq, ores, null);
String fullname = userManager.getUserDisplayName(assessedIdentity);
String displayName = statementEntry.getCourseDisplayName();
String display = fullname + " (" + displayName + ")";
String details = translate("students.details", new String[] { display, String.valueOf(entryIndex), String.valueOf(model.getRowCount()) });
statementCtrl = new UserDetailsController(ureq, bwControl, stackPanel, statementEntry, assessedIdentity, details, entryIndex, model.getRowCount(), selectedTool);
listenTo(statementCtrl);
stackPanel.popUpToController(this);
stackPanel.pushController(display, statementCtrl);
}
Aggregations