Search in sources :

Example 26 with StateSite

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

the class UserAdminSite method createController.

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

Example 27 with StateSite

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

the class DocumentPoolSite method createController.

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

Example 28 with StateSite

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

the class HomeSite method createController.

@Override
protected MainLayoutController createController(UserRequest ureq, WindowControl wControl, SiteConfiguration config) {
    OLATResourceable ores = OresHelper.createOLATResourceableInstance(HomeSite.class, ureq.getIdentity().getKey());
    ThreadLocalUserActivityLogger.addLoggingResourceInfo(LoggingResourceable.wrapBusinessPath(ores));
    WindowControl bwControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ureq, ores, new StateSite(this), wControl, true);
    return new HomeMainController(ureq, bwControl);
}
Also used : OLATResourceable(org.olat.core.id.OLATResourceable) StateSite(org.olat.core.id.context.StateSite) WindowControl(org.olat.core.gui.control.WindowControl)

Example 29 with StateSite

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

the class CoachSite method createController.

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

Example 30 with StateSite

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

the class CatalogSite 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("Catalog", 0l);
    ThreadLocalUserActivityLogger.addLoggingResourceInfo(LoggingResourceable.wrapBusinessPath(ores));
    WindowControl bwControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ureq, ores, new StateSite(this), wControl, true);
    return new CatalogSiteMainController(ureq, bwControl);
}
Also used : OLATResourceable(org.olat.core.id.OLATResourceable) StateSite(org.olat.core.id.context.StateSite) CatalogSiteMainController(org.olat.repository.ui.catalog.CatalogSiteMainController) WindowControl(org.olat.core.gui.control.WindowControl)

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