Examples of JumpInResult


Examples of org.olat.core.dispatcher.jumpin.JumpInResult

              isSiteInstance = false;
            }
           
            if (isSiteInstance) {
              // case A) is a site: create view identifyer for this jump in to the site
              JumpInResult jres = jh.createJumpInResult(ureq, cc.getWindowControl());
              dts.activateStatic(ureq, ores.getResourceableTypeName(), jres.getInitialViewIdentifier());             
            } else {
              // case B) no site and no opened tab -> create and add
              dt = dts.createDTab(ores, title);
              if (dt == null) { // tabs are full
                //create dtabs already issues a warning message 
              } else {
                JumpInResult jres = jh.createJumpInResult(ureq, dt.getWindowControl());
                Controller resC = jres.getController();
                if (resC == null) { // the resource was not found or user is not
                  // allowed to start the resource
                  DispatcherAction.sendNotFound(request.getRequestURI(), response);
                  return;
                }
View Full Code Here

Examples of org.olat.core.dispatcher.jumpin.JumpInResult

            // does not yet exist -> create and add
            dt = dts.createDTab(ores, title);
            if (dt == null) { // tabs are full
            //create dtabs already issues a warning message 
            } else {
              JumpInResult jres = jh.createJumpInResult(ureq, dt.getWindowControl());
              Controller resC = jres.getController();
              if (resC == null) { // the resource was not found or user is not
                                  // allowed to start the resource
                DispatcherAction.sendNotFound(request.getRequestURI(), response);
                return;
              }
View Full Code Here

Examples of org.olat.core.dispatcher.jumpin.JumpInResult

   * @see org.olat.core.dispatcher.jumpin.JumpInReceptionist#createController(org.olat.core.gui.UserRequest, org.olat.core.gui.control.WindowControl)
   */
  public JumpInResult createJumpInResult(UserRequest ureq, WindowControl wControl) {
    String initialViewId = ureq.getParameter(RepoJumpInHandlerFactory.CONST_PAR);
    Controller resC = RepositoyUIFactory.createLaunchController(re, initialViewId, ureq, wControl);
    return new JumpInResult(resC, initialViewId);
  }
View Full Code Here

Examples of org.olat.core.dispatcher.jumpin.JumpInResult

  /**
   * Return the UserInfoMainController packed in a JumpInResult
   */
  public JumpInResult createJumpInResult(UserRequest ureq, WindowControl wControl) {
    Controller homePageController =  new UserInfoMainController(ureq, wControl, identity);
    return new JumpInResult(homePageController, null);
  }
View Full Code Here

Examples of org.olat.core.dispatcher.jumpin.JumpInResult

 
  /**
   * @return the key needed to activate the controller
   */
  public JumpInResult createJumpInResult(UserRequest ureq, WindowControl wControl) {
    return new JumpInResult(null, "notifications");
  }
View Full Code Here

Examples of org.olat.core.dispatcher.jumpin.JumpInResult

   */
  public JumpInResult createJumpInResult(UserRequest ureq, @SuppressWarnings("unused")
  WindowControl control) {
    String nodeId = ureq.getParameter(CatalogJumpInHandlerFactory.CONST_CAID);
    // encode sub view identifyer using ":" character
    return new JumpInResult(null, "search.catalog:" + nodeId);
  }
View Full Code Here

Examples of org.olat.core.dispatcher.jumpin.JumpInResult

        if (subidentifier.equals(CalendarController.ACTION_CALENDAR_GROUP)) {
          resName = BusinessGroupManagerImpl.getInstance().loadBusinessGroup(resId, true).getResourceableTypeName();
        }
        OLATResourceable _ores = OresHelper.createOLATResourceableInstance(resName, resId);
        Controller cont = ControllerFactory.createLaunchController(_ores, subidentifier, aureq, wControl, false);
        return new JumpInResult(cont, subidentifier);
      }

      public String extractActiveViewId(UserRequest ureq) {
        return subidentifier;
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.