use of org.olat.course.site.ui.ForbiddenCourseSiteController in project OpenOLAT by OpenOLAT.
the class AbstractSiteInstance method getAlternativeController.
protected MainLayoutController getAlternativeController(UserRequest ureq, WindowControl wControl, SiteConfiguration config) {
String altControllerId = config.getAlternativeControllerBeanId();
MainLayoutController c;
if (StringHelper.containsNonWhitespace(altControllerId)) {
AutoCreator creator = (AutoCreator) CoreSpringFactory.getBean(altControllerId);
Controller ac = creator.createController(ureq, wControl);
if (ac instanceof MainLayoutController) {
c = (MainLayoutController) ac;
} else {
c = new LayoutMain3ColsController(ureq, wControl, ac);
}
} else {
Controller ctrl = new ForbiddenCourseSiteController(ureq, wControl);
c = new LayoutMain3ColsController(ureq, wControl, ctrl);
}
return c;
}
use of org.olat.course.site.ui.ForbiddenCourseSiteController in project openolat by klemens.
the class AbstractSiteInstance method getAlternativeController.
protected MainLayoutController getAlternativeController(UserRequest ureq, WindowControl wControl, SiteConfiguration config) {
String altControllerId = config.getAlternativeControllerBeanId();
MainLayoutController c;
if (StringHelper.containsNonWhitespace(altControllerId)) {
AutoCreator creator = (AutoCreator) CoreSpringFactory.getBean(altControllerId);
Controller ac = creator.createController(ureq, wControl);
if (ac instanceof MainLayoutController) {
c = (MainLayoutController) ac;
} else {
c = new LayoutMain3ColsController(ureq, wControl, ac);
}
} else {
Controller ctrl = new ForbiddenCourseSiteController(ureq, wControl);
c = new LayoutMain3ColsController(ureq, wControl, ctrl);
}
return c;
}
Aggregations