Search in sources :

Example 1 with Segment

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);
}
Also used : OLATResourceable(org.olat.core.id.OLATResourceable) Identity(org.olat.core.id.Identity) WindowControl(org.olat.core.gui.control.WindowControl) Segment(org.olat.modules.coach.ui.UserDetailsController.Segment)

Example 2 with Segment

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);
}
Also used : OLATResourceable(org.olat.core.id.OLATResourceable) WindowControl(org.olat.core.gui.control.WindowControl) Segment(org.olat.modules.coach.ui.UserDetailsController.Segment)

Example 3 with Segment

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

Example 4 with Segment

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);
}
Also used : OLATResourceable(org.olat.core.id.OLATResourceable) WindowControl(org.olat.core.gui.control.WindowControl) Segment(org.olat.modules.coach.ui.UserDetailsController.Segment)

Example 5 with Segment

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);
}
Also used : OLATResourceable(org.olat.core.id.OLATResourceable) Identity(org.olat.core.id.Identity) WindowControl(org.olat.core.gui.control.WindowControl) 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