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