Search in sources :

Example 6 with StateSite

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

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

the class RepositorySite method createController.

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

Example 8 with StateSite

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

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)

Example 9 with StateSite

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

the class GroupsSite method createController.

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

Example 10 with StateSite

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

the class PortalSite method createController.

@Override
protected Controller createController(UserRequest ureq, WindowControl wControl, SiteConfiguration config) {
    ThreadLocalUserActivityLogger.addLoggingResourceInfo(LoggingResourceable.wrapBusinessPath(ORES));
    WindowControl bwControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ureq, ORES, new StateSite(this), wControl, true);
    PortalMainController c = new PortalMainController(ureq, bwControl);
    return new LayoutMain3ColsController(ureq, wControl, c);
}
Also used : StateSite(org.olat.core.id.context.StateSite) LayoutMain3ColsController(org.olat.core.commons.fullWebApp.LayoutMain3ColsController) 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