Search in sources :

Example 16 with AutoCreator

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

Example 17 with AutoCreator

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;
}
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 18 with AutoCreator

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

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