Search in sources :

Example 1 with AuthBFWCParts

use of org.olat.login.AuthBFWCParts in project OpenOLAT by OpenOLAT.

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 2 with AuthBFWCParts

use of org.olat.login.AuthBFWCParts 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)

Aggregations

BaseFullWebappController (org.olat.core.commons.fullWebApp.BaseFullWebappController)2 BaseFullWebappControllerParts (org.olat.core.commons.fullWebApp.BaseFullWebappControllerParts)2 ChiefController (org.olat.core.gui.control.ChiefController)2 AssertException (org.olat.core.logging.AssertException)2 AuthBFWCParts (org.olat.login.AuthBFWCParts)2