Package org.olat.core.gui.control

Examples of org.olat.core.gui.control.ChiefControllerCreator


      // e.g. got here because of /dmz/...
      // maybe something like /dmz/registration/
      //
      // add the context path to align with uriPrefix e.g. /olat/dmz/
      String pathInfo = request.getContextPath() + request.getPathInfo();
      ChiefControllerCreator subPathccc = null;
      boolean dmzOnly = pathInfo.equals(uriPrefix);// if /olat/dmz/
      if (!dmzOnly) {
        int sl = pathInfo.indexOf('/', uriPrefix.length());
        String sub;
        if (sl > 1) {
          // e.g. something like /registration/ or /pwchange/
          sub = pathInfo.substring(uriPrefix.length() - 1, sl + 1);
        } else {
          // e.g. something like /info.html from (/dmz/info.html)
          sub = pathInfo;
        }
        // chief controller creator for sub path, e.g.
        subPathccc = dmzServicesByPath.get(sub);
       
        UserSession usess = ureq.getUserSession();
        Windows ws = Windows.getWindows(usess);
        synchronized (ws) { //o_clusterOK by:fj per user session
          ChiefController occ;
          if(subPathccc != null){
            occ = subPathccc.createChiefController(ureq);
            Window window = occ.getWindow();
            window.setUriPrefix(uriPrefix);
            ws.registerWindow(window);
           
            window.dispatchRequest(ureq, true);
View Full Code Here

TOP

Related Classes of org.olat.core.gui.control.ChiefControllerCreator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.