use of org.olat.core.gui.control.WindowControl in project OpenOLAT by OpenOLAT.
the class CourseController method doOpenCourse.
private void doOpenCourse(UserRequest ureq) {
OLATResourceable ores = OresHelper.createOLATResourceableInstance("RepositoryEntry", courseStat.getRepoKey());
WindowControl bwControl = BusinessControlFactory.getInstance().createBusinessWindowControl(getWindowControl(), ores);
NewControllerFactory.getInstance().launch(ureq, bwControl);
}
use of org.olat.core.gui.control.WindowControl 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.core.gui.control.WindowControl in project OpenOLAT by OpenOLAT.
the class StudentListController method selectStudent.
protected StudentCoursesController selectStudent(UserRequest ureq, StudentStatEntry studentStat) {
Identity student = securityManager.loadIdentityByKey(studentStat.getIdentityKey());
OLATResourceable ores = OresHelper.createOLATResourceableInstance(Identity.class, student.getKey());
WindowControl bwControl = addToHistory(ureq, ores, null);
int index = model.getObjects().indexOf(studentStat);
studentCtrl = new StudentCoursesController(ureq, bwControl, stackPanel, studentStat, student, index, model.getRowCount(), false);
listenTo(studentCtrl);
stackPanel.popUpToRootController(ureq);
String displayName = userManager.getUserDisplayName(student);
stackPanel.pushController(displayName, studentCtrl);
return studentCtrl;
}
use of org.olat.core.gui.control.WindowControl in project OpenOLAT by OpenOLAT.
the class DocumentPoolAdminController method doOpenConfiguration.
private void doOpenConfiguration(UserRequest ureq) {
if (configurationCtrl == null) {
WindowControl bwControl = addToHistory(ureq, OresHelper.createOLATResourceableType("Configuration"), null);
configurationCtrl = new DocumentPoolAdminConfigurationController(ureq, bwControl);
listenTo(configurationCtrl);
}
addToHistory(ureq, configurationCtrl);
mainVC.put("segmentCmp", configurationCtrl.getInitialComponent());
}
use of org.olat.core.gui.control.WindowControl in project OpenOLAT by OpenOLAT.
the class DocumentPoolAdminController method doOpenPermissions.
private void doOpenPermissions(UserRequest ureq) {
removeAsListenerAndDispose(permissionsCtrl);
if (StringHelper.containsNonWhitespace(docPoolModule.getTaxonomyTreeKey())) {
WindowControl bwControl = addToHistory(ureq, OresHelper.createOLATResourceableType("Types"), null);
Taxonomy taxonomy = taxonomyService.getTaxonomy(new TaxonomyRefImpl(new Long(docPoolModule.getTaxonomyTreeKey())));
permissionsCtrl = new DocumentPoolAdminPermissionsController(ureq, bwControl, taxonomy);
listenTo(permissionsCtrl);
mainVC.put("segmentCmp", permissionsCtrl.getInitialComponent());
}
}
Aggregations