Search in sources :

Example 1 with VideoSiteController

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

use of org.olat.modules.video.ui.VideoSiteController in project OpenOLAT by OpenOLAT.

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)

Aggregations

Controller (org.olat.core.gui.control.Controller)2 WindowControl (org.olat.core.gui.control.WindowControl)2 OLATResourceable (org.olat.core.id.OLATResourceable)2 StateSite (org.olat.core.id.context.StateSite)2 VideoDisplayController (org.olat.modules.video.ui.VideoDisplayController)2 VideoSiteController (org.olat.modules.video.ui.VideoSiteController)2