Search in sources :

Example 56 with ChiefController

use of org.olat.core.gui.control.ChiefController 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)

Example 57 with ChiefController

use of org.olat.core.gui.control.ChiefController in project openolat by klemens.

the class OAuthDispatcher method error.

private void error(UserRequest ureq, String message) {
    StringBuilder sb = new StringBuilder();
    sb.append("<h4><i class='o_icon o_icon-fw o_icon_error'> </i>");
    sb.append(translate(ureq, "error.title"));
    sb.append("</h4><p>");
    sb.append(message);
    sb.append("</p>");
    ChiefController msgcc = new MessageWindowController(ureq, sb.toString());
    msgcc.getWindow().dispatchRequest(ureq, true);
}
Also used : ChiefController(org.olat.core.gui.control.ChiefController) MessageWindowController(org.olat.core.commons.fullWebApp.MessageWindowController)

Example 58 with ChiefController

use of org.olat.core.gui.control.ChiefController in project openolat by klemens.

the class OAuthDispatcher method redirectImplicitWorkflow.

private void redirectImplicitWorkflow(UserRequest ureq) {
    ChiefController msgcc = new JSRedirectWindowController(ureq);
    msgcc.getWindow().dispatchRequest(ureq, true);
}
Also used : JSRedirectWindowController(org.olat.login.oauth.ui.JSRedirectWindowController) ChiefController(org.olat.core.gui.control.ChiefController)

Aggregations

ChiefController (org.olat.core.gui.control.ChiefController)58 UserRequest (org.olat.core.gui.UserRequest)10 UserRequestImpl (org.olat.core.gui.UserRequestImpl)10 IOException (java.io.IOException)8 Window (org.olat.core.gui.components.Window)8 InvalidRequestParameterException (org.olat.core.gui.components.form.flexible.impl.InvalidRequestParameterException)8 WindowControl (org.olat.core.gui.control.WindowControl)8 OLATRuntimeException (org.olat.core.logging.OLATRuntimeException)8 ArrayList (java.util.ArrayList)6 BaseFullWebappController (org.olat.core.commons.fullWebApp.BaseFullWebappController)6 StringOutput (org.olat.core.gui.render.StringOutput)6 URLBuilder (org.olat.core.gui.render.URLBuilder)6 AssertException (org.olat.core.logging.AssertException)6 UserSession (org.olat.core.util.UserSession)6 HttpSession (javax.servlet.http.HttpSession)4 BaseFullWebappControllerParts (org.olat.core.commons.fullWebApp.BaseFullWebappControllerParts)4 Windows (org.olat.core.gui.Windows)4 CloseableModalController (org.olat.core.gui.control.generic.closablewrapper.CloseableModalController)4 RedirectMediaResource (org.olat.core.gui.media.RedirectMediaResource)4 ContextEntry (org.olat.core.id.context.ContextEntry)4