use of org.olat.core.gui.control.creator.AutoCreator in project openolat by klemens.
the class DMZRegistrationContentControllerCreator method createController.
@Override
public Controller createController(UserRequest lureq, WindowControl lwControl) {
DmzBFWCParts dmzSitesAndNav = new DmzBFWCParts();
dmzSitesAndNav.showTopNav(false);
AutoCreator contentControllerCreator = new AutoCreator();
contentControllerCreator.setClassName(RegistrationController.class.getName());
dmzSitesAndNav.setContentControllerCreator(contentControllerCreator);
return new BaseFullWebappController(lureq, dmzSitesAndNav);
}
use of org.olat.core.gui.control.creator.AutoCreator 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;
}
use of org.olat.core.gui.control.creator.AutoCreator in project openolat by klemens.
the class DMZContentControllerCreator method createController.
@Override
public Controller createController(UserRequest ureq, WindowControl lwControl) {
DmzBFWCParts dmzSitesAndNav = new DmzBFWCParts();
AutoCreator contentControllerCreator = new AutoCreator();
contentControllerCreator.setClassName(LoginAuthprovidersController.class.getName());
dmzSitesAndNav.setContentControllerCreator(contentControllerCreator);
ChiefController cc = new BaseFullWebappController(ureq, dmzSitesAndNav);
cc.addBodyCssClass("o_dmz");
Windows.getWindows(ureq.getUserSession()).setChiefController(cc);
return cc;
}
Aggregations