Search in sources :

Example 11 with BaseFullWebappController

use of org.olat.core.commons.fullWebApp.BaseFullWebappController 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 12 with BaseFullWebappController

use of org.olat.core.commons.fullWebApp.BaseFullWebappController 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 13 with BaseFullWebappController

use of org.olat.core.commons.fullWebApp.BaseFullWebappController in project openolat by klemens.

the class AuthHelper method createGuestHome.

/**
 * Create a base chief controller for the current anonymous user request
 * and initialize the first screen after login. Note, the user request
 * must be authenticated, but as an anonymous user and not a known user.
 *
 * @param ureq The authenticated user request.
 * @return The chief controller
 */
private static ChiefController createGuestHome(UserRequest ureq) {
    if (!ureq.getUserSession().isAuthenticated())
        throw new AssertException("not authenticated!");
    BaseFullWebappControllerParts guestSitesAndNav = new GuestBFWCParts();
    ChiefController cc = new BaseFullWebappController(ureq, guestSitesAndNav);
    Windows.getWindows(ureq.getUserSession()).setChiefController(cc);
    return cc;
}
Also used : BaseFullWebappController(org.olat.core.commons.fullWebApp.BaseFullWebappController) AssertException(org.olat.core.logging.AssertException) BaseFullWebappControllerParts(org.olat.core.commons.fullWebApp.BaseFullWebappControllerParts) GuestBFWCParts(org.olat.login.GuestBFWCParts) ChiefController(org.olat.core.gui.control.ChiefController)

Example 14 with BaseFullWebappController

use of org.olat.core.commons.fullWebApp.BaseFullWebappController in project openolat by klemens.

the class AuthHelper method createAuthHome.

/**
 * Create a base chief controller for the current authenticated user request
 * and initialize the first screen after login.
 *
 * @param ureq The authenticated user request.
 * @return The chief controller
 */
public static ChiefController createAuthHome(UserRequest ureq) {
    if (!ureq.getUserSession().isAuthenticated())
        throw new AssertException("not authenticated!");
    BaseFullWebappControllerParts authSitesAndNav = new AuthBFWCParts();
    ChiefController cc = new BaseFullWebappController(ureq, authSitesAndNav);
    Windows.getWindows(ureq.getUserSession()).setChiefController(cc);
    return cc;
}
Also used : BaseFullWebappController(org.olat.core.commons.fullWebApp.BaseFullWebappController) AssertException(org.olat.core.logging.AssertException) AuthBFWCParts(org.olat.login.AuthBFWCParts) BaseFullWebappControllerParts(org.olat.core.commons.fullWebApp.BaseFullWebappControllerParts) ChiefController(org.olat.core.gui.control.ChiefController)

Example 15 with BaseFullWebappController

use of org.olat.core.commons.fullWebApp.BaseFullWebappController 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

BaseFullWebappController (org.olat.core.commons.fullWebApp.BaseFullWebappController)16 AutoCreator (org.olat.core.gui.control.creator.AutoCreator)10 DmzBFWCParts (org.olat.login.DmzBFWCParts)10 ChiefController (org.olat.core.gui.control.ChiefController)6 BaseFullWebappControllerParts (org.olat.core.commons.fullWebApp.BaseFullWebappControllerParts)4 AssertException (org.olat.core.logging.AssertException)4 ChangeEMailController (de.bps.olat.user.ChangeEMailController)2 AuthBFWCParts (org.olat.login.AuthBFWCParts)2 GuestBFWCParts (org.olat.login.GuestBFWCParts)2