Search in sources :

Example 1 with QuestionPoolSiteMainController

use of org.olat.modules.qpool.ui.QuestionPoolSiteMainController 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 2 with QuestionPoolSiteMainController

use of org.olat.modules.qpool.ui.QuestionPoolSiteMainController in project openolat by klemens.

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)

Aggregations

WindowControl (org.olat.core.gui.control.WindowControl)2 MainLayoutController (org.olat.core.gui.control.generic.layout.MainLayoutController)2 OLATResourceable (org.olat.core.id.OLATResourceable)2 StateSite (org.olat.core.id.context.StateSite)2 QuestionPoolSiteMainController (org.olat.modules.qpool.ui.QuestionPoolSiteMainController)2