Search in sources :

Example 81 with WindowControl

use of org.olat.core.gui.control.WindowControl in project OpenOLAT by OpenOLAT.

the class SharedItemsOverviewController method doOpenBinders.

public SharedBindersController doOpenBinders(UserRequest ureq) {
    if (bindersCtrl == null) {
        WindowControl swControl = addToHistory(ureq, OresHelper.createOLATResourceableInstance("Binders", 0l), null);
        bindersCtrl = new SharedBindersController(ureq, swControl, stackPanel);
        listenTo(bindersCtrl);
    } else {
        addToHistory(ureq, bindersCtrl);
    }
    mainVC.put("segmentCmp", bindersCtrl.getInitialComponent());
    return bindersCtrl;
}
Also used : WindowControl(org.olat.core.gui.control.WindowControl)

Example 82 with WindowControl

use of org.olat.core.gui.control.WindowControl in project OpenOLAT by OpenOLAT.

the class SharedItemsOverviewController method doOpenMark.

private SharedPagesController doOpenMark(UserRequest ureq) {
    if (bookmarkedPagesCtrl == null) {
        SearchSharePagesParameters searchParams = new SearchSharePagesParameters();
        searchParams.setBookmarkOnly(true);
        searchParams.addExcludedPageStatus(PageStatus.deleted);
        List<PageStatus> filters = new ArrayList<>(5);
        filters.add(PageStatus.draft);
        filters.add(PageStatus.inRevision);
        filters.add(PageStatus.published);
        filters.add(PageStatus.closed);
        WindowControl swControl = addToHistory(ureq, OresHelper.createOLATResourceableInstance("Favorits", 0l), null);
        bookmarkedPagesCtrl = new SharedPagesController(ureq, swControl, stackPanel, searchParams, filters, null);
        listenTo(bookmarkedPagesCtrl);
    } else {
        bookmarkedPagesCtrl.loadModel();
        addToHistory(ureq, bookmarkedPagesCtrl);
    }
    mainVC.put("segmentCmp", bookmarkedPagesCtrl.getInitialComponent());
    return bookmarkedPagesCtrl;
}
Also used : PageStatus(org.olat.modules.portfolio.PageStatus) SearchSharePagesParameters(org.olat.modules.portfolio.model.SearchSharePagesParameters) ArrayList(java.util.ArrayList) WindowControl(org.olat.core.gui.control.WindowControl)

Example 83 with WindowControl

use of org.olat.core.gui.control.WindowControl in project OpenOLAT by OpenOLAT.

the class QuestionPoolSite method createController.

@Override
protected MainLayoutController createController(UserRequest ureq, WindowControl wControl, SiteConfiguration config) {
    OLATResourceable ores = OresHelper.createOLATResourceableInstance("QPool", 0l);
    ThreadLocalUserActivityLogger.addLoggingResourceInfo(LoggingResourceable.wrapBusinessPath(ores));
    WindowControl bwControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ureq, ores, new StateSite(this), wControl, true);
    MainLayoutController c = new QuestionPoolSiteMainController(ureq, bwControl);
    return c;
}
Also used : OLATResourceable(org.olat.core.id.OLATResourceable) StateSite(org.olat.core.id.context.StateSite) QuestionPoolSiteMainController(org.olat.modules.qpool.ui.QuestionPoolSiteMainController) MainLayoutController(org.olat.core.gui.control.generic.layout.MainLayoutController) WindowControl(org.olat.core.gui.control.WindowControl)

Example 84 with WindowControl

use of org.olat.core.gui.control.WindowControl in project OpenOLAT by OpenOLAT.

the class EPSite method createController.

@Override
protected Controller createController(UserRequest ureq, WindowControl wControl, SiteConfiguration config) {
    OLATResourceable ores = OresHelper.createOLATResourceableInstance(EPSite.class, 0l);
    ThreadLocalUserActivityLogger.addLoggingResourceInfo(LoggingResourceable.wrapBusinessPath(ores));
    WindowControl bwControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ureq, ores, new StateSite(this), wControl, true);
    EPOverviewController mainController = new EPOverviewController(ureq, bwControl);
    return mainController;
}
Also used : OLATResourceable(org.olat.core.id.OLATResourceable) StateSite(org.olat.core.id.context.StateSite) WindowControl(org.olat.core.gui.control.WindowControl) EPOverviewController(org.olat.portfolio.ui.EPOverviewController)

Example 85 with WindowControl

use of org.olat.core.gui.control.WindowControl in project OpenOLAT by OpenOLAT.

the class EPOverviewController method doOpenMyArtefacts.

private EPArtefactPoolRunController doOpenMyArtefacts(UserRequest ureq) {
    OLATResourceable ores = OresHelper.createOLATResourceableInstance("Artefact", 0l);
    // pool run controller set its own business path after
    addToHistory(ureq, ores, null);
    if (artefactsCtrl == null) {
        WindowControl bwControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ores, null, getWindowControl());
        artefactsCtrl = new EPArtefactPoolRunController(ureq, addToHistory(ureq, bwControl));
        listenTo(artefactsCtrl);
    }
    mainVC.put("segmentCmp", artefactsCtrl.getInitialComponent());
    return artefactsCtrl;
}
Also used : OLATResourceable(org.olat.core.id.OLATResourceable) 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