use of org.olat.core.gui.control.creator.AutoCreator in project openolat by klemens.
the class AuthenticationProvider method createController.
@Override
public Controller createController(UserRequest lureq, WindowControl lwControl) {
AutoCreator ac = new AutoCreator();
ac.setClassName(clazz);
return ac.createController(lureq, lwControl);
}
use of org.olat.core.gui.control.creator.AutoCreator in project openolat by klemens.
the class DMZEMChangeContentControllerCreator method createController.
@Override
public Controller createController(UserRequest lureq, WindowControl lwControl) {
DmzBFWCParts dmzSitesAndNav = new DmzBFWCParts();
dmzSitesAndNav.showTopNav(false);
AutoCreator contentControllerCreator = new AutoCreator();
contentControllerCreator.setClassName(ChangeEMailController.class.getName());
dmzSitesAndNav.setContentControllerCreator(contentControllerCreator);
return new BaseFullWebappController(lureq, dmzSitesAndNav);
}
use of org.olat.core.gui.control.creator.AutoCreator in project OpenOLAT by OpenOLAT.
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 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.core.gui.control.creator.AutoCreator in project openolat by klemens.
the class UsrPropHandlerCfgFactory method getConfigController.
/**
* returns the configController for the given PropertyHandler. If no
* controller available, null is returned instead! Always check first with
* <code>hasConfig()</code>
*
* @param ureq
* @param wControl
* @param handler
* @return
*/
public UsrPropHandlerCfgController getConfigController(UserRequest ureq, WindowControl wControl, UserPropertyHandler handler) {
if (!hasConfig(handler))
return null;
AutoCreator creator = handlerControllerMap.get(handler.getClass().getName());
UsrPropHandlerCfgController ctrl = (UsrPropHandlerCfgController) creator.createController(ureq, wControl);
ctrl.setHandlerToConfigure(handler);
return ctrl;
}
Aggregations