Search in sources :

Example 1 with CatalogManagerController

use of org.olat.repository.ui.catalog.CatalogManagerController 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 2 with CatalogManagerController

use of org.olat.repository.ui.catalog.CatalogManagerController 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

WindowControl (org.olat.core.gui.control.WindowControl)2 OLATResourceable (org.olat.core.id.OLATResourceable)2 StateSite (org.olat.core.id.context.StateSite)2 CatalogManagerController (org.olat.repository.ui.catalog.CatalogManagerController)2