Search in sources :

Example 11 with AutoCreator

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);
}
Also used : AutoCreator(org.olat.core.gui.control.creator.AutoCreator)

Example 12 with AutoCreator

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);
}
Also used : AutoCreator(org.olat.core.gui.control.creator.AutoCreator) DmzBFWCParts(org.olat.login.DmzBFWCParts) BaseFullWebappController(org.olat.core.commons.fullWebApp.BaseFullWebappController) ChangeEMailController(de.bps.olat.user.ChangeEMailController)

Example 13 with AutoCreator

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);
}
Also used : AutoCreator(org.olat.core.gui.control.creator.AutoCreator) DmzBFWCParts(org.olat.login.DmzBFWCParts) BaseFullWebappController(org.olat.core.commons.fullWebApp.BaseFullWebappController)

Example 14 with AutoCreator

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;
}
Also used : AutoCreator(org.olat.core.gui.control.creator.AutoCreator) ForbiddenCourseSiteController(org.olat.course.site.ui.ForbiddenCourseSiteController) LayoutMain3ColsController(org.olat.core.commons.fullWebApp.LayoutMain3ColsController) MainLayoutController(org.olat.core.gui.control.generic.layout.MainLayoutController) ForbiddenCourseSiteController(org.olat.course.site.ui.ForbiddenCourseSiteController) Controller(org.olat.core.gui.control.Controller) LayoutMain3ColsController(org.olat.core.commons.fullWebApp.LayoutMain3ColsController) MainLayoutController(org.olat.core.gui.control.generic.layout.MainLayoutController)

Example 15 with AutoCreator

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;
}
Also used : AutoCreator(org.olat.core.gui.control.creator.AutoCreator)

Aggregations

AutoCreator (org.olat.core.gui.control.creator.AutoCreator)18 BaseFullWebappController (org.olat.core.commons.fullWebApp.BaseFullWebappController)10 DmzBFWCParts (org.olat.login.DmzBFWCParts)8 ChangeEMailController (de.bps.olat.user.ChangeEMailController)2 LayoutMain3ColsController (org.olat.core.commons.fullWebApp.LayoutMain3ColsController)2 ChiefController (org.olat.core.gui.control.ChiefController)2 Controller (org.olat.core.gui.control.Controller)2 MainLayoutController (org.olat.core.gui.control.generic.layout.MainLayoutController)2 ForbiddenCourseSiteController (org.olat.course.site.ui.ForbiddenCourseSiteController)2