Search in sources :

Example 11 with StateSite

use of org.olat.core.id.context.StateSite in project openolat by klemens.

the class PortfolioSite method createController.

@Override
protected Controller createController(UserRequest ureq, WindowControl wControl, SiteConfiguration config) {
    OLATResourceable ores = OresHelper.createOLATResourceableInstance(PortfolioSite.class, 0l);
    ThreadLocalUserActivityLogger.addLoggingResourceInfo(LoggingResourceable.wrapBusinessPath(ores));
    WindowControl bwControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ureq, ores, new StateSite(this), wControl, true);
    PortfolioPersonalToolController mainController = new PortfolioPersonalToolController(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) PortfolioPersonalToolController(org.olat.modules.portfolio.ui.PortfolioPersonalToolController)

Example 12 with StateSite

use of org.olat.core.id.context.StateSite in project openolat by klemens.

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 13 with StateSite

use of org.olat.core.id.context.StateSite 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)

Example 14 with StateSite

use of org.olat.core.id.context.StateSite in project openolat by klemens.

the class VideoSite method createController.

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

Example 15 with StateSite

use of org.olat.core.id.context.StateSite in project openolat by klemens.

the class CatalogAdminSite method createController.

@Override
protected Controller createController(UserRequest ureq, WindowControl wControl, SiteConfiguration config) {
    // for existing controller which are part of the main olat -> use the controllerfactory
    OLATResourceable ores = OresHelper.createOLATResourceableInstance("CatalogAdmin", 0l);
    ThreadLocalUserActivityLogger.addLoggingResourceInfo(LoggingResourceable.wrapBusinessPath(ores));
    WindowControl bwControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ureq, ores, new StateSite(this), wControl, true);
    return new CatalogManagerController(ureq, bwControl);
}
Also used : OLATResourceable(org.olat.core.id.OLATResourceable) StateSite(org.olat.core.id.context.StateSite) WindowControl(org.olat.core.gui.control.WindowControl) CatalogManagerController(org.olat.repository.ui.catalog.CatalogManagerController)

Aggregations

StateSite (org.olat.core.id.context.StateSite)34 WindowControl (org.olat.core.gui.control.WindowControl)32 OLATResourceable (org.olat.core.id.OLATResourceable)30 Controller (org.olat.core.gui.control.Controller)4 MainLayoutController (org.olat.core.gui.control.generic.layout.MainLayoutController)4 SystemAdminMainController (org.olat.admin.SystemAdminMainController)2 UserAdminMainController (org.olat.admin.UserAdminMainController)2 LayoutMain3ColsController (org.olat.core.commons.fullWebApp.LayoutMain3ColsController)2 UserRequest (org.olat.core.gui.UserRequest)2 TooledStackedPanel (org.olat.core.gui.components.stack.TooledStackedPanel)2 Activateable2 (org.olat.core.gui.control.generic.dtabs.Activateable2)2 DTab (org.olat.core.gui.control.generic.dtabs.DTab)2 BornSiteInstance (org.olat.core.gui.control.navigation.BornSiteInstance)2 SiteInstance (org.olat.core.gui.control.navigation.SiteInstance)2 ContextEntry (org.olat.core.id.context.ContextEntry)2 StateEntry (org.olat.core.id.context.StateEntry)2 UserSession (org.olat.core.util.UserSession)2 ICourse (org.olat.course.ICourse)2 AssessmentMode (org.olat.course.assessment.AssessmentMode)2 CourseNode (org.olat.course.nodes.CourseNode)2