Search in sources :

Example 1 with GuestBFWCParts

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

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

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

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 GuestBFWCParts (org.olat.login.GuestBFWCParts)2