Search in sources :

Example 46 with WindowControl

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

Example 47 with WindowControl

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);
}
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 48 with WindowControl

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

Example 49 with WindowControl

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

Example 50 with WindowControl

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());
    }
}
Also used : TaxonomyRefImpl(org.olat.modules.taxonomy.model.TaxonomyRefImpl) Taxonomy(org.olat.modules.taxonomy.Taxonomy) WindowControl(org.olat.core.gui.control.WindowControl)

Aggregations

WindowControl (org.olat.core.gui.control.WindowControl)628 OLATResourceable (org.olat.core.id.OLATResourceable)300 UserRequest (org.olat.core.gui.UserRequest)136 Controller (org.olat.core.gui.control.Controller)70 ControllerCreator (org.olat.core.gui.control.creator.ControllerCreator)68 RepositoryEntry (org.olat.repository.RepositoryEntry)68 StepsMainRunController (org.olat.core.gui.control.generic.wizard.StepsMainRunController)64 ContextEntry (org.olat.core.id.context.ContextEntry)58 Step (org.olat.core.gui.control.generic.wizard.Step)56 StepRunnerCallback (org.olat.core.gui.control.generic.wizard.StepRunnerCallback)56 StepsRunContext (org.olat.core.gui.control.generic.wizard.StepsRunContext)56 BusinessControl (org.olat.core.id.context.BusinessControl)56 LayoutMain3ColsController (org.olat.core.commons.fullWebApp.LayoutMain3ColsController)46 ArrayList (java.util.ArrayList)42 Identity (org.olat.core.id.Identity)38 StateSite (org.olat.core.id.context.StateSite)32 PopupBrowserWindow (org.olat.core.gui.control.generic.popup.PopupBrowserWindow)28 AssertException (org.olat.core.logging.AssertException)24 QuestionsController (org.olat.modules.qpool.ui.QuestionsController)22 List (java.util.List)20